aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvs <vs@FreeBSD.org>2005-04-21 20:02:17 +0800
committervs <vs@FreeBSD.org>2005-04-21 20:02:17 +0800
commitd0ff3a2f26ba56da6df17f8a539bf47cb75c2623 (patch)
tree56306be8758a3a52df37b80691ae1c3ad5e96c1d
parent05d904dcb0e22f8041f2656d78b2f80a74d8b24d (diff)
downloadfreebsd-ports-gnome-d0ff3a2f26ba56da6df17f8a539bf47cb75c2623.tar.gz
freebsd-ports-gnome-d0ff3a2f26ba56da6df17f8a539bf47cb75c2623.tar.zst
freebsd-ports-gnome-d0ff3a2f26ba56da6df17f8a539bf47cb75c2623.zip
Use MAKE_ARGS
-rw-r--r--misc/tkman/Makefile12
-rw-r--r--misc/tkman/files/patch-aa103
-rw-r--r--misc/xd/Makefile3
-rw-r--r--misc/xd/files/patch-aa19
4 files changed, 15 insertions, 122 deletions
diff --git a/misc/tkman/Makefile b/misc/tkman/Makefile
index 8941ef9d451a..b3128d396be7 100644
--- a/misc/tkman/Makefile
+++ b/misc/tkman/Makefile
@@ -20,12 +20,24 @@ RUN_DEPENDS= rman:${PORTSDIR}/textproc/rman \
glimpse:${PORTSDIR}/textproc/glimpse
USE_GMAKE= yes
+MAKE_ARGS= WISH="${PREFIX}/bin/wish8.4" \
+ texinfodir="${PREFIX}/info" \
+ gzgrep="\"/usr/bin/zgrep -E\"" \
+ mastermen="\"/usr/share/man ${PREFIX}/man ${X11BASE}/man\"" \
+ masterbin="\"/usr/bin ${PREFIX}/bin ${X11BASE}/bin\"" \
+ manformat="{groff -Tlatin1 -te -mandoc}" \
+ manprint="{groff -mandoc -Tps -te -l}"
+
USE_REINPLACE= yes
post-patch:
@${REINPLACE_CMD} -e "s;/usr/local/bin/wish;${PREFIX}/bin/wish8.4;" \
${WRKSRC}/contrib/tkmanclient
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/tkman ${PREFIX}/bin
+ ${INSTALL_SCRIPT} ${WRKSRC}/retkman ${PREFIX}/bin
+
post-install:
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
diff --git a/misc/tkman/files/patch-aa b/misc/tkman/files/patch-aa
deleted file mode 100644
index 3a6b92cdf5cc..000000000000
--- a/misc/tkman/files/patch-aa
+++ /dev/null
@@ -1,103 +0,0 @@
---- Makefile.orig Wed Apr 2 01:31:38 2003
-+++ Makefile Sun Oct 19 11:05:53 2003
-@@ -25,14 +25,16 @@
-
- ### you need to localize the paths on these lines
-
--WISH = /usr/local/bin/wish8.4
-+#WISH = /usr/local/bin/wish8.4
- #WISH = /usr/sww/tcl-8.4/bin/wish
- #WISH = /private/share/bin/wish8.4
-+WISH = ${PREFIX}/bin/wish8.4
-
- # the executable `tkman' is placed in BINDIR
- # this should be a directory that's in your bin PATH
--BINDIR = /usr/local/bin
-+#BINDIR = /usr/local/bin
- #BINDIR = /private/share/bin
-+BINDIR = ${PREFIX}/bin
-
-
- # OPTIONAL FEATURES
-@@ -42,13 +44,14 @@
- # This directory should not have any Texinfo source itself.
- # More information is given in manual.html
- # if you don't have Texinfo files, leave this variable empty
--texinfodir = ""
-+#texinfodir = ""
- #texinfodir = /home/orodruin/h/bair/phelps/spine/tkman/info
- #texinfodir = /usr/local/info
-+texinfodir = ${PREFIX}/info
- # In order to search within Texinfo files you need a grep, such as GNU grep 2.1,
- # that can report byte offsets (with the -b switch). This needs to be
- # gzgrep if you'll be searching in compressed Texinfo source.
--gzgrep = ""
-+#gzgrep = ""
- #gzgrep = "gzgrep -E"
- #gzgrep = "gzgrep -Ew"
- # Linux calls it zgrep
-@@ -57,6 +60,7 @@
- #gzgrep = grep
- # if you don't compress your Texinfo source, this is fine
- #gzgrep = grep
-+gzgrep = "/usr/bin/zgrep -E"
-
- # OPTIONAL
- # directory root of hierarchy of RFC files, with "rfc-index.txt" at the root
-@@ -80,10 +84,12 @@
- # will examine for matches if a search in the usual locations fails while searching
- # for a man pages and displaying its associated binaries (if any).
- # Use this feature carefully as a large number of directories can slow down startup.
--mastermen = "/usr/man /usr/local/man"
-+#mastermen = "/usr/man /usr/local/man"
- #mastermen = "/usr/man /usr/local/man /usr/sww/man /usr/share/man /usr/kerberos/man"
--masterbin = "/usr/bin /usr/local/bin"
-+mastermen = "/usr/share/man ${PREFIX}/man ${X11BASE}/man"
-+#masterbin = "/usr/bin /usr/local/bin"
- #masterbin = "/usr/bin /usr/local/bin /usr/sww/bin /usr/sww/share/bin /usr/sww/share/X11R5/bin"
-+masterbin = "/usr/bin ${PREFIX}/bin ${X11BASE}/bin"
-
-
- # names of common printers, in addition to default printer (PRINTER or LPDEST)
-@@ -113,7 +119,7 @@
- # Lines are cached in .../man/cat<n>@<line-length>;
- # that is, the line length is appended to the usual cache directory names
- #manformat = {groff -te -Tascii -man /tmp/ll -}
--manformat = {groff -te -Tlatin1 -man /tmp/ll -}
-+#manformat = {groff -te -Tlatin1 -man /tmp/ll -}
- # Ultrix users should uncomment the following line (you don't have eqn)
- #manformat = {tbl | nroff -man }
- # HP-UX uses a number of macros that groff doesn't define, so use the builtin nroff
-@@ -122,6 +128,7 @@
- #manformat = {tbl | neqn | nroff -man }
- # BSD macros (.Sh, .Ss, .PP, ...) need -mandoc
- #manformat = {groff -Tascii -te -mandoc}
-+manformat = {groff -Tlatin1 -te -mandoc}
- # BSDI
- #manformat = {tbl | eqn -Tascii | nroff -man }
- # It's actually legal to leave this empty if all the pages you'll ever
-@@ -166,13 +173,14 @@
-
- # pick a printing pipeline for which your platform has all the constituants
- #manprint = {groff -man -Tps -te -l}
-+manprint = {groff -mandoc -Tps -te -l}
- # alternatives
- #manprint = {groff -man -Tps -te -l | psnup -n2}
- #manprint = {tbl | eqn | troff -man -t | lpr -t}
- #manprint = {tbl | eqn | psroff -man}
- #manprint = {tbl | eqn | gtroff -Tpsc | psdit | lpr}
- # use an empty pipeline if you're environmentally conscious or have no printer
--manprint = ""
-+#manprint = ""
- # printing string for preformatted pages without [tn]roff source
- #catprint = lpr
- #catprint = "lpr -h"
-@@ -460,7 +468,7 @@
- chmod +rx $(BINDIR)/tkman
- $(CP) retkman $(BINDIR)
- chmod +rx $(BINDIR)/retkman
-- @echo 'You also need RosettaMan to run TkMan.'
-+# @echo 'You also need RosettaMan to run TkMan.'
-
- test: dox tkman
- cp tkman $(BINDIR)
diff --git a/misc/xd/Makefile b/misc/xd/Makefile
index c312902a8ded..24e429334bf6 100644
--- a/misc/xd/Makefile
+++ b/misc/xd/Makefile
@@ -14,6 +14,9 @@ DISTNAME= xd-8087
MAINTAINER= ports@FreeBSD.org
COMMENT= Yet another dump utility
+MAKE_ARGS= CC="${CC}" BINDIR="${PREFIX}/bin" \
+ MANDIR="${MAN1PREFIX}/man/man"
+
MAN1= xd.1
MANCOMPRESSED= maybe
PLIST_FILES= bin/xd
diff --git a/misc/xd/files/patch-aa b/misc/xd/files/patch-aa
deleted file mode 100644
index 7ef9ffc0060b..000000000000
--- a/misc/xd/files/patch-aa
+++ /dev/null
@@ -1,19 +0,0 @@
-*** Makefile~ Tue Aug 27 02:02:31 1996
---- Makefile Wed Oct 1 20:23:19 1997
-***************
-*** 1,7 ****
- #
- CC=gcc
-! BINDIR=/usr/local/bin
-! MANDIR=/usr/local/man/man
- PROG=xd
-
- .include <bsd.prog.mk>
---- 1,7 ----
- #
- CC=gcc
-! BINDIR=${PREFIX}/bin
-! MANDIR=${PREFIX}/man/man
- PROG=xd
-
- .include <bsd.prog.mk>