aboutsummaryrefslogtreecommitdiffstats
path: root/games
diff options
context:
space:
mode:
authornemysis <nemysis@FreeBSD.org>2014-05-01 07:08:05 +0800
committernemysis <nemysis@FreeBSD.org>2014-05-01 07:08:05 +0800
commit81d8f204261dd7abd6be6b663eef2f63ee5b9cd1 (patch)
tree2cbe33bf5a7e77d7dde801567a7201d7f9e24c86 /games
parent2a4d036d8a9a4665093829077950b9713fd37075 (diff)
downloadfreebsd-ports-gnome-81d8f204261dd7abd6be6b663eef2f63ee5b9cd1.tar.gz
freebsd-ports-gnome-81d8f204261dd7abd6be6b663eef2f63ee5b9cd1.tar.zst
freebsd-ports-gnome-81d8f204261dd7abd6be6b663eef2f63ee5b9cd1.zip
- Strip executable
- Add patch, fix build on FreeBSD to not get Error: bin/netwalk is referring to /usr/local/ports/local/In-Review/games/netwalk/work/stage
Diffstat (limited to 'games')
-rw-r--r--games/netwalk/Makefile5
-rw-r--r--games/netwalk/files/patch-Makefile11
2 files changed, 14 insertions, 2 deletions
diff --git a/games/netwalk/Makefile b/games/netwalk/Makefile
index e31577f1df4e..0827c03b99a5 100644
--- a/games/netwalk/Makefile
+++ b/games/netwalk/Makefile
@@ -24,6 +24,7 @@ MAKE_ARGS= PREFIX=${STAGEDIR}${PREFIX}
ALL_TARGET=
PORTDOCS= README
+OPTIONS_DEFINE= DOCS
INSTALLS_ICONS= yes
ICON_SIZES= 32x32 48x48 64x64 96x96 128x128
@@ -31,8 +32,6 @@ ICON_SIZES= 32x32 48x48 64x64 96x96 128x128
DESKTOP_ENTRIES="NetWalk" "" "${PORTNAME}" \
"${PORTNAME}" "Game;LogicGame;" ""
-OPTIONS_DEFINE= DOCS
-
post-patch:
@${REINPLACE_CMD} -e \
's|CC = gcc|CC = ${CC}|; \
@@ -42,6 +41,8 @@ post-patch:
${WRKSRC}/Makefile
post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+
.for s in ${ICON_SIZES}
@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/
${INSTALL_DATA} ${WRKSRC}/icons/${PORTNAME}_${s}.png \
diff --git a/games/netwalk/files/patch-Makefile b/games/netwalk/files/patch-Makefile
new file mode 100644
index 000000000000..f444a37c9df8
--- /dev/null
+++ b/games/netwalk/files/patch-Makefile
@@ -0,0 +1,11 @@
+--- ./Makefile.orig 2013-09-24 07:25:27.000000000 +0200
++++ ./Makefile 2014-05-01 00:55:15.349700629 +0200
+@@ -23,6 +23,8 @@
+ sharedir.h : ./Makefile
+ ifeq ("$(OS)", "win32")
+ echo '#define NETWALK_SHARE_DIR "."' > sharedir.h
++else ("$(OS)", "FreeBSD")
++ echo '#define NETWALK_SHARE_DIR "/usr/local/share/netwalk"' > sharedir.h
+ else
+ echo '#define NETWALK_SHARE_DIR "'$(PREFIX)'/share/netwalk"' > sharedir.h
+