mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-15 07:56:36 +00:00
ca85d83d6b
equivalents for devel/premake4, lang/ikarus, lang/stklos and lang/ypsilon. PR: ports/168715 Submitted by: Vitaly Magerya <vmagerya@gmail.com> (maintainer)
45 lines
979 B
Makefile
45 lines
979 B
Makefile
# New ports collection makefile for: premake4
|
|
# Date created: 2011-08-21
|
|
# Whom: 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
|
|
|
|
.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>
|