aboutsummaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2010-11-26 19:08:11 +0000
committerPav Lucistnik <pav@FreeBSD.org>2010-11-26 19:08:11 +0000
commit36f5c72e1367a1ea41fea153297f6069921f5f30 (patch)
treeb4e9f713181315735f1368db0d43561300e8a4df /games
parentf78028c25082808d2f9f870d70c4bb695e370fc4 (diff)
downloadports-36f5c72e1367a1ea41fea153297f6069921f5f30.tar.gz
ports-36f5c72e1367a1ea41fea153297f6069921f5f30.zip
- Move unzipping to extract phase, where unzip is only available
Reported by: pointyhat
Notes
Notes: svn path=/head/; revision=265193
Diffstat (limited to 'games')
-rw-r--r--games/openarena-data/Makefile16
1 files changed, 7 insertions, 9 deletions
diff --git a/games/openarena-data/Makefile b/games/openarena-data/Makefile
index 1a80e300abdc..a32539909041 100644
--- a/games/openarena-data/Makefile
+++ b/games/openarena-data/Makefile
@@ -19,7 +19,7 @@ COMMENT= OpenArena game data files
USE_ZIP= yes
-WRKSRC= ${WRKDIR}
+WRKSRC= ${WRKDIR}/baseoa
NO_BUILD= yes
FETCH_ARGS=
USE_ZIP= yes
@@ -29,14 +29,12 @@ OA_DATA_VER= 0.8.1
OA_PATCH= oa085p.zip
OA_PATCH_VER= 0.8.1
+post-extract:
+ ${UNZIP_CMD} -j ${DISTDIR}/${OA_DATA} ${PKGNAMEPREFIX}${OA_DATA_VER}/${OABASE}/\* -d ${WRKSRC}
+ ${UNZIP_CMD} -j ${DISTDIR}/${OA_PATCH} ${PKGNAMEPREFIX}${OA_PATCH_VER}/${OABASE}/\* -d ${WRKSRC}
+
do-install:
- @${MKDIR} ${DATADIR}
- @${UNZIP_CMD} -j ${DISTDIR}/${OA_DATA} \
- ${PKGNAMEPREFIX}${OA_DATA_VER}/${OABASE}/\* \
- -d ${DATADIR}
- @${UNZIP_CMD} -j ${DISTDIR}/${OA_PATCH} \
- ${PKGNAMEPREFIX}${OA_PATCH_VER}/${OABASE}/\* \
- -d ${DATADIR}
- @${CHMOD} -R o-w ${DATADIR}
+ ${MKDIR} ${DATADIR}
+ (cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR})
.include "../openarena/Makefile.include"