summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>2004-11-23 06:43:01 +0000
committertv <tv@pkgsrc.org>2004-11-23 06:43:01 +0000
commite9a2d95a826d87da6a77150191a0b0b6b214da38 (patch)
treefb8318359d3c987aed848cb45d01e6142a7e53c8 /archivers
parentc6746f0c21156b032ecdb20751f7250d8ec01c6d (diff)
downloadpkgsrc-e9a2d95a826d87da6a77150191a0b0b6b214da38.tar.gz
Make build on Interix by slurping in libiberty for asprintf(3).
Diffstat (limited to 'archivers')
-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"