1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-15 23:50:44 +00:00
freebsd-ports/math/plplot/files/patch-ab
R. Imura 5f76ca8d6b - Support CC/CFLAGS/CXXFLAGS properly
- Support install macros
- perl -> ${PERL}
- Move install path of data files from lib/ to libdata/
- Add WWW: line into pkg/DESCR
- Fix pkg/PLIST

PR:		15918
Submitted by:	KATO Tsuguru <tkato@prontomail.ne.jp>
2000-01-14 17:35:24 +00:00

59 lines
2.6 KiB
Plaintext

--- cf/install.in.orig Wed Jun 7 03:13:09 1995
+++ cf/install.in Wed Jan 5 02:26:56 2000
@@ -31,19 +31,18 @@
-if test ! -d $(DOC_DIR); then mkdir -p $(DOC_DIR); fi
-if test ! -d $(BIN_DIR); then mkdir -p $(BIN_DIR); fi
-if test ! -d $(INFO_DIR); then mkdir -p $(INFO_DIR); fi
- -cd $(top_srcdir)/lib; cp *.fnt *.map $(LIB_DIR)
- -cp $(PLLIB_BASE)* $(LIB_DIR); \
- for file in $(PLLIB_BASE)*; do $(RANLIB) $(LIB_DIR)/$$file; done
+ -if test ! -d $(DATA_DIR); then mkdir -p $(DATA_DIR); fi
+ -cd $(top_srcdir)/lib; ${BSD_INSTALL_DATA} *.fnt *.map $(DATA_DIR)
+ ${BSD_INSTALL_DATA} $(PLLIB_BASE)* $(LIB_DIR); \
+ for file in $(PLLIB_BASE)*.a; do $(RANLIB) $(LIB_DIR)/$$file; done
-cd $(top_srcdir); \
- cp README NEWS CHANGES Copyright COPYING.LIB FAQ ToDo \
- mklinks $(DOC_DIR)
+ ${BSD_INSTALL_DATA} README NEWS CHANGES FAQ ToDo mklinks $(DOC_DIR)
-if test ! -f $(DOC_DIR)/README.local; then \
- cp $(top_srcdir)/doc/README.local $(DOC_DIR); fi
- -cp $(top_srcdir)/doc/*.info $(INFO_DIR)
- -cd $(top_srcdir)/scripts; cp pl* $(BIN_DIR)
+ ${BSD_INSTALL_DATA} $(top_srcdir)/doc/README.local $(DOC_DIR); fi
+ -cd $(top_srcdir)/scripts; ${BSD_INSTALL_SCRIPT} pl* $(BIN_DIR)
-cd $(top_srcdir)/include; \
- cp plplotP.h plplot.h plxwd.h plevent.h plstrm.h pdf.h \
- $(INCLUDE_DIR)
+ ${BSD_INSTALL_DATA} plplotP.h plplot.h plxwd.h plevent.h plstrm.h \
+ pdf.h $(INCLUDE_DIR)
install_demos:
-if test ! -d $(DEMOS_DIR); then mkdir -p $(DEMOS_DIR); fi
@@ -56,11 +55,11 @@
-$(LN) $(DEMOS_DIR)/Makefile $(DEMOS_DIR)/c
-$(LN) $(DEMOS_DIR)/Makefile $(DEMOS_DIR)/f77
-$(LN) $(DEMOS_DIR)/Makefile $(DEMOS_DIR)/tk
- -cd $(top_srcdir)/examples/c; cp * $(DEMOS_DIR)/c
- -cd $(top_srcdir)/examples/f77; cp * $(DEMOS_DIR)/f77
- -cd $(top_srcdir)/examples/python; cp * $(DEMOS_DIR)/python
- -cd $(top_srcdir)/examples/tcl; cp * $(DEMOS_DIR)/tcl
- -cd $(top_srcdir)/examples/tk; cp * $(DEMOS_DIR)/tk
+ -cd $(top_srcdir)/examples/c; ${BSD_INSTALL_DATA} * $(DEMOS_DIR)/c
+ -cd $(top_srcdir)/examples/f77; ${BSD_INSTALL_DATA} * $(DEMOS_DIR)/f77
+ -cd $(top_srcdir)/examples/python; ${BSD_INSTALL_DATA} * $(DEMOS_DIR)/python
+ -cd $(top_srcdir)/examples/tcl; ${BSD_INSTALL_DATA} * $(DEMOS_DIR)/tcl
+ -cd $(top_srcdir)/examples/tk; ${BSD_INSTALL_DATA} * $(DEMOS_DIR)/tk
-$(LN) $(DEMOS_DIR)/tcl/x??.tcl $(DEMOS_DIR)/tk
install_utils:
@@ -72,8 +71,7 @@
$(LDC) $(LDC_FLAGS) pltek$O $(LIB_INSTALL) \
-o pltek$E; \
fi
- -strip plrender$E pltek$E
- -cp plrender$E pltek$E $(BIN_DIR)
+ ${BSD_INSTALL_PROGRAM} plrender$E pltek$E $(BIN_DIR)
# Remember, this is bogus...
# $(LDC) $(LDC_FLAGS) pltek$O $(LIB_INSTALL) \