freebsd-ports/lang/itcl4/files/patch-Makefile.in
Pietro Cerutti 782b56aef8 - New port: lang/itcl4
This port provides the 4.x series of [incr Tcl], an object-oriented extension
  to Tcl. While the 3.x series provided by lang/itcl works with Tcl 8.5, the
  4.x series is targetted at Tcl 8.6.

  http://core.tcl.tk/itcl
2014-08-29 14:32:18 +00:00

27 lines
1 KiB
Text

--- Makefile.in.orig 2014-08-02 18:11:59.564717000 +0200
+++ Makefile.in 2014-08-29 16:09:56.000000000 +0200
@@ -93,7 +93,7 @@
INSTALL_PROGRAM = ${INSTALL} -m 755
INSTALL_DATA = ${INSTALL} -m 644
INSTALL_SCRIPT = ${INSTALL_PROGRAM}
-INSTALL_LIBRARY = ${INSTALL_DATA}
+INSTALL_LIBRARY = ${INSTALL_DATA} -s
PACKAGE_NAME = @PACKAGE_NAME@
PACKAGE_VERSION = @PACKAGE_VERSION@
@@ -222,11 +222,12 @@
@$(INSTALL_DATA_DIR) $(DESTDIR)$(mandir)/mann
@echo "Installing documentation in $(DESTDIR)$(mandir)"
@cd $(srcdir)/doc; for i in *.n; do \
+ sfxname=`basename $$i | sed -e 's|.n$$|.i4|'`; \
echo "Installing $$i"; \
- rm -f $(DESTDIR)$(mandir)/mann/`basename $$i`; \
+ rm -f $(DESTDIR)$(mandir)/mann/$$sfxname; \
sed -e '/man\.macros/r man.macros' -e '/man\.macros/d' \
- $$i > $(DESTDIR)$(mandir)/mann/$$i; \
- chmod 444 $(DESTDIR)$(mandir)/mann/$$i; \
+ $$i > $(DESTDIR)$(mandir)/mann/$$sfxname; \
+ chmod 444 $(DESTDIR)$(mandir)/mann/$$sfxname; \
done
test: binaries libraries