summaryrefslogtreecommitdiff
path: root/misc/pinfo
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
commita108b3737e7885a15fb261912ff2c38fe6435eb0 (patch)
treebda5dd281f77ad4b279ffe393faeb64a3973d373 /misc/pinfo
parentb95a5e2f28fc1949e462c446c099574b2271537a (diff)
downloadpkgsrc-a108b3737e7885a15fb261912ff2c38fe6435eb0.tar.gz
Convert to options framework.
Diffstat (limited to 'misc/pinfo')
-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"