summaryrefslogtreecommitdiff
path: root/graphics/gocr
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-04-12 22:42:57 +0000
committerjlam <jlam@pkgsrc.org>2008-04-12 22:42:57 +0000
commit841dfa0e7aaa6a0f0cce2901291d1d938dd0fc0a (patch)
treefdd67c81079412bf94013749a954125434a9baca /graphics/gocr
parent6874584eae20f517f70816571f6d4ac696db16b3 (diff)
downloadpkgsrc-841dfa0e7aaa6a0f0cce2901291d1d938dd0fc0a.tar.gz
Convert to use PLIST_VARS instead of manually passing "@comment "
through PLIST_SUBST to the plist module.
Diffstat (limited to 'graphics/gocr')
-rw-r--r--graphics/gocr/PLIST4
-rw-r--r--graphics/gocr/options.mk8
2 files changed, 6 insertions, 6 deletions
diff --git a/graphics/gocr/PLIST b/graphics/gocr/PLIST
index acd9825bc68..a9c03c56408 100644
--- a/graphics/gocr/PLIST
+++ b/graphics/gocr/PLIST
@@ -1,6 +1,6 @@
-@comment $NetBSD: PLIST,v 1.2 2005/10/25 02:06:57 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2008/04/12 22:43:01 jlam Exp $
bin/gocr
-${TK}bin/gocr.tcl
+${PLIST.tk}bin/gocr.tcl
include/gocr.h
lib/libPgm2asc.a
man/man1/gocr.1
diff --git a/graphics/gocr/options.mk b/graphics/gocr/options.mk
index 71fb9929446..103feb959f6 100644
--- a/graphics/gocr/options.mk
+++ b/graphics/gocr/options.mk
@@ -1,16 +1,16 @@
-# $NetBSD: options.mk,v 1.1 2005/10/25 02:06:57 wiz Exp $
+# $NetBSD: options.mk,v 1.2 2008/04/12 22:43:01 jlam Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.gocr
PKG_SUPPORTED_OPTIONS= tk
.include "../../mk/bsd.options.mk"
+PLIST_VARS+= tk
+
.if !empty(PKG_OPTIONS:Mtk)
DEPENDS+= tk>=8.4:../../x11/tk
-PLIST_SUBST+= TK=""
+PLIST.tk= yes
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/bin/gocr.tcl ${PREFIX}/bin
-.else
-PLIST_SUBST+= TK="@comment "
.endif