summaryrefslogtreecommitdiff
path: root/games/koth/Makefile
diff options
context:
space:
mode:
authorwiz <wiz>2003-01-04 12:25:13 +0000
committerwiz <wiz>2003-01-04 12:25:13 +0000
commitf0c04d1d78f06370c843be39ca1f677cc279898a (patch)
tree6c45aed0a6b8d327d4480ff2d0929aafa1731b67 /games/koth/Makefile
parent10b80ce5d87c2e6ab3247e91b46416a8668f3095 (diff)
downloadpkgsrc-f0c04d1d78f06370c843be39ca1f677cc279898a.tar.gz
Convert to buildlink2; use PKG_SYSCONFDIR; install documentation.
Bump PKGREVISION to 1.
Diffstat (limited to 'games/koth/Makefile')
-rw-r--r--games/koth/Makefile21
1 files changed, 16 insertions, 5 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"