pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/games/ggz-client-libs add a makefile snippet to instal...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/81e9f1ef0a74
branches:  trunk
changeset: 396607:81e9f1ef0a74
user:      drochner <drochner%pkgsrc.org@localhost>
date:      Tue Jul 28 18:47:14 2009 +0000

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

 games/ggz-client-libs/ggz-client.mk |  16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diffs (20 lines):

diff -r c6bc07ccba5d -r 81e9f1ef0a74 games/ggz-client-libs/ggz-client.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/games/ggz-client-libs/ggz-client.mk       Tue Jul 28 18:47:14 2009 +0000
@@ -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}



Home | Main Index | Thread Index | Old Index