aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authormartymac <martymac@FreeBSD.org>2013-11-20 21:29:41 +0800
committermartymac <martymac@FreeBSD.org>2013-11-20 21:29:41 +0800
commit323160fd903d8ed1b93e425b81738fb6bde4025f (patch)
treefffe97dda51036059c2a9d0a3aef538c157061aa /games
parent9c7c4e89f4be1a5d0f215c03d3c854ef18bc0a71 (diff)
downloadfreebsd-ports-gnome-323160fd903d8ed1b93e425b81738fb6bde4025f.tar.gz
freebsd-ports-gnome-323160fd903d8ed1b93e425b81738fb6bde4025f.tar.zst
freebsd-ports-gnome-323160fd903d8ed1b93e425b81738fb6bde4025f.zip
- Enable staging
- Cleanup WRKSRC handling
Diffstat (limited to 'games')
-rw-r--r--games/flightgear-mb339-pan/Makefile26
1 files changed, 17 insertions, 9 deletions
diff --git a/games/flightgear-mb339-pan/Makefile b/games/flightgear-mb339-pan/Makefile
index df35bef0ec2e..4dcb022047a5 100644
--- a/games/flightgear-mb339-pan/Makefile
+++ b/games/flightgear-mb339-pan/Makefile
@@ -13,24 +13,32 @@ COMMENT= A simulation of the MB-339 PAN aerobatic jet
RUN_DEPENDS= ${LOCALBASE}/share/flightgear/version:${PORTSDIR}/games/flightgear-data
-USE_ZIP= yes
-NO_WRKSUBDIR= yes
-NO_BUILD= yes
RESTRICTED= Redistribution prohibited
-PLIST= ${WRKDIR}/.pkg-plist
-NO_STAGE= yes
+NO_BUILD= yes
+USE_ZIP= yes
+WRKSRC= ${WRKDIR}/${PORTNAME}
+EXTRACT_AFTER_ARGS= -d ${WRKSRC}
+DATADIR= ${PREFIX}/share/flightgear/Aircraft
+
+PLIST= ${WRKDIR}/pkg-plist
+PLIST_DIRS= %%DATADIR%%
+
+pre-extract:
+ @${MKDIR} ${WRKSRC}
+
pre-install:
@${RM} -f ${PLIST}
@cd ${WRKSRC} && \
${FIND} * -type d -empty | ${SORT} \
- | ${SED} -e 's|^|@exec ${MKDIR} share/flightgear/Aircraft/|' >> ${PLIST} && \
+ | ${SED} -e 's|^|@exec ${MKDIR} %D/share/flightgear/Aircraft/|' >> ${PLIST} && \
${FIND} * -type f | ${SORT} \
- | ${SED} -e 's|^|share/flightgear/Aircraft/|' >> ${PLIST} && \
+ | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \
${FIND} * -type d | ${SORT} -r \
- | ${SED} -e 's|^|@dirrm share/flightgear/Aircraft/|' >> ${PLIST}
+ | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST}
do-install:
- (cd ${WRKSRC}/ && ${COPYTREE_SHARE} \* ${PREFIX}/share/flightgear/Aircraft/)
+ ${MKDIR} ${STAGEDIR}${DATADIR}
+ (cd ${WRKSRC}/ && ${COPYTREE_SHARE} \* ${STAGEDIR}${DATADIR})
.include <bsd.port.mk>