aboutsummaryrefslogtreecommitdiffstats
path: root/games/warsow-data/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'games/warsow-data/Makefile')
-rw-r--r--games/warsow-data/Makefile39
1 files changed, 13 insertions, 26 deletions
diff --git a/games/warsow-data/Makefile b/games/warsow-data/Makefile
index c7296d7bab5a..b4b68ae2e78f 100644
--- a/games/warsow-data/Makefile
+++ b/games/warsow-data/Makefile
@@ -1,20 +1,16 @@
# Created by: Jose Alonso Cardenas Marquez <acm@FreeBSD.org>
# $FreeBSD$
-PORTNAME= data
-PORTVERSION= 1.5
-PORTREVISION= 2
+PORTNAME= warsow-data
+PORTVERSION= 1.51
CATEGORIES= games
MASTER_SITES= SF/warsow.mirror/Warsow%20${PORTVERSION} \
http://www.warsow.net:1337/~warsow/${PORTVERSION}/ \
http://www.warsow.eu/:mappack \
LOCAL/nemysis/games:mappack
-
-PKGNAMEPREFIX= warsow-
-DISTNAME= ${PKGNAMEPREFIX:S/-//}_${PORTVERSION:S/.//}_unified
+DISTNAME= warsow_${PORTVERSION}_unified
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
-DIST_SUBDIR= ${PKGNAMEPREFIX:S/-//}
MAINTAINER= games@FreeBSD.org
COMMENT= Warsow data files
@@ -25,18 +21,17 @@ LICENSE_NAME_WARSOW= Warsow Content License
LICENSE_FILE_WARSOW= ${WRKSRC}/docs/license.txt
LICENSE_PERMS_WARSOW= dist-mirror pkg-mirror auto-accept
-RUN_DEPENDS= warsow:${PORTSDIR}/games/warsow
-
# 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
-WRKSRC= ${WRKDIR}/${PKGNAMEPREFIX:S/-//}_15
+WRKSRC= ${WRKDIR}/warsow_15
NO_BUILD= yes
-DATADIR= ${PREFIX}/share/${PKGNAMEPREFIX:S/-//}
-DOCSDIR= ${PREFIX}/share/doc/${PKGNAMEPREFIX:S/-//}
+DATADIR= ${PREFIX}/share/warsow
+DOCSDIR= ${PREFIX}/share/doc/warsow
-PORTDOCS= *.txt
+PORTDATA= basewsw
+PORTDOCS= *
OPTIONS_DEFINE= DOCS MAPPACK
OPTIONS_DEFAULT= MAPPACK
@@ -46,24 +41,16 @@ MAPPACK_DESC= Install community map pack
.if ${PORT_OPTIONS:MMAPPACK}
MAPPACK_FILE= warsow_comunity_map_pack_01.zip
-DISTFILES+= ${MAPPACK_FILE}:mappack
+DISTFILES+= ${MAPPACK_FILE}:mappack
EXTRACT_DEPENDS+= ${UNZIP_CMD}:${PORTSDIR}/archivers/unzip
-.endif
+PORTDATA+= previews
post-extract:
-.if ${PORT_OPTIONS:MMAPPACK}
- @${UNZIP_CMD} -qo ${DISTDIR}/${DIST_SUBDIR}/${MAPPACK_FILE} -d ${WRKSRC}
+ @${UNZIP_CMD} -qo ${DISTDIR}/${MAPPACK_FILE} -d ${WRKSRC}
.endif
do-install:
- @${MKDIR} ${STAGEDIR}${DATADIR}
- cd ${WRKSRC} && ${COPYTREE_SHARE} basewsw ${STAGEDIR}${DATADIR}
-
-.if ${PORT_OPTIONS:MMAPPACK}
- cd ${WRKSRC} && ${COPYTREE_SHARE} previews ${STAGEDIR}${DATADIR}
-.endif
-
- @${MKDIR} ${STAGEDIR}${DOCSDIR}
- ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/docs/|} ${STAGEDIR}${DOCSDIR}
+ cd ${WRKSRC} && ${COPYTREE_SHARE} "${PORTDATA}" ${STAGEDIR}${DATADIR}
+ cd ${WRKSRC}/docs && ${COPYTREE_SHARE} "${PORTDOCS}" ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>