summaryrefslogtreecommitdiff
path: root/archivers
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2004-06-18 02:42:09 +0000
committerminskim <minskim@pkgsrc.org>2004-06-18 02:42:09 +0000
commitb2703b947347f7b9095d3042e0d745cb9a612acb (patch)
tree8ebc6c5dccd3cd1af452c303fe93d365fb07b4fd /archivers
parent0cddcd5c1fea5d1cd27c1e1242ad388a049dd620 (diff)
downloadpkgsrc-b2703b947347f7b9095d3042e0d745cb9a612acb.tar.gz
CFLAGS needs "-DSYSV" on Linux. Patch provided by Roland Illig on
tech-pkg@.
Diffstat (limited to 'archivers')
-rw-r--r--archivers/zip1/Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/archivers/zip1/Makefile b/archivers/zip1/Makefile
index f9f599d532e..f2894f6f1f8 100644
--- a/archivers/zip1/Makefile
+++ b/archivers/zip1/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.25 2004/04/25 23:16:22 tv Exp $
+# $NetBSD: Makefile,v 1.26 2004/06/18 02:42:09 minskim Exp $
#
DISTNAME= zip1-1.1
@@ -19,7 +19,6 @@ NOT_FOR_PLATFORM+= Interix-*-* # needs porting
WRKSRC= ${WRKDIR}
MAKEFILE= makefile
-MAKE_FLAGS= CFLAGS="${CFLAGS} -DDIRENT" LFLAGS2="-lcompat"
ALL_TARGET= zip
USE_BUILDLINK3= yes
@@ -35,6 +34,12 @@ ALL_TARGET+= zipcloak
CRYPTO= yes
.endif
+.if ${OPSYS} == "Linux"
+MAKE_FLAGS= CFLAGS="${CFLAGS} -DSYSV"
+.else
+MAKE_FLAGS= CFLAGS="${CFLAGS} -DDIRENT" LFLAGS2="-lcompat"
+.endif
+
do-install:
@${CP} ${PKGDIR}/PLIST.pre ${PLIST_SRC}
cd ${WRKSRC} && ${INSTALL_PROGRAM} zip ${PREFIX}/bin/zip1