summaryrefslogtreecommitdiff
path: root/archivers/rzip
diff options
context:
space:
mode:
authortv <tv>2004-11-23 06:43:01 +0000
committertv <tv>2004-11-23 06:43:01 +0000
commit2902fb0c5ead4334eca28c44070258fd20cf87c5 (patch)
treefb8318359d3c987aed848cb45d01e6142a7e53c8 /archivers/rzip
parent7ab4ba34af547052f1cfe1b60f572643f6ef1074 (diff)
downloadpkgsrc-2902fb0c5ead4334eca28c44070258fd20cf87c5.tar.gz
Make build on Interix by slurping in libiberty for asprintf(3).
Diffstat (limited to 'archivers/rzip')
-rw-r--r--archivers/rzip/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/archivers/rzip/Makefile b/archivers/rzip/Makefile
index 89400836a4e..33312d21c72 100644
--- a/archivers/rzip/Makefile
+++ b/archivers/rzip/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2004/11/23 06:13:12 tv Exp $
+# $NetBSD: Makefile,v 1.3 2004/11/23 06:43:01 tv Exp $
# FreeBSD Id: Makefile,v 1.10 1997/04/27 16:06:15 ache Exp
#
@@ -19,5 +19,13 @@ post-install:
${RM} -f ${PREFIX}/man/man1/runzip.1
${LN} -s ${PREFIX}/man/man1/rzip.1 ${PREFIX}/man/man1/runzip.1
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "Interix"
+# need an asprintf(3) implementation
+. include "../../devel/libiberty/buildlink3.mk"
+LIBS+= -liberty
+.endif
+
.include "../../archivers/bzip2/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"