Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Jan 2014 00:41:42 +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: r340969 - head/devel/premake4
Message-ID:  <201401250041.s0P0fg2G020808@svn.freebsd.org>

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



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