diff options
author | sunpoet <sunpoet@FreeBSD.org> | 2014-12-21 02:15:46 +0800 |
---|---|---|
committer | sunpoet <sunpoet@FreeBSD.org> | 2014-12-21 02:15:46 +0800 |
commit | a23702af1b9202a8ddc2c4e9aaec0ab6f317f88a (patch) | |
tree | 4241e0588eb0d066dec0c678dc26a06d13d18db6 | |
parent | 5a92a93f3e8f9c8e18a665dc94c0275c6c51f493 (diff) | |
download | freebsd-ports-gnome-a23702af1b9202a8ddc2c4e9aaec0ab6f317f88a.tar.gz freebsd-ports-gnome-a23702af1b9202a8ddc2c4e9aaec0ab6f317f88a.tar.zst freebsd-ports-gnome-a23702af1b9202a8ddc2c4e9aaec0ab6f317f88a.zip |
- Use INSTALL_TARGET=install-strip
- Simplify Makefile
- Add regression-test:
-rw-r--r-- | devel/gflags/Makefile | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/devel/gflags/Makefile b/devel/gflags/Makefile index 46cbeccf3e05..6f3e711deb8b 100644 --- a/devel/gflags/Makefile +++ b/devel/gflags/Makefile @@ -15,7 +15,7 @@ LICENSE= BSD3CLAUSE OPTIONS_DEFINE= DOCS GNU_CONFIGURE= yes -MAKE_ENV= INSTALL_STRIP_FLAG=${STRIP} +INSTALL_TARGET= install-strip USE_LDCONFIG= yes USES= libtool pathfix shebangfix @@ -24,12 +24,10 @@ PORTDOCS= AUTHORS COPYING ChangeLog INSTALL NEWS README README_windows.txt \ SHEBANG_FILES= src/gflags_completions.sh -.include <bsd.port.options.mk> - post-patch: - @${REINPLACE_CMD} -e 's|^\(docdir = \).*|\1${DOCSDIR}|' ${WRKSRC}/Makefile.in -.if !${PORT_OPTIONS:MDOCS} - @${REINPLACE_CMD} -e '/^install-data-am: / s| install-dist_docDATA||' ${WRKSRC}/Makefile.in -.endif + @${REINPLACE_CMD} -e '/^docdir = / s| = .*| = ${DOCSDIR}|' ${WRKSRC}/Makefile.in + +regression-test test: build + cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} check .include <bsd.port.mk> |