diff options
author | drochner <drochner@pkgsrc.org> | 2009-07-28 18:47:14 +0000 |
---|---|---|
committer | drochner <drochner@pkgsrc.org> | 2009-07-28 18:47:14 +0000 |
commit | 261149fed5dbe4ed2af50f8c2a8788bd499730a3 (patch) | |
tree | 8f7b8946ee7a2011ad1563baad699bba033b4b42 /games/ggz-client-libs | |
parent | b2196b76f3235b30b48af053c8acd0ce496f17ac (diff) | |
download | pkgsrc-261149fed5dbe4ed2af50f8c2a8788bd499730a3.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/ggz-client-libs')
-rw-r--r-- | games/ggz-client-libs/ggz-client.mk | 16 |
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} |