diff options
author | Pietro Cerutti <gahr@FreeBSD.org> | 2013-10-23 13:15:46 +0000 |
---|---|---|
committer | Pietro Cerutti <gahr@FreeBSD.org> | 2013-10-23 13:15:46 +0000 |
commit | d689316961edf52be4738f29d63745bf5c7af4d1 (patch) | |
tree | bea98411afc8721ad815d2cb6369b5f6369e9961 /comms/tkhylafax | |
parent | 21646392b027298c4aca08ad5386649a6869ccea (diff) |
Notes
Diffstat (limited to 'comms/tkhylafax')
-rw-r--r-- | comms/tkhylafax/Makefile | 5 | ||||
-rw-r--r-- | comms/tkhylafax/files/patch-aa | 23 | ||||
-rw-r--r-- | comms/tkhylafax/pkg-plist | 1 |
3 files changed, 19 insertions, 10 deletions
diff --git a/comms/tkhylafax/Makefile b/comms/tkhylafax/Makefile index 5808c17d6faf..83066cceb90e 100644 --- a/comms/tkhylafax/Makefile +++ b/comms/tkhylafax/Makefile @@ -15,10 +15,9 @@ RUN_DEPENDS= sendfax:${PORTSDIR}/comms/hylafax \ gv:${PORTSDIR}/print/gv USE_GHOSTSCRIPT_RUN= yes -USE_TK_RUN= 84 +USES+= tk:run WRKSRC= ${WRKDIR}/tkhylafax -MAN1= tkhylafax.1 +MAKE_ARGS= STAGEDIR=${STAGEDIR} PREFIX=${STAGEDIR}${PREFIX} TCLSH=${TCLSH} WISH=${WISH} -NO_STAGE= yes .include <bsd.port.mk> diff --git a/comms/tkhylafax/files/patch-aa b/comms/tkhylafax/files/patch-aa index 86ff08289658..2df95abc8771 100644 --- a/comms/tkhylafax/files/patch-aa +++ b/comms/tkhylafax/files/patch-aa @@ -1,11 +1,11 @@ ---- Makefile.orig Sat Mar 14 11:57:48 1998 -+++ Makefile Mon Apr 21 02:56:19 2003 +--- Makefile.orig 1998-03-14 20:57:48.000000000 +0100 ++++ Makefile 2013-10-23 15:12:54.000000000 +0200 @@ -5,7 +5,7 @@ ### EDIT THE NEXT LINES ONLY ### -PREFIX = /usr/local -+#PREFIX = ${PREFIX} ++#PREFIX = /usr/local # The directory where the tkhylafax library will be installed TCLLIB_DEST = $(PREFIX)/lib/tkhylafax-3.2 @@ -14,11 +14,11 @@ # The full path to tclsh -TCLSH = /usr/bin/tclsh -+TCLSH = tclsh8.4 ++#TCLSH = /usr/bin/tclsh # The full path to wish. -WISH = /usr/bin/wish -+WISH = wish8.4 ++#WISH = /usr/bin/wish # The full path to your postscript viewer -GHOSTVIEW = /usr/X11/bin/gv @@ -26,7 +26,7 @@ ### DON'T EDIT ANYTHING BELOW THIS LINE ### -@@ -52,7 +52,6 @@ +@@ -52,11 +52,10 @@ all: $(MAKE) build @@ -34,7 +34,12 @@ build: Makefile @echo "Patching tkhylafax..." -@@ -66,24 +65,24 @@ +- sed -e 's|XXX_TKHYLAFAX_XXX|$(TCLLIB_DEST)|g' \ ++ sed -e 's|XXX_TKHYLAFAX_XXX|$(TCLLIB_DEST:S/${STAGEDIR}//)|g' \ + -e 's|XXX_WISH_XXX|$(WISH)|g' \ + -e 's|XXX_GHOSTVIEW_XXX|$(GHOSTVIEW)|g' \ + tkhylafax.unpatched > $(TCLPRG_FILE) +@@ -66,27 +65,28 @@ $(TCLLIB_DEST): if [ ! -d $(TCLLIB_DEST) ]; then mkdir -p $(TCLLIB_DEST); fi @@ -63,3 +68,7 @@ @echo "Done" install.man: ++ if [ ! -d $(TCLMAN_DEST) ]; then mkdir -p $(TCLMAN_DEST); fi + cp $(TCLMAN_FILE).man $(TCLMAN_DEST)/$(TCLMAN_FILE).1 + + clean: diff --git a/comms/tkhylafax/pkg-plist b/comms/tkhylafax/pkg-plist index a72bfa721302..93900c00572e 100644 --- a/comms/tkhylafax/pkg-plist +++ b/comms/tkhylafax/pkg-plist @@ -18,4 +18,5 @@ lib/tkhylafax-3.2/tclIndex lib/tkhylafax-3.2/tkhylafax.xbm lib/tkhylafax-3.2/dn.xbm lib/tkhylafax-3.2/up.xbm +man/man1/tkhylafax.1.gz @dirrm lib/tkhylafax-3.2 |