Permalink
Browse files

- Enable staging

- Cleanup WRKSRC handling
  • Loading branch information...
1 parent 9c7c4e8 commit 323160fd903d8ed1b93e425b81738fb6bde4025f @martymac martymac committed Nov 20, 2013
Showing with 17 additions and 9 deletions.
  1. +17 −9 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>

0 comments on commit 323160f

Please sign in to comment.