diff options
author | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2013-11-20 13:29:41 +0000 |
---|---|---|
committer | Ganael LAPLANCHE <martymac@FreeBSD.org> | 2013-11-20 13:29:41 +0000 |
commit | 5ae518d5e341a4c633e799bc2b3d81c986933148 (patch) | |
tree | fffe97dda51036059c2a9d0a3aef538c157061aa | |
parent | 24a9cf72cd9907449b0479d6bb7137217e7cd327 (diff) | |
download | ports-5ae518d5e341a4c633e799bc2b3d81c986933148.tar.gz ports-5ae518d5e341a4c633e799bc2b3d81c986933148.zip |
Notes
-rw-r--r-- | games/flightgear-mb339-pan/Makefile | 26 |
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> |