svn commit: r375055 - head/devel/gflags

Sunpoet Po-Chuan Hsieh sunpoet at FreeBSD.org
Sat Dec 20 18:15:47 UTC 2014


Author: sunpoet
Date: Sat Dec 20 18:15:46 2014
New Revision: 375055
URL: https://svnweb.freebsd.org/changeset/ports/375055
QAT: https://qat.redports.org/buildarchive/r375055/

Log:
  - Use INSTALL_TARGET=install-strip
  - Simplify Makefile
  - Add regression-test:

Modified:
  head/devel/gflags/Makefile

Modified: head/devel/gflags/Makefile
==============================================================================
--- head/devel/gflags/Makefile	Sat Dec 20 18:15:40 2014	(r375054)
+++ head/devel/gflags/Makefile	Sat Dec 20 18:15:46 2014	(r375055)
@@ -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 INST
 
 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>


More information about the svn-ports-head mailing list