diff options
author | pawel <pawel@FreeBSD.org> | 2014-04-14 04:41:05 +0800 |
---|---|---|
committer | pawel <pawel@FreeBSD.org> | 2014-04-14 04:41:05 +0800 |
commit | 3f6625a29bc91bab52892a0e1285b7d04a4fe583 (patch) | |
tree | 7aba9ebcf5246fe570c81259dd7c5f48f2fe4160 /games/freetennis/Makefile | |
parent | cbb776f4f5c195ef1211d6e1342c1e7fdcbd05b8 (diff) | |
download | freebsd-ports-gnome-3f6625a29bc91bab52892a0e1285b7d04a4fe583.tar.gz freebsd-ports-gnome-3f6625a29bc91bab52892a0e1285b7d04a4fe583.tar.zst freebsd-ports-gnome-3f6625a29bc91bab52892a0e1285b7d04a4fe583.zip |
- Add staging support
- Convert to USES=tar:bzip2
- Use PORDATA for plist
Diffstat (limited to 'games/freetennis/Makefile')
-rw-r--r-- | games/freetennis/Makefile | 22 |
1 files changed, 4 insertions, 18 deletions
diff --git a/games/freetennis/Makefile b/games/freetennis/Makefile index cfc93c75d55a..59a60e214161 100644 --- a/games/freetennis/Makefile +++ b/games/freetennis/Makefile @@ -19,13 +19,11 @@ OCAML_DEPENDS= ${LOCALBASE}/lib/ocaml/site-lib/lablgtk2/gtk.ml:${PORTSDIR}/x11-t ${LOCALBASE}/lib/ocaml/lablGL/gl.ml:${PORTSDIR}/graphics/ocaml-lablgl \ ${LOCALBASE}/lib/ocaml/site-lib/sdl/sdl.mli:${PORTSDIR}/devel/ocaml-sdl -USE_BZIP2= yes +USES= tar:bzip2 -PLIST= ${WRKDIR}/pkg-plist PLIST_FILES= bin/freetennis -PLIST_DIRS= %%DATADIR%% +PORTDATA= * -NO_STAGE= yes post-patch: @${REINPLACE_CMD} -e 's|sfxDir = "sfx"|sfxDir = "${DATADIR}/sfx"|; \ s|gfxDir = "graphics"|gfxDir = "${DATADIR}/graphics"|' \ @@ -33,20 +31,8 @@ post-patch: @${REINPLACE_CMD} -Ee 's@(\+)(lablgtk2)@\1site-lib/\2@' \ ${WRKSRC}/Makefile -pre-install: - @${RM} -f ${PLIST} - @cd ${WRKSRC} && \ - ${FIND} graphics sfx -type f | ${SORT} \ - | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \ - ${FIND} graphics sfx -type d | ${SORT} -r \ - | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST} - do-install: - ${INSTALL_PROGRAM} ${WRKSRC}/freetennis ${PREFIX}/bin - cd ${WRKSRC} && \ - ${FIND} graphics sfx -type d -exec \ - ${MKDIR} "${DATADIR}/{}" \; && \ - ${FIND} graphics sfx -type f -exec \ - ${INSTALL_DATA} "{}" "${DATADIR}/{}" \; + ${INSTALL_PROGRAM} ${WRKSRC}/freetennis ${STAGEDIR}${PREFIX}/bin + (cd ${WRKSRC} && ${COPYTREE_SHARE} "graphics sfx" ${STAGEDIR}${DATADIR}) .include <bsd.port.mk> |