diff options
author | wiz <wiz> | 2000-07-28 10:33:56 +0000 |
---|---|---|
committer | wiz <wiz> | 2000-07-28 10:33:56 +0000 |
commit | 46c4f8c2c2eed037fee73ca91838634011bbf1d4 (patch) | |
tree | 645721463659c2eb41c243dc65126304596e7750 /games/gnome-games | |
parent | 6e71d0ba90b1f2c7464e5aa7cc5537586fb1f184 (diff) | |
download | pkgsrc-46c4f8c2c2eed037fee73ca91838634011bbf1d4.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/gnome-games')
-rw-r--r-- | games/gnome-games/Makefile | 24 |
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 |