svn commit: r352705 - in head/games/netwalk: . files

Rusmir Dusko nemysis at FreeBSD.org
Wed Apr 30 23:08:07 UTC 2014


Author: nemysis
Date: Wed Apr 30 23:08:05 2014
New Revision: 352705
URL: http://svnweb.freebsd.org/changeset/ports/352705
QAT: https://qat.redports.org/buildarchive/r352705/

Log:
  - 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

Added:
  head/games/netwalk/files/
  head/games/netwalk/files/patch-Makefile   (contents, props changed)
Modified:
  head/games/netwalk/Makefile

Modified: head/games/netwalk/Makefile
==============================================================================
--- head/games/netwalk/Makefile	Wed Apr 30 21:49:00 2014	(r352704)
+++ head/games/netwalk/Makefile	Wed Apr 30 23:08:05 2014	(r352705)
@@ -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 128x
 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 \

Added: head/games/netwalk/files/patch-Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/netwalk/files/patch-Makefile	Wed Apr 30 23:08:05 2014	(r352705)
@@ -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
+ 


More information about the svn-ports-all mailing list