mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-06 06:30:19 +00:00
4e1b79a0a6
With hat: portmgr Sponsored by: Absolight
53 lines
1.3 KiB
Makefile
53 lines
1.3 KiB
Makefile
# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
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 <bsd.port.options.mk>
|
|
|
|
.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 <bsd.port.mk>
|