# Created by: Vitaly Magerya # $FreeBSD: head/devel/premake4/Makefile 501570 2019-05-13 14:28:20Z amdmi3 $ PORTNAME= premake4 PORTVERSION= 4.4.b5 CATEGORIES= devel MASTER_SITES= SF/premake/Premake/${PORTVERSION:C/.b.+//} DISTNAME= premake-${PORTVERSION:S/.b/-beta/}-src MAINTAINER= vmagerya@gmail.com COMMENT= Build script creation tool LICENSE= BSD3CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt USES= gmake zip MAKE_ARGS= ARCH="" CC="${CC}" CXX="${CXX}" WRKSRC= ${WRKDIR}/premake-${PORTVERSION:S/.b/-beta/} BUILD_WRKSRC= ${WRKSRC}/build/gmake.unix PLIST_FILES= bin/premake4 PORTDOCS= CHANGES.txt LICENSE.txt README.txt MAKE_JOBS_UNSAFE= yes OPTIONS_DEFINE= DOCS post-patch: ${REINPLACE_CMD} -e 's|-ldl||' ${BUILD_WRKSRC}/Premake4.make ${REINPLACE_CMD} -e 's|debug|release|' \ ${WRKSRC}/tests/test \ ${WRKSRC}/tests/base/test_premake_command.lua ${REINPLACE_CMD} -e 's|io.open(conf_file)|nil|' \ ${WRKSRC}/src/base/os.lua \ ${WRKSRC}/src/host/scripts.c do-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${STAGEDIR}${DOCSDIR} ${INSTALL_PROGRAM} \ ${WRKSRC}/bin/release/premake4 ${STAGEDIR}${PREFIX}/bin do-test: cd ${WRKSRC}/tests && ./test .include