aboutsummaryrefslogtreecommitdiff
path: root/archivers/unzip
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>2011-03-25 18:47:23 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>2011-03-25 18:47:23 +0000
commit1900b9dc5e826d8eaa690724a680d6ee22ca2d83 (patch)
treef95221fe6bcd2cfe45825598cc56d0d61adfd81a /archivers/unzip
parent0a6a594426a626fe99dcc94cda81e29673ac2ba6 (diff)
downloadports-1900b9dc5e826d8eaa690724a680d6ee22ca2d83.tar.gz
ports-1900b9dc5e826d8eaa690724a680d6ee22ca2d83.zip
Notes
Diffstat (limited to 'archivers/unzip')
-rw-r--r--archivers/unzip/Makefile19
1 files changed, 13 insertions, 6 deletions
diff --git a/archivers/unzip/Makefile b/archivers/unzip/Makefile
index 38dee5290920..d7dfe4da7277 100644
--- a/archivers/unzip/Makefile
+++ b/archivers/unzip/Makefile
@@ -9,13 +9,20 @@ PORTNAME= unzip
PORTVERSION= 6.0
CATEGORIES?= archivers
MASTER_SITES= SF/infozip/UnZip%206.x%20%28latest%29/UnZip%20${PORTVERSION}/:main \
- SF/infozip/UnZip%205.x%20and%20earlier/5.51/:unreduce
+ SF/infozip/UnZip%205.x%20and%20earlier/5.51/:unreduce
DISTNAME= ${PORTNAME}60
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}:main
MAINTAINER?= ache@FreeBSD.org
COMMENT?= List, test and extract compressed files in a ZIP archive
+LICENSE= Info-ZIP
+LICENSE_PERMS= ${_LICENSE_PERMS_DEFAULT}
+LICENSE_NAME= Info-ZIP license
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+CONFLICTS?= zh-unzip-[0-9]* ko-unzip-[0-9]* ru-unzip-[0-9]*
+
MAKEFILE= unix/Makefile
.if defined(INSTALL_AS_INFOUNZIP)
UNZIP_NAME= info-unzip
@@ -32,15 +39,15 @@ LOCAL_UNZIP= ${CFLAGS} -DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR \
.if defined(WITH_UNZIP_UNREDUCE)
DISTFILES+= unreduce_full.zip:unreduce
-EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+EXTRACT_ONLY+= ${DISTNAME}${EXTRACT_SUFX}
LOCAL_UNZIP+= -DUSE_SMITH_CODE
.endif
.if defined(WITH_ICONV)
-PATCH_SITES= ${MASTER_SITE_LOCAL}
+PATCH_SITES+= ${MASTER_SITE_LOCAL}
PATCH_SITE_SUBDIR= nork
-PATCHFILES= unzip60-alt-iconv-utf8.patch
-PATCH_DIST_STRIP= -p1
+PATCHFILES+= unzip60-alt-iconv-utf8.patch
+PATCH_DIST_STRIP+= -p1
USE_ICONV= yes
CFLAGS+= -I${LOCALBASE}/include -DNATIVE
MAKE_ARGS+= LFLAGS1="-L${LOCALBASE}/lib -liconv"
@@ -70,7 +77,7 @@ pre-fetch:
.if defined(WITH_UNZIP_UNREDUCE)
pre-build:
- @(cd ${BUILD_WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} unzip)
+ @(cd ${BUILD_WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} CFLAGS="${CFLAGS}" unzip)
@(cd ${WRKSRC}; \
./unzip -o ${_DISTDIR}unreduce_full.zip; \
${MV} unreduce_full.c unreduce.c)