summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authortron <tron>2000-06-27 08:30:47 +0000
committertron <tron>2000-06-27 08:30:47 +0000
commitd51aa5e38f7919e848293100b003b6f2aa6df857 (patch)
tree7bb7ad20b4d3f9242367cb4f5fd5a7ccde5abb93 /games
parentd2156648f6c95660585457b883dd436a2b64a906 (diff)
downloadpkgsrc-d51aa5e38f7919e848293100b003b6f2aa6df857.tar.gz
Use "ncurses" under NetBSD 1.4 to get the curses version of "tali".
Diffstat (limited to 'games')
-rw-r--r--games/gnome-games/Makefile19
-rw-r--r--games/gnome-games/files/patch-sum3
-rw-r--r--games/gnome-games/patches/patch-aa20
3 files changed, 40 insertions, 2 deletions
diff --git a/games/gnome-games/Makefile b/games/gnome-games/Makefile
index 3ff24525e62..223784652ff 100644
--- a/games/gnome-games/Makefile
+++ b/games/gnome-games/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2000/06/25 17:21:02 rh Exp $
+# $NetBSD: Makefile,v 1.9 2000/06/27 08:30:47 tron Exp $
DISTNAME= gnome-games-1.2.0
CATEGORIES= games gnome
@@ -21,6 +21,23 @@ LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
INSTALL_FILE= ${WRKDIR}/INSTALL
+.include "../../mk/bsd.prefs.mk"
+
+.if ${OPSYS} == "NetBSD"
+GOOD_CURSES= 1.4[Y-Z] 1.4Z[A-Z] 1.[5-9]*
+
+.for PATTERN in ${GOOD_CURSES}
+.if ${OS_VERSION:M${PATTERN}} != ""
+CURSES_GOOD?= # defined
+.endif
+.endfor
+
+.if !defined(CURSES_GOOD)
+DEPENDS+= ncurses>=5.0:../../devel/ncurses
+CONFIGURE_ARGS+=--with-ncurses=${LOCALBASE}
+.endif
+.endif
+
post-build:
${SED} -e 's#@@INSTALL@@#${INSTALL}#' \
${PKGDIR}/INSTALL >${INSTALL_FILE}
diff --git a/games/gnome-games/files/patch-sum b/games/gnome-games/files/patch-sum
index 7689461c59c..5d17d78bd44 100644
--- a/games/gnome-games/files/patch-sum
+++ b/games/gnome-games/files/patch-sum
@@ -1,4 +1,5 @@
-$NetBSD: patch-sum,v 1.3 2000/06/21 01:28:49 jlam Exp $
+$NetBSD: patch-sum,v 1.4 2000/06/27 08:30:48 tron Exp $
+MD5 (patch-aa) = 6f2f6b5422629a8968dc462cbdd1b9ec
MD5 (patch-ab) = e21bc6ba9a3c999c4b7defd969c7fce2
MD5 (patch-ac) = 3edf07e8535675ce6fe4a11e84735b29
diff --git a/games/gnome-games/patches/patch-aa b/games/gnome-games/patches/patch-aa
new file mode 100644
index 00000000000..d928c6cb171
--- /dev/null
+++ b/games/gnome-games/patches/patch-aa
@@ -0,0 +1,20 @@
+$NetBSD: patch-aa,v 1.3 2000/06/27 08:30:48 tron Exp $
+
+--- gtali/cyahtzee.c.orig Sun Apr 11 05:42:17 1999
++++ gtali/cyahtzee.c Tue Jun 27 10:08:30 2000
+@@ -37,13 +37,14 @@
+ #include <signal.h>
+ #include <stdarg.h>
+
++#include <config.h>
++
+ #if defined(USE_NCURSES) && !defined(RENAMED_NCURSES)
+ #include <ncurses.h>
+ #else
+ #include <curses.h>
+ #endif
+
+-#include <config.h>
+ #include "yahtzee.h"
+ #include "cyahtzee.h"
+ #include "scores.h"