summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authorwiz <wiz>2000-07-28 10:33:56 +0000
committerwiz <wiz>2000-07-28 10:33:56 +0000
commit447dd194129ffa63029cd4ab90ff025c7547bb53 (patch)
tree645721463659c2eb41c243dc65126304596e7750 /games
parentc40fcc3929c4250af43bd4dc9db3c4838d9d6843 (diff)
downloadpkgsrc-447dd194129ffa63029cd4ab90ff025c7547bb53.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