diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-10-25 01:00:12 +0800 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2014-10-25 01:00:12 +0800 |
commit | 8b10d52425237a5bf6ea2deb5300788a91f340ba (patch) | |
tree | 9f960207473f91da5869dd65d614e5fcab7d3be3 /games | |
parent | fae188751b59d1700f6a3231d48e1eb5e4959e90 (diff) | |
download | freebsd-ports-gnome-8b10d52425237a5bf6ea2deb5300788a91f340ba.tar.gz freebsd-ports-gnome-8b10d52425237a5bf6ea2deb5300788a91f340ba.tar.zst freebsd-ports-gnome-8b10d52425237a5bf6ea2deb5300788a91f340ba.zip |
- Simplify installation and plist generation
Diffstat (limited to 'games')
-rw-r--r-- | games/marsnomercy/Makefile | 22 |
1 files changed, 7 insertions, 15 deletions
diff --git a/games/marsnomercy/Makefile b/games/marsnomercy/Makefile index 56e60aac8a9d..e5942c73ecc4 100644 --- a/games/marsnomercy/Makefile +++ b/games/marsnomercy/Makefile @@ -17,12 +17,12 @@ USE_GL= gl USE_SDL= sdl image ttf SCONS_ARGS= prefix=${PREFIX} -PLIST= ${WRKDIR}/pkg-plist -PLIST_FILES= bin/mars-nomercy libexec/mars -PLIST_DIRS= %%DATADIR%% SUB_FILES= mars-nomercy pkg-message WRKSRC= ${WRKDIR}/mars-${PORTVERSION} +PLIST_FILES= bin/mars-nomercy libexec/mars +PORTDATA= * + OPTIONS_DEFINE= DEBUG OPENGL .include <bsd.port.options.mk> @@ -42,18 +42,10 @@ SCONS_ARGS+= with_opengl=0 do-build: @cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} scons ${SCONS_ARGS} -pre-install: - @${RM} -f ${PLIST} - @cd ${WRKSRC}/data && \ - ${FIND} * -type f | ${SORT} | ${SED} -e 's|^|%%DATADIR%%/|' >> ${PLIST} && \ - ${FIND} * -type d | ${SORT} -r | ${SED} -e 's|^|@dirrm %%DATADIR%%/|' >> ${PLIST} - do-install: - @${MKDIR} ${STAGEDIR}${DATADIR} - @cd ${WRKSRC}/data && \ - ${FIND} * -type d -exec ${MKDIR} "${STAGEDIR}${DATADIR}/{}" \; && \ - ${FIND} * -type f -exec ${INSTALL_DATA} "{}" "${STAGEDIR}${DATADIR}/{}" \; - @${INSTALL_SCRIPT} ${WRKDIR}/mars-nomercy ${STAGEDIR}${PREFIX}/bin - @${INSTALL_PROGRAM} ${WRKSRC}/mars ${STAGEDIR}${PREFIX}/libexec/mars + ${INSTALL_SCRIPT} ${WRKDIR}/mars-nomercy ${STAGEDIR}${PREFIX}/bin/ + ${INSTALL_PROGRAM} ${WRKSRC}/mars ${STAGEDIR}${PREFIX}/libexec/mars + cd ${WRKSRC}/data && ${COPYTREE_SHARE} . ${STAGEDIR}${DATADIR} + @${RM} -f ${STAGEDIR}${DATADIR}/SConscript .include <bsd.port.mk> |