Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 20 Dec 2014 18:15:46 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r375055 - head/devel/gflags
Message-ID:  <201412201815.sBKIFkYT060609@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201412201815.sBKIFkYT060609>