diff options
author | mat <mat@FreeBSD.org> | 2015-08-19 21:29:59 +0800 |
---|---|---|
committer | mat <mat@FreeBSD.org> | 2015-08-19 21:29:59 +0800 |
commit | 9d30f78a00bed11384c7259f662e9352754275db (patch) | |
tree | ac5a462edc3d85d5f0b20a594802ce4b12f0bf9f /archivers | |
parent | 996088dedaf9d22bcd7c90caa96d33c0f68b08e7 (diff) | |
download | freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.gz freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.tar.zst freebsd-ports-gnome-9d30f78a00bed11384c7259f662e9352754275db.zip |
Convert ports to use the options helpers in categories [abc]*, and minor fixes.
Sponsored by: Absolight
Differential Revision: https://reviews.freebsd.org/D3412?
Diffstat (limited to 'archivers')
-rw-r--r-- | archivers/file-roller/Makefile | 6 | ||||
-rw-r--r-- | archivers/php5-snappy/Makefile | 8 | ||||
-rw-r--r-- | archivers/xarchiver/Makefile | 9 |
3 files changed, 4 insertions, 19 deletions
diff --git a/archivers/file-roller/Makefile b/archivers/file-roller/Makefile index 417459e32f60..48b5700b11ee 100644 --- a/archivers/file-roller/Makefile +++ b/archivers/file-roller/Makefile @@ -45,14 +45,10 @@ post-patch: ${WRKSRC}/src/fr-command-tar.c \ ${WRKSRC}/src/fr-command-zip.c -.include <bsd.port.options.mk> - -post-install: -.if ${PORT_OPTIONS:MDOCS} +post-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} .for f in ${PORTDOCS} ${INSTALL_DATA} ${WRKSRC}/${f} ${STAGEDIR}/${DOCSDIR} .endfor -.endif .include <bsd.port.mk> diff --git a/archivers/php5-snappy/Makefile b/archivers/php5-snappy/Makefile index aaf0a5de4f5b..574f96c1a7af 100644 --- a/archivers/php5-snappy/Makefile +++ b/archivers/php5-snappy/Makefile @@ -23,16 +23,10 @@ PHP_MODNAME= snappy WRKSRC= ${WRKDIR}/${PROJECTHOST} OPTIONS_DEFINE= TEST -.include <bsd.port.options.mk> -test: build +post-build-TEST-on: @(cd ${WRKSRC} && ${MAKE} ${MAKE_ENV} NO_INTERACTION=yes ${.TARGET}) -.if !empty(${PORT_OPTIONS:MTEST}) -post-stage: test - ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/snappy.so -.else post-stage: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/php/${PHP_EXT_DIR}/snappy.so -.endif .include <bsd.port.mk> diff --git a/archivers/xarchiver/Makefile b/archivers/xarchiver/Makefile index 79da256d1c64..fafae0083303 100644 --- a/archivers/xarchiver/Makefile +++ b/archivers/xarchiver/Makefile @@ -27,14 +27,9 @@ NLS_USES= gettext NLS_CPPFLAGS+= -I${LOCALBASE}/include NLS_LDFLAGS+= -L${LOCALBASE}/lib -.include <bsd.port.options.mk> - -post-patch: -.if empty(PORT_OPTIONS:MDOCS) +post-patch-DOCS-off: @${REINPLACE_CMD} -e 's|doc||g' ${WRKSRC}/Makefile.in -.endif -.if empty(PORT_OPTIONS:MNLS) +post-patch-NLS-off: @${REINPLACE_CMD} -e 's| po | |g' ${WRKSRC}/Makefile.in -.endif .include <bsd.port.mk> |