From ed9de04da3830f53753d9afe3169cb13d9a430b8 Mon Sep 17 00:00:00 2001 From: drochner Date: Tue, 28 Jul 2009 18:47:14 +0000 Subject: 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.) --- games/ggz-client-libs/ggz-client.mk | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 games/ggz-client-libs/ggz-client.mk (limited to 'games') 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} -- cgit v1.2.3