aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2013-10-19 10:24:56 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2013-10-19 10:24:56 +0800
commit1ad85b4a4b3a539e9bd9e68c59c58464f6590722 (patch)
treec4442c23a8e12533394bcd7d0a0eaeb84a36d773 /games
parent5f0f7d5930a9d6923e211bd18b17441cb8d6de2d (diff)
downloadfreebsd-ports-gnome-1ad85b4a4b3a539e9bd9e68c59c58464f6590722.tar.gz
freebsd-ports-gnome-1ad85b4a4b3a539e9bd9e68c59c58464f6590722.tar.zst
freebsd-ports-gnome-1ad85b4a4b3a539e9bd9e68c59c58464f6590722.zip
- Support staging
Diffstat (limited to 'games')
-rw-r--r--games/stormbaancoureur/Makefile16
-rw-r--r--games/stormbaancoureur/files/patch-src-stormbaancoureur-Makefile8
-rw-r--r--games/stormbaancoureur/pkg-plist47
3 files changed, 11 insertions, 60 deletions
diff --git a/games/stormbaancoureur/Makefile b/games/stormbaancoureur/Makefile
index b3012dc085ee..039adf3c7182 100644
--- a/games/stormbaancoureur/Makefile
+++ b/games/stormbaancoureur/Makefile
@@ -21,21 +21,19 @@ MAKE_ENV= DATADIR="${DATADIR}"
BUILD_WRKSRC= ${WRKSRC}/src-stormbaancoureur
INSTALL_WRKSRC= ${WRKSRC}/src-stormbaancoureur
-PORTDOCS= README
+PLIST_FILES= bin/${PORTNAME}
+PORTDOCS= *
+PORTDATA= *
-NO_STAGE= yes
-.include <bsd.port.options.mk>
+OPTIONS_DEFINE= DOCS
+OPTIONS_DEFAULT=DOCS
post-patch:
@${REINPLACE_CMD} -e 's|__DATADIR|"${DATADIR}"|' \
${WRKSRC}/src-stormbaancoureur/main.cxx
post-install:
-.if ${PORT_OPTIONS:MDOCS}
- ${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
- ${INSTALL_DATA} ${INSTALL_WRKSRC}/${f} ${DOCSDIR}
-.endfor
-.endif
+ ${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${INSTALL_WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
diff --git a/games/stormbaancoureur/files/patch-src-stormbaancoureur-Makefile b/games/stormbaancoureur/files/patch-src-stormbaancoureur-Makefile
index 8a418eece23f..44de7704e713 100644
--- a/games/stormbaancoureur/files/patch-src-stormbaancoureur-Makefile
+++ b/games/stormbaancoureur/files/patch-src-stormbaancoureur-Makefile
@@ -1,5 +1,5 @@
---- src-stormbaancoureur/Makefile.orig 2008-04-20 19:57:43.000000000 +0400
-+++ src-stormbaancoureur/Makefile 2008-06-02 16:17:12.000000000 +0400
+--- src-stormbaancoureur/Makefile.orig 2008-06-11 18:12:01.000000000 +0400
++++ src-stormbaancoureur/Makefile 2013-09-30 06:14:07.576519380 +0400
@@ -5,23 +5,20 @@
GLPREFIX=/usr
PLIBPREFIX=/usr
@@ -53,7 +53,7 @@
rm -f *.o stormbaancoureur
-GAMEDIR=$(DESTDIR)/usr/share/games/stormbaancoureur
-+GAMEDIR=$(PREFIX)/share/stormbaancoureur
++GAMEDIR=$(DESTDIR)$(PREFIX)/share/stormbaancoureur
install: stormbaancoureur
# Directories
- mkdir -p $(DESTDIR)/usr/games/
@@ -63,7 +63,7 @@
mkdir -p $(GAMEDIR)/models/
# Binary
- install stormbaancoureur $(DESTDIR)/usr/games/stormbaancoureur
-+ install stormbaancoureur $(PREFIX)/bin/stormbaancoureur
++ install stormbaancoureur $(DESTDIR)$(PREFIX)/bin/stormbaancoureur
# Images
install -m 644 images/info_carpet_smooth.rgb $(GAMEDIR)/images/info_carpet_smooth.rgb
install -m 644 images/info_door_smooth.rgb $(GAMEDIR)/images/info_door_smooth.rgb
diff --git a/games/stormbaancoureur/pkg-plist b/games/stormbaancoureur/pkg-plist
deleted file mode 100644
index 02569f6690d4..000000000000
--- a/games/stormbaancoureur/pkg-plist
+++ /dev/null
@@ -1,47 +0,0 @@
-bin/stormbaancoureur
-%%DATADIR%%/images/info_carpet_smooth.rgb
-%%DATADIR%%/images/info_door_smooth.rgb
-%%DATADIR%%/images/info_jump_smooth.rgb
-%%DATADIR%%/images/spot.tga
-%%DATADIR%%/models/baseplate.3ds
-%%DATADIR%%/models/carpet.3ds
-%%DATADIR%%/models/coilspring.3ds
-%%DATADIR%%/models/crate.3ds
-%%DATADIR%%/models/crate_low.3ds
-%%DATADIR%%/models/cratejump.3ds
-%%DATADIR%%/models/door.3ds
-%%DATADIR%%/models/doorstand.3ds
-%%DATADIR%%/models/ferriswheelcart.3ds
-%%DATADIR%%/models/ferriswheelstand.3ds
-%%DATADIR%%/models/ferriswheelwheel.3ds
-%%DATADIR%%/models/finishdoor.3ds
-%%DATADIR%%/models/finishplank.3ds
-%%DATADIR%%/models/fivespoke.3ds
-%%DATADIR%%/models/floppy.3ds
-%%DATADIR%%/models/frame.3ds
-%%DATADIR%%/models/grid.3ds
-%%DATADIR%%/models/highjump.3ds
-%%DATADIR%%/models/jumpboard.3ds
-%%DATADIR%%/models/leafspring.3ds
-%%DATADIR%%/models/monoramp.3ds
-%%DATADIR%%/models/piston.3ds
-%%DATADIR%%/models/ramp.3ds
-%%DATADIR%%/models/rearaxle.3ds
-%%DATADIR%%/models/rod.3ds
-%%DATADIR%%/models/spikegate.3ds
-%%DATADIR%%/models/spindle.3ds
-%%DATADIR%%/models/terrain3.3ds
-%%DATADIR%%/models/track.3ds
-%%DATADIR%%/models/turntable_ramp.3ds
-%%DATADIR%%/models/turntable_wheel.3ds
-%%DATADIR%%/models/wishbone.3ds
-%%DATADIR%%/shaders/bramlight.fp
-%%DATADIR%%/shaders/bramlight.vp
-%%DATADIR%%/sounds/camaro_s16_le.wav
-%%DATADIR%%/sounds/detonationnorm_s16_le.wav
-%%DATADIR%%/sounds/rpm_graph.txt
-@dirrm %%DATADIR%%/sounds
-@dirrm %%DATADIR%%/shaders
-@dirrm %%DATADIR%%/models
-@dirrm %%DATADIR%%/images
-@dirrm %%DATADIR%%