diff options
author | wiz <wiz@pkgsrc.org> | 2003-01-04 12:25:13 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2003-01-04 12:25:13 +0000 |
commit | 4ad18844706e525302b3b24a21117728870d5fb5 (patch) | |
tree | 6c45aed0a6b8d327d4480ff2d0929aafa1731b67 /games/koth | |
parent | 237b19866fe7116080bd114f48c144d08f8f5d7d (diff) | |
download | pkgsrc-4ad18844706e525302b3b24a21117728870d5fb5.tar.gz |
Convert to buildlink2; use PKG_SYSCONFDIR; install documentation.
Bump PKGREVISION to 1.
Diffstat (limited to 'games/koth')
-rw-r--r-- | games/koth/Makefile | 21 | ||||
-rw-r--r-- | games/koth/PLIST | 6 | ||||
-rw-r--r-- | games/koth/distinfo | 3 | ||||
-rw-r--r-- | games/koth/patches/patch-ab | 13 |
4 files changed, 36 insertions, 7 deletions
diff --git a/games/koth/Makefile b/games/koth/Makefile index 714b857e71c..e4dee5cfeb9 100644 --- a/games/koth/Makefile +++ b/games/koth/Makefile @@ -1,7 +1,8 @@ -# $NetBSD: Makefile,v 1.5 2001/02/16 15:10:53 wiz Exp $ +# $NetBSD: Makefile,v 1.6 2003/01/04 12:25:13 wiz Exp $ # DISTNAME= koth-0.7.6 +PKGREVISION= 1 CATEGORIES= games MASTER_SITES= http://www-unix.oit.umass.edu/~tetron/koth/ @@ -9,10 +10,20 @@ MAINTAINER= hubertf@netbsd.org HOMEPAGE= http://www-unix.oit.umass.edu/~tetron/koth/ COMMENT= The classic "shoot the other tank" artillery game, networked -DEPENDS+= libgii-0.6:../../graphics/libgii -DEPENDS+= libggi-2.0b2.1:../../graphics/libggi - GNU_CONFIGURE= YES -CONFIGURE_ENV+= CC="cc -I${LOCALBASE}/include" +CPPFLAGS+= -DPKG_SYSCONFDIR=\"\\\"${PKG_SYSCONFDIR:Q}\\\"\" +USE_BUILDLINK2= YES + +EGDIR= ${PREFIX}/share/examples/koth +CONF_FILES= ${EGDIR}/koth.cfg ${PKG_SYSCONFDIR}/koth.cfg + +post-install: + ${INSTALL_DATA_DIR} ${PREFIX}/share/doc/koth + ${INSTALL_DATA_DIR} ${EGDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/koth + ${INSTALL_DATA} ${WRKSRC}/src/koth.cfg ${EGDIR} +.include "../../graphics/libggi/buildlink2.mk" +.include "../../graphics/libgii/buildlink2.mk" +.include "../../mk/bsd.pkg.install.mk" .include "../../mk/bsd.pkg.mk" diff --git a/games/koth/PLIST b/games/koth/PLIST index dc7f848ba18..86c7ec22329 100644 --- a/games/koth/PLIST +++ b/games/koth/PLIST @@ -1,5 +1,9 @@ -@comment $NetBSD: PLIST,v 1.1 2001/11/01 00:53:48 zuntum Exp $ +@comment $NetBSD: PLIST,v 1.2 2003/01/04 12:25:13 wiz Exp $ bin/koth bin/koths bin/kmoron-ai bin/kclever-ai +share/doc/koth/README +share/examples/koth/koth.cfg +@dirrm share/examples/koth +@dirrm share/doc/koth diff --git a/games/koth/distinfo b/games/koth/distinfo index ad5a47094ff..d532ebf111d 100644 --- a/games/koth/distinfo +++ b/games/koth/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.2 2001/04/21 02:08:29 wiz Exp $ +$NetBSD: distinfo,v 1.3 2003/01/04 12:25:13 wiz Exp $ SHA1 (koth-0.7.6.tar.gz) = dcfe80c51b1e281763260af42e13fc6cd1dab92b Size (koth-0.7.6.tar.gz) = 145289 bytes SHA1 (patch-aa) = 5235e02794ef94ee1c49d895b8cc0ab4ec09a68b +SHA1 (patch-ab) = 69ce8862b3cdba97f3a4040b0004254b89de3606 diff --git a/games/koth/patches/patch-ab b/games/koth/patches/patch-ab new file mode 100644 index 00000000000..aa429f2464c --- /dev/null +++ b/games/koth/patches/patch-ab @@ -0,0 +1,13 @@ +$NetBSD: patch-ab,v 1.3 2003/01/04 12:25:13 wiz Exp $ + +--- src/cfgfile.h.orig Wed Sep 1 02:52:17 1999 ++++ src/cfgfile.h +@@ -37,7 +37,7 @@ + #define _CFGFILE_H + + #define CONFIGFILE_STUB "koth.cfg" +-#define DEFAULT_CONFIGFILE "/etc/koth/" CONFIGFILE_STUB ++#define DEFAULT_CONFIGFILE PKG_SYSCONFDIR "/" CONFIGFILE_STUB + + typedef struct ConfigItem_cfg + { |