Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jan 2014 23:47:48 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r340499 - head/devel/e00compr
Message-ID:  <201401202347.s0KNlmPR049217@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: bapt
Date: Mon Jan 20 23:47:48 2014
New Revision: 340499
URL: http://svnweb.freebsd.org/changeset/ports/340499
QAT: https://qat.redports.org/buildarchive/r340499/

Log:
  Support stage
  Use MAKE_ARGS instead of patching to respect CC and CFLAGS

Modified:
  head/devel/e00compr/Makefile

Modified: head/devel/e00compr/Makefile
==============================================================================
--- head/devel/e00compr/Makefile	Mon Jan 20 23:47:14 2014	(r340498)
+++ head/devel/e00compr/Makefile	Mon Jan 20 23:47:48 2014	(r340499)
@@ -9,27 +9,20 @@ MASTER_SITES=	http://avce00.maptools.org
 MAINTAINER=	wen@FreeBSD.org
 COMMENT=	Library to Read/Write Compressed E00 Files
 
-USE_GMAKE=	yes
+OPTIONS_DEFINE=	DOCS
+
+USES=		gmake
 WRKSRC=		${WRKDIR}/${DISTNAME}
 PLIST_FILES=	bin/e00conv include/e00compr.h \
 		lib/e00compr.a
 PORTDOCS=	e00compr.html
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
-
-post-extract:
-	${REINPLACE_CMD} -e 's#gcc#${CC}#g' ${WRKSRC}/Makefile
+MAKE_ARGS=	CC="${CC}" CFLAGS="${CFLAGS}"
 
 do-install:
-	${INSTALL_PROGRAM} ${WRKSRC}/e00conv ${PREFIX}/bin/e00conv
-	${INSTALL_DATA} ${WRKSRC}/e00compr.h ${PREFIX}/include/e00compr.h
-	${INSTALL_DATA} ${WRKSRC}/e00compr.a ${PREFIX}/lib/e00compr.a
-
-post-install:
-.if ${PORT_OPTIONS:MDOCS}
-	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/e00compr.html ${DOCSDIR}
-.endif
+	${INSTALL_PROGRAM} ${WRKSRC}/e00conv ${STAGEDIR}${PREFIX}/bin/e00conv
+	${INSTALL_DATA} ${WRKSRC}/e00compr.h ${STAGEDIR}${PREFIX}/include/e00compr.h
+	${INSTALL_DATA} ${WRKSRC}/e00compr.a ${STAGEDIR}${PREFIX}/lib/e00compr.a
+	${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${WRKSRC}/e00compr.html ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>



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