diff options
Diffstat (limited to 'comms/tkhylafax/files/patch-Makefile')
-rw-r--r-- | comms/tkhylafax/files/patch-Makefile | 74 |
1 files changed, 74 insertions, 0 deletions
diff --git a/comms/tkhylafax/files/patch-Makefile b/comms/tkhylafax/files/patch-Makefile new file mode 100644 index 000000000000..2df95abc8771 --- /dev/null +++ b/comms/tkhylafax/files/patch-Makefile @@ -0,0 +1,74 @@ +--- 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 = /usr/local + + # The directory where the tkhylafax library will be installed + TCLLIB_DEST = $(PREFIX)/lib/tkhylafax-3.2 +@@ -17,13 +17,13 @@ + TCLMAN_DEST = $(PREFIX)/man/man1 + + # The full path to tclsh +-TCLSH = /usr/bin/tclsh ++#TCLSH = /usr/bin/tclsh + + # The full path to wish. +-WISH = /usr/bin/wish ++#WISH = /usr/bin/wish + + # The full path to your postscript viewer +-GHOSTVIEW = /usr/X11/bin/gv ++GHOSTVIEW = ${LOCALBASE}/bin/gv + + ### DON'T EDIT ANYTHING BELOW THIS LINE ### + +@@ -52,11 +52,10 @@ + + all: + $(MAKE) build +- $(MAKE) install + + build: Makefile + @echo "Patching tkhylafax..." +- 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 +- chmod 775 $(TCLLIB_DEST) ++ chmod 755 $(TCLLIB_DEST) + + install.lib: $(TCLLIB_DEST) + @echo "Installing tkhylafax library..." + -for i in $(TCLLIB_FILES) ; do \ + cp $$i $(TCLLIB_DEST)/$$i ; \ +- chmod 664 $(TCLLIB_DEST)/$$i ; \ ++ chmod 644 $(TCLLIB_DEST)/$$i ; \ + done + @echo "Done" + + $(TCLPRG_DEST): + if [ ! -d $(TCLPRG_DEST) ]; then mkdir -p $(TCLPRG_DEST); fi +- chmod 775 $(TCLPRG_DEST) ++ chmod 755 $(TCLPRG_DEST) + + install.tkhylafax: $(TCLPRG_DEST) $(TCLPRG_FILE) + @echo "Installing tkhylafax command..." + cp $(TCLPRG_FILE) $(TCLPRG_DEST)/$(TCLPRG_FILE) +- chmod 775 $(TCLPRG_DEST)/$(TCLPRG_FILE) ++ chmod 755 $(TCLPRG_DEST)/$(TCLPRG_FILE) + @echo "Done" + + install.man: ++ if [ ! -d $(TCLMAN_DEST) ]; then mkdir -p $(TCLMAN_DEST); fi + cp $(TCLMAN_FILE).man $(TCLMAN_DEST)/$(TCLMAN_FILE).1 + + clean: |