summaryrefslogtreecommitdiff
path: root/misc/pinfo/Makefile
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2001-03-26 00:41:59 +0000
committerfredb <fredb@pkgsrc.org>2001-03-26 00:41:59 +0000
commit303c7ab9744adad063439b6c4e4e9cbf6cead172 (patch)
treec69934bce4c162ac6d7221b8351a20eb692e507d /misc/pinfo/Makefile
parent114d78ee7dc5fed786b684841c8b860410d4346d (diff)
downloadpkgsrc-303c7ab9744adad063439b6c4e4e9cbf6cead172.tar.gz
Add a hook to build with NetBSD native curses. Only works on NetBSD-1.5
and newer.
Diffstat (limited to 'misc/pinfo/Makefile')
-rw-r--r--misc/pinfo/Makefile13
1 files changed, 10 insertions, 3 deletions
diff --git a/misc/pinfo/Makefile b/misc/pinfo/Makefile
index 7934cc71ef2..25ae2d633d5 100644
--- a/misc/pinfo/Makefile
+++ b/misc/pinfo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2001/03/26 00:28:11 fredb Exp $
+# $NetBSD: Makefile,v 1.4 2001/03/26 00:41:59 fredb Exp $
#
DISTNAME= pinfo-0.6.0
@@ -11,16 +11,23 @@ HOMEPAGE= http://zeus.polsl.gliwice.pl/~pborys/
COMMENT= Przemek's Info Viewer
BUILD_DEPENDS+= msgfmt:../../devel/gettext
-DEPENDS+= ncurses>=5.0:../../devel/ncurses
GNU_CONFIGURE= yes
USE_LIBINTL= yes
CPPFLAGS+= -DDFLT_INFOPATH='\"/usr/share/info:${X11BASE}/info:${LOCALBASE}/info:/usr/local/info\"'
-CONFIGURE_ARGS+= --with-ncurses=${LOCALBASE}
CONFIGURE_ENV+= CPPFLAGS="${CPPFLAGS}"
post-install:
${INSTALL_DATA} ${WRKSRC}/src/pinforc ${PREFIX}/share/examples/
+.include "../../mk/bsd.prefs.mk"
+
+.if defined(PINFO_USE_NATIVE_CURSES) && ${PINFO_USE_NATIVE_CURSES} == "YES"
+CONFIGURE_ARGS+= --with-vcurses
+.else
+DEPENDS+= ncurses>=5.0:../../devel/ncurses
+CONFIGURE_ARGS+= --with-ncurses=${LOCALBASE}
+.endif
+
.include "../../mk/bsd.pkg.mk"