aboutsummaryrefslogtreecommitdiffstats
path: root/archivers/pbzip2
diff options
context:
space:
mode:
authorbapt <bapt@FreeBSD.org>2014-01-04 02:26:48 +0800
committerbapt <bapt@FreeBSD.org>2014-01-04 02:26:48 +0800
commitcd9e70e60122376091a3bc989efd74c348e7c5cf (patch)
treec51fa5cf32adadda86c3794a35400238fb24f8cf /archivers/pbzip2
parenta320d7186db1ce46f58b765f5c2a93717a6123c4 (diff)
downloadfreebsd-ports-gnome-cd9e70e60122376091a3bc989efd74c348e7c5cf.tar.gz
freebsd-ports-gnome-cd9e70e60122376091a3bc989efd74c348e7c5cf.tar.zst
freebsd-ports-gnome-cd9e70e60122376091a3bc989efd74c348e7c5cf.zip
Support stage
Avoid useless patching
Diffstat (limited to 'archivers/pbzip2')
-rw-r--r--archivers/pbzip2/Makefile24
1 files changed, 8 insertions, 16 deletions
diff --git a/archivers/pbzip2/Makefile b/archivers/pbzip2/Makefile
index 3c0261a2d32c..cb919a30f3c4 100644
--- a/archivers/pbzip2/Makefile
+++ b/archivers/pbzip2/Makefile
@@ -10,26 +10,18 @@ DIST_SUBDIR= ${PORTNAME}-${PORTVERSION}
MAINTAINER= miwi@FreeBSD.org
COMMENT= Parallel BZIP2
-LICENSE= BSD
-LICENSE_FILE= ${WRKSRC}/COPYING
-
-MAN1= pbzip2.1
-MLINKS= pbzip2.1 pbunzip2.1
+LICENSE= BSD4CLAUSE
USES= gmake
-NO_STAGE= yes
-
-PLIST_FILES= bin/pbzip2 bin/pbunzip2
+MAKE_ARGS= CFLAGS="${CXXFLAGS}" CC="${CXX}"
-post-patch:
- @${REINPLACE_CMD} \
- -e 's,-O2,${CXXFLAGS},; \
- s,^CC,#CC,; \
- s,CC,CXX,' ${WRKSRC}/Makefile
+PLIST_FILES= bin/pbzip2 bin/pbunzip2 \
+ man/man1/pbzip2.1.gz man/man1/pbunzip2.1.gz
do-install:
- @${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${PREFIX}/bin/
- @${LN} -sf ${PORTNAME} ${PREFIX}/bin/pbunzip2
- @${INSTALL_MAN} ${WRKSRC}/${MAN1} ${MAN1PREFIX}/man/man1/
+ ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
+ ${LN} -sf ${PORTNAME} ${STAGEDIR}${PREFIX}/bin/pbunzip2
+ ${INSTALL_MAN} ${WRKSRC}/pbzip2.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/
+ ${LN} -sf pbzip2.1 ${STAGEDIR}${MAN1PREFIX}/man/man1/pbunzip2.1
.include <bsd.port.mk>