freebsd-ports/devel/premake4/Makefile
Dmitry Marakasov 67d40f9d7c - Add LICENSE
- Pet portlint
- Switch to new test framework

Approved by:	portmgr blanket
2019-05-13 14:28:20 +00:00

48 lines
1.2 KiB
Makefile

# Created by: Vitaly Magerya <vmagerya@gmail.com>
# $FreeBSD$
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 <bsd.port.mk>