freebsd-ports/games/steelstorm/Makefile
Dmitry Marakasov 7606af37e7 - Support staging
- Mark MAKE_JOBS_UNSAFE
2013-11-19 02:32:53 +00:00

81 lines
2.2 KiB
Makefile

# Created by: Dmitry Marakasov <amdmi3@FreeBSD.org>
# $FreeBSD$
PORTNAME= steelstorm
DISTVERSION= beta-r1591
CATEGORIES= games
MASTER_SITES= http://mirror.amdmi3.ru/distfiles/
MAINTAINER= amdmi3@FreeBSD.org
COMMENT= Old school top down arcade shooter
LICENSE= GPLv2 CCbyNCSA3 EULA
LICENSE_COMB= multi
LICENSE_FILE_GPLv2= ${WRKSRC}/gpl-2.txt
LICENSE_NAME_CCbyNCSA3= Attribution-NonCommercial-ShareAlike 3.0 Unported
LICENSE_PERMS_CCbyNCSA3=dist-mirror pkg-mirror auto-accept
LICENSE_FILE_CCbyNCSA3= ${WRKSRC}/cc-by-nc-sa-3.txt
LICENSE_NAME_EULA= Steel storm episode 1 limited user software license agreement
LICENSE_PERMS_EULA= # none
LICENSE_FILE_EULA= ${WRKSRC}/license.txt
MANUAL_PACKAGE_BUILD= needs interactive license confirmation
USE_GL= gl
WRKSRC= ${WRKDIR}/${PORTNAME}
BUILD_WRKSRC= ${WRKSRC}/engine_source
MAKEFILE= BSDmakefile
MAKE_ENV= STRIP="${STRIP_CMD}"
ALL_TARGET= # empty
MAKE_JOBS_UNSAFE=yes
PORTDOCS= README.txt
PORTDATA= *
OPTIONS_DEFINE= OPTIMIZED_CFLAGS
OPTIONS_MULTI= COMPONENTS
OPTIONS_MULTI_COMPONENTS= CLIENT DEDICATED
OPTIONS_DEFAULT=OPTIMIZED_CFLAGS CLIENT DEDICATED
CLIENT_DESC= Build client
DEDICATED_DESC= Dedicated server
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MCLIENT}
ALL_TARGET+= cl-release
USE_XORG+= x11 xpm xext xxf86dga xxf86vm
PLIST_FILES+= bin/${PORTNAME}
.endif
.if ${PORT_OPTIONS:MDEDICATED}
ALL_TARGET+= sv-release
PLIST_FILES+= bin/${PORTNAME}-dedicated
.endif
post-patch:
@${REINPLACE_CMD} -e 's|/usr/X11R6|${LOCALBASE}|g' \
${BUILD_WRKSRC}/BSDmakefile ${BUILD_WRKSRC}/makefile.inc
.if ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
@${REINPLACE_CMD} -e '/^OPTIM_RELEASE=/ d' \
${BUILD_WRKSRC}/makefile.inc
.endif
@${REINPLACE_CMD} -e 's|"gamedata"|"${DATADIR}"|' \
${BUILD_WRKSRC}/common.c
do-install:
.if ${PORT_OPTIONS:MCLIENT}
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/darkplaces-glx ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
.endif
.if ${PORT_OPTIONS:MDEDICATED}
${INSTALL_PROGRAM} ${BUILD_WRKSRC}/darkplaces-dedicated ${STAGEDIR}${PREFIX}/bin/${PORTNAME}-dedicated
.endif
${MKDIR} ${STAGEDIR}${DATADIR}
${INSTALL_DATA} ${WRKSRC}/gamedata/ssgamedata000001.pk3 ${STAGEDIR}${DATADIR}/
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}/
.include <bsd.port.mk>