svn commit: r340969 - head/devel/premake4

Baptiste Daroussin bapt at FreeBSD.org
Sat Jan 25 00:41:42 UTC 2014


Author: bapt
Date: Sat Jan 25 00:41:42 2014
New Revision: 340969
URL: http://svnweb.freebsd.org/changeset/ports/340969
QAT: https://qat.redports.org/buildarchive/r340969/

Log:
  Support stage
  Use bsdtar to extract zip

Modified:
  head/devel/premake4/Makefile

Modified: head/devel/premake4/Makefile
==============================================================================
--- head/devel/premake4/Makefile	Sat Jan 25 00:39:12 2014	(r340968)
+++ head/devel/premake4/Makefile	Sat Jan 25 00:41:42 2014	(r340969)
@@ -6,36 +6,33 @@ PORTVERSION=	4.3
 CATEGORIES=	devel
 MASTER_SITES=	SF/premake/Premake/${PORTVERSION}
 DISTNAME=	premake-${PORTVERSION}-src
+EXTRACT_SUFX=	.zip
 
 MAINTAINER=	vmagerya at gmail.com
 COMMENT=	Writes build scripts
 
+OPTIONS_DEFINE=	DOCS
+
 WRKSRC=		${WRKDIR}/premake-${PORTVERSION}
 BUILD_WRKSRC=	${WRKSRC}/build/gmake.unix
 
-USE_ZIP=	yes
-USE_GMAKE=	yes
+USES=		gmake
 MAKE_ARGS=	ARCH=""
 
 PLIST_FILES=	bin/premake4
 
 PORTDOCS=	CHANGES.txt LICENSE.txt README.txt
 
-NO_STAGE=	yes
-.include <bsd.port.pre.mk>
-
 post-patch:
 	${REINPLACE_CMD} -e 's|-ldl||' ${BUILD_WRKSRC}/Premake4.make
 	${REINPLACE_CMD} -e 's|debug|release|' ${WRKSRC}/tests/test
 
 do-install:
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
-.endif
-	${INSTALL_PROGRAM} ${WRKSRC}/bin/release/premake4 ${PREFIX}/bin
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_PROGRAM} ${WRKSRC}/bin/release/premake4 ${STAGEDIR}${PREFIX}/bin
 
 regression-test: build
 	cd ${WRKSRC}/tests && ./test
 
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>


More information about the svn-ports-all mailing list