aboutsummaryrefslogtreecommitdiff
path: root/games/freera
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-10-30 14:43:20 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-10-30 14:43:20 +0000
commit1e3a52bdba96b3fdcc273b465ad8854461d4be4b (patch)
tree579c366bffb8c22e61040d1d71b370b83126fa21 /games/freera
parenta075164de2325cb7ef093bcdab647bbff89c11bd (diff)
downloadports-1e3a52bdba96b3fdcc273b465ad8854461d4be4b.tar.gz
ports-1e3a52bdba96b3fdcc273b465ad8854461d4be4b.zip
Notes
Diffstat (limited to 'games/freera')
-rw-r--r--games/freera/Makefile13
-rw-r--r--games/freera/pkg-plist45
2 files changed, 5 insertions, 53 deletions
diff --git a/games/freera/Makefile b/games/freera/Makefile
index c7c7ac4c5efa..b4eb226f52e2 100644
--- a/games/freera/Makefile
+++ b/games/freera/Makefile
@@ -20,7 +20,9 @@ WRKSRC= ${WRKDIR}/freera++
SUB_FILES= pkg-message
-NO_STAGE= yes
+PLIST_FILES= bin/${PORTNMAE}
+PORTDATA= *
+
post-patch:
@${MV} ${WRKSRC}/SConstruct ${WRKSRC}/SConstruct.orig
@${CP} ${FILESDIR}/SConstruct ${WRKSRC}/
@@ -31,12 +33,7 @@ post-patch:
@${RM} -rf ${WRKSRC}/data/settings/ra/.svn ${WRKSRC}/data/settings/td/.svn
do-install:
- ${INSTALL_PROGRAM} ${WRKSRC}/freera ${PREFIX}/bin/
- cd ${WRKSRC}/data && \
- ${FIND} . -type d -exec ${MKDIR} "${DATADIR}/{}" \; ;\
- ${FIND} . -type f -exec ${INSTALL_DATA} "{}" "${DATADIR}/{}" \;
-
-post-install:
- ${CAT} ${PKGMESSAGE}
+ ${INSTALL_PROGRAM} ${WRKSRC}/freera ${STAGEDIR}${PREFIX}/bin/
+ cd ${WRKSRC}/data && ${COPYTREE_SHARE} '*' ${STAGEDIR}${DATADIR}/
.include <bsd.port.mk>
diff --git a/games/freera/pkg-plist b/games/freera/pkg-plist
deleted file mode 100644
index 61512dae8d59..000000000000
--- a/games/freera/pkg-plist
+++ /dev/null
@@ -1,45 +0,0 @@
-bin/freera
-%%DATADIR%%/gfx/icon.bmp
-%%DATADIR%%/gfx/icon.ico
-%%DATADIR%%/gfx/icon.svg
-%%DATADIR%%/gfx/icon.xpm
-%%DATADIR%%/gfx/map.shp
-%%DATADIR%%/gfx/repair.shp
-%%DATADIR%%/gfx/sell.shp
-%%DATADIR%%/scripts/hello.lua
-%%DATADIR%%/scripts/ui.lua
-%%DATADIR%%/settings/files.ini
-%%DATADIR%%/settings/freecnc.ini
-%%DATADIR%%/settings/freecnc.log
-%%DATADIR%%/settings/internal-global.ini
-%%DATADIR%%/settings/ra/art.ini
-%%DATADIR%%/settings/ra/cursors.ini
-%%DATADIR%%/settings/ra/internal.ini
-%%DATADIR%%/settings/ra/protofiles.ini
-%%DATADIR%%/settings/ra/sidebar.ini
-%%DATADIR%%/settings/ra/sound.ini
-%%DATADIR%%/settings/ra/structure.ini
-%%DATADIR%%/settings/ra/talkback.ini
-%%DATADIR%%/settings/ra/templates.ini
-%%DATADIR%%/settings/ra/unit.ini
-%%DATADIR%%/settings/ra/weapons.ini
-%%DATADIR%%/settings/songs.ini
-%%DATADIR%%/settings/td/art.ini
-%%DATADIR%%/settings/td/cursors.ini
-%%DATADIR%%/settings/td/internal.ini
-%%DATADIR%%/settings/td/protofiles.ini
-%%DATADIR%%/settings/td/sidebar.ini
-%%DATADIR%%/settings/td/sound.ini
-%%DATADIR%%/settings/td/structure.ini
-%%DATADIR%%/settings/td/talkback.ini
-%%DATADIR%%/settings/td/templates.ini
-%%DATADIR%%/settings/td/unit.ini
-%%DATADIR%%/settings/td/weapons.ini
-%%DATADIR%%/settings/td/wsa.ini
-@dirrm %%DATADIR%%/settings/td
-@dirrm %%DATADIR%%/settings/ra
-@dirrm %%DATADIR%%/settings
-@dirrm %%DATADIR%%/scripts
-@dirrm %%DATADIR%%/mix
-@dirrm %%DATADIR%%/gfx
-@dirrm %%DATADIR%%