aboutsummaryrefslogtreecommitdiffstats
path: root/misc
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2011-10-18 21:06:33 +0800
committerehaupt <ehaupt@FreeBSD.org>2011-10-18 21:06:33 +0800
commite769e72dd706e1bdb6ec1f933c54c4662000d7d0 (patch)
treea4d790229689f5c9bd18bcdae702724f75eea7ae /misc
parentb29b360060974c05e120e7b984e9740c8e4d936b (diff)
downloadfreebsd-ports-graphics-e769e72dd706e1bdb6ec1f933c54c4662000d7d0.tar.gz
freebsd-ports-graphics-e769e72dd706e1bdb6ec1f933c54c4662000d7d0.tar.zst
freebsd-ports-graphics-e769e72dd706e1bdb6ec1f933c54c4662000d7d0.zip
- Support USE_TK
PR: 161635 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'misc')
-rw-r--r--misc/tkman/Makefile11
-rw-r--r--misc/tkman/files/patch-ab22
2 files changed, 17 insertions, 16 deletions
diff --git a/misc/tkman/Makefile b/misc/tkman/Makefile
index 262bc5f0923..6fb53f9755e 100644
--- a/misc/tkman/Makefile
+++ b/misc/tkman/Makefile
@@ -14,12 +14,13 @@ MASTER_SITES= SF
MAINTAINER= ports@FreeBSD.org
COMMENT= A Tcl/Tk based manual browser
-LIB_DEPENDS= tk84.1:${PORTSDIR}/x11-toolkits/tk84
-RUN_DEPENDS= rman:${PORTSDIR}/textproc/rman \
- glimpse:${PORTSDIR}/textproc/glimpse
+RUN_DEPENDS= glimpse:${PORTSDIR}/textproc/glimpse \
+ rman:${PORTSDIR}/textproc/rman
+USE_TK= yes
USE_GMAKE= yes
-MAKE_ARGS= WISH="${PREFIX}/bin/wish8.4" \
+USE_DOS2UNIX= yes
+MAKE_ARGS= WISH="${WISH}" \
texinfodir="${PREFIX}/${INFO_PATH}" \
gzgrep="\"/usr/bin/zgrep -E\"" \
mastermen="\"/usr/share/man ${PREFIX}/man ${LOCALBASE}/man\"" \
@@ -28,7 +29,7 @@ MAKE_ARGS= WISH="${PREFIX}/bin/wish8.4" \
manprint="{groff -mandoc -Tps -te -l}"
post-patch:
- @${REINPLACE_CMD} -e "s;/usr/local/bin/wish;${PREFIX}/bin/wish8.4;" \
+ @${REINPLACE_CMD} -e 's|/usr/local/bin/wish|${WISH}|' \
${WRKSRC}/contrib/tkmanclient
do-install:
diff --git a/misc/tkman/files/patch-ab b/misc/tkman/files/patch-ab
index 1e88eee37ee..9595c9ccc42 100644
--- a/misc/tkman/files/patch-ab
+++ b/misc/tkman/files/patch-ab
@@ -1,14 +1,14 @@
--- tkmandesc.tcl.orig Wed Apr 2 01:31:38 2003
+++ tkmandesc.tcl Sun Oct 19 11:09:54 2003
@@ -224,8 +224,9 @@
- set mani(manTitleList) $man(manTitleList)
-
- if {![info exists env(MANPATH)] || [string trim $env(MANPATH)] eq ""} {
-- puts stderr "You must set a MANPATH environment variable,\nwhich is a colon-separated list of directories in which\nto find man pages, for example /usr/man:/usr/share/man.\n(See the help page for an explanation of why\nalternatives to the MANPATH are a bad thing.)"
-- exit 1
-+# puts stderr "You must set a MANPATH environment variable,\nwhich is a colon-separated list of directories in which\nto find man pages, for example /usr/man:/usr/share/man.\n(See the help page for an explanation of why\nalternatives to the MANPATH are a bad thing.)"
-+# exit 1
-+ set env(MANPATH) [join $manx(mastermen) ":"]
- }
- set manx(MANPATH0) $env(MANPATH)
-
+ set mani(manTitleList) $man(manTitleList)
+
+ if {![info exists env(MANPATH)] || [string trim $env(MANPATH)] eq ""} {
+- puts stderr "You must set a MANPATH environment variable,\nwhich is a colon-separated list of directories in which\nto find man pages, for example /usr/man:/usr/share/man.\n(See the help page for an explanation of why\nalternatives to the MANPATH are a bad thing.)"
+- exit 1
++# puts stderr "You must set a MANPATH environment variable,\nwhich is a colon-separated list of directories in which\nto find man pages, for example /usr/man:/usr/share/man.\n(See the help page for an explanation of why\nalternatives to the MANPATH are a bad thing.)"
++# exit 1
++ set env(MANPATH) [join $manx(mastermen) ":"]
+ }
+ set manx(MANPATH0) $env(MANPATH)
+