aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>2011-03-26 02:47:23 +0800
committerache <ache@FreeBSD.org>2011-03-26 02:47:23 +0800
commit740b976fe6c0d0c83831bd95868c97b21d5e63cb (patch)
tree63176a01dae14ae9ce927972c3afed72f366de30
parent16643aa938b3afd34ea27ff2adc631264fb4b2da (diff)
downloadfreebsd-ports-gnome-740b976fe6c0d0c83831bd95868c97b21d5e63cb.tar.gz
freebsd-ports-gnome-740b976fe6c0d0c83831bd95868c97b21d5e63cb.tar.zst
freebsd-ports-gnome-740b976fe6c0d0c83831bd95868c97b21d5e63cb.zip
- add LICENSE_FILE
- whitespace cleanup - add CONFLICTS PR: 155926 Submitted by: Takefu <takefu@airport.fm>
-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)