2010-04-25 06:36:05 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.41 2010/04/25 10:36:05 jsg Exp $
|
2001-03-29 10:01:53 -05:00
|
|
|
|
2007-09-15 06:14:32 -04:00
|
|
|
COMMENT= extract, list & test files in a ZIP archive
|
1997-11-24 14:49:51 -05:00
|
|
|
|
2010-04-25 06:36:05 -04:00
|
|
|
VERSION= 6.0
|
2003-07-02 12:03:59 -04:00
|
|
|
DISTNAME= unzip${VERSION:S/.//}
|
2010-04-25 06:36:05 -04:00
|
|
|
PKGNAME= unzip-${VERSION}
|
1997-11-24 14:49:51 -05:00
|
|
|
CATEGORIES= archivers
|
2006-07-11 02:55:28 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=infozip/} \
|
|
|
|
http://mirror.switch.ch/ftp/mirror/infozip/src/ \
|
|
|
|
ftp://ftp.info-zip.org/pub/infozip/src/
|
1997-11-24 14:49:51 -05:00
|
|
|
|
2001-08-14 14:35:59 -04:00
|
|
|
HOMEPAGE= http://www.ctan.org/tex-archive/tools/zip/info-zip/UnZip.html
|
2000-07-23 22:42:59 -04:00
|
|
|
|
2003-05-23 22:40:42 -04:00
|
|
|
# Conditional
|
2000-03-05 13:31:25 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-21 07:50:32 -05:00
|
|
|
WANTLIB= c
|
2000-03-05 13:31:25 -05:00
|
|
|
|
2004-06-27 19:29:55 -04:00
|
|
|
MAKE_FLAGS= CC="${CC}" LD="${CC}" CF='-I. $$(LOC)'
|
2000-03-26 17:34:28 -05:00
|
|
|
FAKE_FLAGS= prefix="${WRKINST}${PREFIX}"
|
|
|
|
|
2004-06-27 19:29:55 -04:00
|
|
|
# Workaround compiler bug on hppa which causes crashes
|
|
|
|
.if ${MACHINE_ARCH} == "hppa"
|
2010-04-25 06:36:05 -04:00
|
|
|
MAKE_FLAGS+= LOC="${CFLAGS} -O0 -DUSE_UNSHRINK -DNO_LCHMOD -DNO_LCHOWN"
|
2004-06-27 19:29:55 -04:00
|
|
|
.else
|
2010-04-25 06:36:05 -04:00
|
|
|
MAKE_FLAGS+= LOC="${CFLAGS} -DUSE_UNSHRINK -DNO_LCHMOD -DNO_LCHOWN"
|
2004-06-27 19:29:55 -04:00
|
|
|
.endif
|
|
|
|
|
2000-06-10 16:22:13 -04:00
|
|
|
MAKE_FILE= unix/Makefile
|
|
|
|
|
2000-03-26 17:34:28 -05:00
|
|
|
ALL_TARGET= bsd
|
1997-11-24 14:49:51 -05:00
|
|
|
|
2001-02-26 03:44:53 -05:00
|
|
|
DOCS= COPYING.OLD LICENSE README WHERE
|
2000-10-07 16:05:33 -04:00
|
|
|
|
1999-12-24 18:33:30 -05:00
|
|
|
post-install:
|
2000-02-05 12:49:01 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/unzip
|
2000-10-07 16:05:33 -04:00
|
|
|
cd ${WRKSRC}; ${INSTALL_DATA} ${DOCS} ${PREFIX}/share/doc/unzip
|
1997-11-24 14:49:51 -05:00
|
|
|
|
2001-10-04 18:26:48 -04:00
|
|
|
do-regress:
|
|
|
|
cd ${WRKBUILD} && ./unzip -x -a -o testmake.zip
|
|
|
|
cmp -s ${WRKBUILD}/notes files/notes
|
|
|
|
|
1997-11-24 14:49:51 -05:00
|
|
|
.include <bsd.port.mk>
|