summaryrefslogtreecommitdiff
path: root/misc/pinfo/Makefile
diff options
context:
space:
mode:
authorwiz <wiz@pkgsrc.org>2005-06-02 18:26:36 +0000
committerwiz <wiz@pkgsrc.org>2005-06-02 18:26:36 +0000
commit3e2e99a8ed978a32102aa3df25dca86622177e9f (patch)
treebda5dd281f77ad4b279ffe393faeb64a3973d373 /misc/pinfo/Makefile
parent359d40ead86b4c4c16003c75f5af4d4874ea3b0a (diff)
downloadpkgsrc-3e2e99a8ed978a32102aa3df25dca86622177e9f.tar.gz
Convert to options framework.
Diffstat (limited to 'misc/pinfo/Makefile')
-rw-r--r--misc/pinfo/Makefile10
1 files changed, 7 insertions, 3 deletions
diff --git a/misc/pinfo/Makefile b/misc/pinfo/Makefile
index 254d0b397d4..000bf2d2b7f 100644
--- a/misc/pinfo/Makefile
+++ b/misc/pinfo/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.22 2005/04/11 21:46:39 tv Exp $
+# $NetBSD: Makefile,v 1.23 2005/06/02 18:30:17 wiz Exp $
#
DISTNAME= pinfo-0.6.1
@@ -28,9 +28,13 @@ post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/pinfo
${INSTALL_DATA} ${WRKSRC}/src/pinforc ${PREFIX}/share/examples/pinfo
-.include "../../mk/bsd.prefs.mk"
+PKG_OPTIONS_VAR= PKG_OPTIONS.pinfo
+PKG_SUPPORTED_OPTIONS= pinfo-native-curses
+PKG_OPTIONS_LEGACY_VARS+= PINFO_USE_NATIVE_CURSES:pinfo-native-curses
-.if defined(PINFO_USE_NATIVE_CURSES) && ${PINFO_USE_NATIVE_CURSES} == "YES"
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mpinfo-native-curses)
CONFIGURE_ARGS+= --with-vcurses
.else
.include "../../devel/ncurses/buildlink3.mk"