summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2000-07-28 10:33:56 +0000
committerwiz <wiz@pkgsrc.org>2000-07-28 10:33:56 +0000
commitd63de2f4a37307523d7d0882a887bcdfe62a5bca (patch)
tree645721463659c2eb41c243dc65126304596e7750 /games
parent5c635cc3235c723c204ab1618f678a6f6720c03a (diff)
downloadpkgsrc-d63de2f4a37307523d7d0882a887bcdfe62a5bca.tar.gz
Add USE_CURSES for packages that need curses functionality that only
got added in 1.4Y; on older version of NetBSD, ncurses will be used. Replace previous code that did the same, but wasn't shared.
Diffstat (limited to 'games')
-rw-r--r--games/gnome-games/Makefile24
1 files changed, 6 insertions, 18 deletions
diff --git a/games/gnome-games/Makefile b/games/gnome-games/Makefile
index 223784652ff..1765f5f133e 100644
--- a/games/gnome-games/Makefile
+++ b/games/gnome-games/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.9 2000/06/27 08:30:47 tron Exp $
+# $NetBSD: Makefile,v 1.10 2000/07/28 10:33:58 wiz Exp $
DISTNAME= gnome-games-1.2.0
CATEGORIES= games gnome
@@ -16,30 +16,18 @@ GNU_CONFIGURE= # defined
CONFIGURE_ARGS= --localstatedir=/var
USE_X11BASE= # defined
+USE_CURSES= # defined
USE_LIBTOOL= # defined
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}
.include "../../mk/bsd.pkg.mk"
+
+.if ${NEED_NCURSES} == "YES"
+CONFIGURE_ARGS+=--with-ncurses=${LOCALBASE}
+.endif