mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-22 04:17:44 +00:00
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
# Created by: Vitaly Magerya <vmagerya@gmail.com>
|
|
|
|
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>
|