diff options
author | jschauma <jschauma@pkgsrc.org> | 2002-11-25 22:17:16 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2002-11-25 22:17:16 +0000 |
commit | d877ee7c5f8aa54c38f59cfd0a2db1bb2b62ce80 (patch) | |
tree | eade5f1ca4d7985f41515fa38e2551fdf1732f44 /archivers/unzip | |
parent | b4e82f0d5f0108fff5635ad8f66f53875cd4641a (diff) | |
download | pkgsrc-d877ee7c5f8aa54c38f59cfd0a2db1bb2b62ce80.tar.gz |
Don't always pass pass '-DBSD' to MAKE_ENV.
Pointed out by Jeremy C. Reed (reed at reedmedia dot net) in
PR pkg/19170. Modification: assume that anything that calls itself
*BSD can deal with this flag instead of just dealing with Linux.
(Please check on Darwin and adjust.)
Diffstat (limited to 'archivers/unzip')
-rw-r--r-- | archivers/unzip/Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/archivers/unzip/Makefile b/archivers/unzip/Makefile index 56ee875324c..4bc27f00fa0 100644 --- a/archivers/unzip/Makefile +++ b/archivers/unzip/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.33 2002/08/25 21:49:26 jlam Exp $ +# $NetBSD: Makefile,v 1.34 2002/11/25 22:17:16 jschauma Exp $ # FreeBSD Id: Makefile,v 1.14 1997/06/19 05:30:04 ache Exp # @@ -17,9 +17,15 @@ COMMENT= List, test and extract compressed files in a ZIP archive USE_BUILDLINK2= # defined +.include "../../mk/bsd.prefs.mk" + MAKEFILE= unix/Makefile ALL_TARGET= generic_zlib unzipsfx +.if ${OPSYS:M*BSD} == "" +MAKE_FLAGS= CF="${CFLAGS} -I. -DUNIX -Dunix -DUSE_UNSHRINK" LF2="-lz ${_STRIPFLAG_CC} ${LDFLAGS}" +.else MAKE_FLAGS= CF="${CFLAGS} -I. -DBSD -DUNIX -Dunix -DUSE_UNSHRINK" LF2="-lz ${_STRIPFLAG_CC} ${LDFLAGS}" +.endif do-install: cd ${WRKSRC} && ${INSTALL_PROGRAM} unzip funzip unzipsfx ${PREFIX}/bin |