41 lines
919 B
Makefile
41 lines
919 B
Makefile
# Created by: Vitaly Magerya <vmagerya@gmail.com>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= premake4
|
|
PORTVERSION= 4.3
|
|
CATEGORIES= devel
|
|
MASTER_SITES= SF/premake/Premake/${PORTVERSION}
|
|
DISTNAME= premake-${PORTVERSION}-src
|
|
|
|
MAINTAINER= vmagerya@gmail.com
|
|
COMMENT= Writes build scripts
|
|
|
|
WRKSRC= ${WRKDIR}/premake-${PORTVERSION}
|
|
BUILD_WRKSRC= ${WRKSRC}/build/gmake.unix
|
|
|
|
USE_ZIP= yes
|
|
USE_GMAKE= yes
|
|
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
|
|
|
|
regression-test: build
|
|
cd ${WRKSRC}/tests && ./test
|
|
|
|
.include <bsd.port.post.mk>
|