freebsd-ports/games/warsow-data/Makefile
Baptiste Daroussin ac1bdd1dae Mark as broken, some distfiles are unfetchable
While here convert to new options framework
2013-05-03 23:18:09 +00:00

64 lines
1.8 KiB
Makefile

# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$
PORTNAME= data
PORTVERSION= 0.6.2
CATEGORIES= games
MASTER_SITES= http://www.zcdn.org/dl/ \
http://static.warsow.net/release/:mappack \
http://rewq.de/scratch/wsw05/:mappack
PKGNAMEPREFIX= warsow-
DISTNAME= ${PKGNAMEPREFIX:S/-//}_0.61_unified
DISTFILES= ${DISTNAME}${EXTRACT_SUFX} \
${PKGNAMEPREFIX:S/-//}_0.62_update${EXTRACT_SUFX}
DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//}
MAINTAINER= acm@FreeBSD.org
COMMENT= Warsow data files
# Package size below is for default set of OPTIONS
NO_PACKAGE= Package will be 574MB, set FORCE_PACKAGE if you really want it
BROKEN= warsow_0.61_unified.zip is unfetchable
# Game port is restricted to these architectures, so it makes no sense to
# package game data port as well (even it is not being technically built)
ONLY_FOR_ARCHS= i386 amd64
USE_ZIP= yes
NO_BUILD= yes
DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX:S/-//}
DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX:S/-//}
TXTDOCS= bots_navigation.txt changelog.txt contact.txt \
dedicated_server_quide.txt demoavi.txt democams.txt \
features.txt huds.txt license.txt mousefilter.txt \
query_protocols.txt
PORTDOCS= 0.4_renderer_changes.png ${TXTDOCS}
OPTIONS_DEFINE= MAPPACK DOCS
OPTIONS_DEFAULT= MAPPACK
MAPPACK_DESC= Install community map pack
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MMAPPACK}
DISTFILES+= warsow_comunity_map_pack_01${EXTRACT_SUFX}:mappack
PLIST_SUB+= MAPPACK=""
.else
PLIST_SUB+= MAPPACK="@comment "
.endif
do-install:
@${MKDIR} ${DATADIR}
cd ${WRKSRC} && ${COPYTREE_SHARE} basewsw ${DATADIR}
cd ${WRKDIR} && ${COPYTREE_SHARE} basewsw ${DATADIR}
.if ${PORT_OPTIONS:MMAPPACK}
cd ${WRKDIR} && ${COPYTREE_SHARE} previews ${DATADIR}
.endif
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC}/docs && ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR}
.endif
.include <bsd.port.mk>