svn commit: r351239 - head/games/freetennis
Pawel Pekala
pawel at FreeBSD.org
Sun Apr 13 20:41:06 UTC 2014
Author: pawel
Date: Sun Apr 13 20:41:05 2014
New Revision: 351239
URL: http://svnweb.freebsd.org/changeset/ports/351239
QAT: https://qat.redports.org/buildarchive/r351239/
Log:
- Add staging support
- Convert to USES=tar:bzip2
- Use PORDATA for plist
Modified:
head/games/freetennis/Makefile
Modified: head/games/freetennis/Makefile
==============================================================================
--- head/games/freetennis/Makefile Sun Apr 13 20:30:10 2014 (r351238)
+++ head/games/freetennis/Makefile Sun Apr 13 20:41:05 2014 (r351239)
@@ -19,13 +19,11 @@ OCAML_DEPENDS= ${LOCALBASE}/lib/ocaml/si
${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>
More information about the svn-ports-all
mailing list