diff options
author | obrien <obrien@FreeBSD.org> | 2009-01-01 11:52:12 +0800 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2009-01-01 11:52:12 +0800 |
commit | af2be6fa4224ccbc6c151254a26367e53d3a6368 (patch) | |
tree | 4a46946a4233b3ae53a81cd0a2bc894473f8f98f | |
parent | 419b5fdee7acaf35806825031846374e189eda65 (diff) | |
download | freebsd-ports-gnome-af2be6fa4224ccbc6c151254a26367e53d3a6368.tar.gz freebsd-ports-gnome-af2be6fa4224ccbc6c151254a26367e53d3a6368.tar.zst freebsd-ports-gnome-af2be6fa4224ccbc6c151254a26367e53d3a6368.zip |
Set INSTALL_AS_INFOUNZIP=yes to install as ${PREFIX}/bin/info-unzip.
Approved by: ache
-rw-r--r-- | archivers/unzip/Makefile | 24 |
1 files changed, 19 insertions, 5 deletions
diff --git a/archivers/unzip/Makefile b/archivers/unzip/Makefile index d098450b1801..918171776d1d 100644 --- a/archivers/unzip/Makefile +++ b/archivers/unzip/Makefile @@ -18,9 +18,14 @@ COMMENT?= List, test and extract compressed files in a ZIP archive WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} MAKEFILE= unix/Makefile -PLIST_FILES= bin/unzip bin/funzip bin/unzipsfx bin/zipgrep bin/zipinfo +.if defined(INSTALL_AS_INFOUNZIP) +UNZIP_NAME= info-unzip +.else +UNZIP_NAME= unzip +.endif +PLIST_FILES= bin/${UNZIP_NAME} bin/funzip bin/unzipsfx bin/zipgrep bin/zipinfo PORTDOCS= README WHERE -MAN1= funzip.1 unzip.1 unzipsfx.1 zipgrep.1 zipinfo.1 +MAN1= ${UNZIP_NAME}.1 funzip.1 unzipsfx.1 zipgrep.1 zipinfo.1 CFLAGS+= -D_FILE_OFFSET_BITS=64 LOCAL_UNZIP= ${CFLAGS} -DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR @@ -45,6 +50,13 @@ ALL_TARGET= freebsd ALL_TARGET= bsd .endif +.if !defined(INSTALL_AS_INFOUNZIP) +pre-fetch: + @${ECHO} "" + @${ECHO} "Use INSTALL_AS_INFOUNZIP=yes to install Info Unzip as ${PREFIX}/bin/info-unzip" + @${ECHO} " +.endif + .if defined(WITH_UNZIP_UNREDUCE) pre-build: @(cd ${BUILD_WRKSRC}; ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} ${MAKE_ARGS} unzip) @@ -55,12 +67,14 @@ pre-build: .endif do-install: -.for file in funzip unzip unzipsfx + ${INSTALL_PROGRAM} ${WRKSRC}/unzip ${PREFIX}/bin/${UNZIP_NAME} +.for file in funzip unzipsfx ${INSTALL_PROGRAM} ${WRKSRC}/${file} ${PREFIX}/bin .endfor - ${LN} -sf unzip ${PREFIX}/bin/zipinfo + ${LN} -sf ${UNZIP_NAME} ${PREFIX}/bin/zipinfo ${INSTALL_SCRIPT} ${WRKSRC}/unix/zipgrep ${PREFIX}/bin -.for f in ${MAN1} + ${INSTALL_MAN} ${WRKSRC}/man/unzip.1 ${MAN1PREFIX}/man/man1/${UNZIP_NAME}.1 +.for f in ${MAN1:Nunzip.1:Ninfo-unzip.1} ${INSTALL_MAN} ${WRKSRC}/man/${f} ${MAN1PREFIX}/man/man1 .endfor .if !defined(NOPORTDOCS) |