summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authordrochner <drochner>2009-07-28 18:47:14 +0000
committerdrochner <drochner>2009-07-28 18:47:14 +0000
commited9de04da3830f53753d9afe3169cb13d9a430b8 (patch)
tree8f7b8946ee7a2011ad1563baad699bba033b4b42 /games
parent78abd9b5a7e45de0de638c2c1e03f0e3b5dfb088 (diff)
downloadpkgsrc-ed9de04da3830f53753d9afe3169cb13d9a430b8.tar.gz
add a makefile snippet to install a wrapper for "ggz-config", preventing
it from installing config files into /etc at pkg install time (We could do better, save the information and do it later from the INSTALL script, but I didn't anything ggz-like to work, the game servers didn't respond, so I don't know how to test it.)
Diffstat (limited to 'games')
-rw-r--r--games/ggz-client-libs/ggz-client.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/games/ggz-client-libs/ggz-client.mk b/games/ggz-client-libs/ggz-client.mk
new file mode 100644
index 00000000000..41220a82aea
--- /dev/null
+++ b/games/ggz-client-libs/ggz-client.mk
@@ -0,0 +1,16 @@
+# $NetBSD: ggz-client.mk,v 1.1 2009/07/28 18:47:14 drochner Exp $
+
+REALGGZCONFIG= ${PREFIX}/bin/ggz-config
+
+CONFIGURE_ARGS+= --with-ggzconfig=${WRAPPER_DIR}/bin
+
+pre-configure: ${WRAPPER_DIR}/bin/ggz-config
+
+${WRAPPER_DIR}/bin/ggz-config:
+ ${PRINTF} "#! ${SH}\\n\
+ case \$$1 in\\n\
+ --configdir|--gamedir|--datadir) ${REALGGZCONFIG} \$$1;;\\n\
+ *) exit 0;;\\n\
+ esac\\n\
+ " > ${.TARGET}
+ ${CHMOD} +x ${.TARGET}