From 798daa752cb636df126b95e4d53ac94db9a9781e Mon Sep 17 00:00:00 2001 From: minskim Date: Fri, 18 Jun 2004 02:42:09 +0000 Subject: CFLAGS needs "-DSYSV" on Linux. Patch provided by Roland Illig on tech-pkg@. --- archivers/zip1/Makefile | 9 +++++++-- 1 file 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 -- cgit v1.2.3