# Created by: Jose Alonso Cardenas Marquez # $FreeBSD: head/games/warsow-data/Makefile 412346 2016-04-01 14:00:51Z mat $ PORTNAME= warsow-data PORTVERSION= 1.51 CATEGORIES= games MASTER_SITES= http://update.warsow.net/mirror/:DEFAULT,mappack \ http://mirror.amdmi3.ru/distfiles/:DEFAULT,mappack \ LOCAL/nemysis/games:mappack DISTNAME= warsow_${PORTVERSION}_unified DISTFILES= ${DISTNAME}${EXTRACT_SUFX} EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX} MAINTAINER= ports@FreeBSD.org COMMENT= Warsow data files LICENSE= WARSOW GPLv2 LICENSE_COMB= multi LICENSE_NAME_WARSOW= Warsow Content License LICENSE_FILE_WARSOW= ${WRKSRC}/docs/license.txt LICENSE_PERMS_WARSOW= dist-mirror pkg-mirror auto-accept WRKSRC= ${WRKDIR}/warsow_15 NO_BUILD= yes NO_ARCH= yes DATADIR= ${PREFIX}/share/warsow DOCSDIR= ${PREFIX}/share/doc/warsow PORTDATA= basewsw PORTDOCS= * OPTIONS_DEFINE= DOCS MAPPACK OPTIONS_DEFAULT= MAPPACK MAPPACK_DESC= Install community map pack .include .if ${PORT_OPTIONS:MMAPPACK} MAPPACK_FILE= warsow_comunity_map_pack_01.zip DISTFILES+= ${MAPPACK_FILE}:mappack EXTRACT_DEPENDS+= ${UNZIP_CMD}:archivers/unzip PORTDATA+= previews post-extract: @${UNZIP_CMD} -qo ${DISTDIR}/${MAPPACK_FILE} -d ${WRKSRC} .endif do-install: cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR} cd ${WRKSRC}/docs && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR} .include