diff options
Diffstat (limited to 'lang/ocaml/patches/patch-bt')
-rw-r--r-- | lang/ocaml/patches/patch-bt | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/lang/ocaml/patches/patch-bt b/lang/ocaml/patches/patch-bt new file mode 100644 index 00000000000..a7ad90019cd --- /dev/null +++ b/lang/ocaml/patches/patch-bt @@ -0,0 +1,63 @@ +$NetBSD: patch-bt,v 1.1 2005/02/04 21:35:51 adrianp Exp $ + +--- Makefile.orig 2004-10-15 15:43:57.000000000 +0100 ++++ Makefile 2004-10-15 15:48:30.000000000 +0100 +@@ -232,24 +232,24 @@ + + # Installation + install: FORCE +- if test -d $(BINDIR); then : ; else $(MKDIR) $(BINDIR); fi +- if test -d $(LIBDIR); then : ; else $(MKDIR) $(LIBDIR); fi +- if test -d $(STUBLIBDIR); then : ; else $(MKDIR) $(STUBLIBDIR); fi +- if test -d $(MANDIR)/man$(MANEXT); then : ; else $(MKDIR) $(MANDIR)/man$(MANEXT); fi ++ if test -d $(BINDIR); then : ; else ${BSD_INSTALL_PROGRAM_DIR} $(BINDIR); fi ++ if test -d $(LIBDIR); then : ; else ${BSD_INSTALL_DATA_DIR} $(LIBDIR); fi ++ if test -d $(STUBLIBDIR); then : ; else ${BSD_INSTALL_DATA_DIR} $(STUBLIBDIR); fi ++ if test -d $(MANDIR)/man$(MANEXT); then : ; else ${BSD_INSTALL_MAN_DIR} $(MANDIR)/man$(MANEXT); fi + cd $(LIBDIR); rm -f dllbigarray.so dlllabltk.so dllnums.so \ + dllthreads.so dllunix.so dllgraphics.so dllmldbm.so dllstr.so \ + dlltkanim.so + cd byterun; $(MAKE) install +- cp ocamlc $(BINDIR)/ocamlc$(EXE) +- cp ocaml $(BINDIR)/ocaml$(EXE) ++ ${BSD_INSTALL_SCRIPT} ocamlc $(BINDIR)/ocamlc$(EXE) ++ ${BSD_INSTALL_SCRIPT} ocaml $(BINDIR)/ocaml$(EXE) + cd stdlib; $(MAKE) install +- cp lex/ocamllex $(BINDIR)/ocamllex$(EXE) +- cp yacc/ocamlyacc$(EXE) $(BINDIR)/ocamlyacc$(EXE) +- cp toplevel/toplevellib.cma $(LIBDIR)/toplevellib.cma +- cp expunge $(LIBDIR)/expunge$(EXE) +- cp typing/outcometree.cmi typing/outcometree.mli $(LIBDIR) +- cp toplevel/topstart.cmo $(LIBDIR) +- cp toplevel/toploop.cmi toplevel/topdirs.cmi toplevel/topmain.cmi $(LIBDIR) ++ ${BSD_INSTALL_SCRIPT} lex/ocamllex $(BINDIR)/ocamllex$(EXE) ++ ${BSD_INSTALL_PROGRAM} yacc/ocamlyacc$(EXE) $(BINDIR)/ocamlyacc$(EXE) ++ ${BSD_INSTALL_DATA} toplevel/toplevellib.cma $(LIBDIR)/toplevellib.cma ++ ${BSD_INSTALL_DATA} expunge $(LIBDIR)/expunge$(EXE) ++ ${BSD_INSTALL_DATA} typing/outcometree.cmi typing/outcometree.mli $(LIBDIR) ++ ${BSD_INSTALL_DATA} toplevel/topstart.cmo $(LIBDIR) ++ ${BSD_INSTALL_DATA} toplevel/toploop.cmi toplevel/topdirs.cmi toplevel/topmain.cmi $(LIBDIR) + cd tools; $(MAKE) install + -cd man; $(MAKE) install + for i in $(OTHERLIBRARIES); do \ +@@ -264,16 +264,16 @@ + # Installation of the native-code compiler + installopt: + cd asmrun; $(MAKE) install +- cp ocamlopt $(BINDIR)/ocamlopt$(EXE) ++ ${BSD_INSTALL_SCRIPT} ocamlopt $(BINDIR)/ocamlopt$(EXE) + cd stdlib; $(MAKE) installopt + cd ocamldoc; $(MAKE) installopt + for i in $(OTHERLIBRARIES); do (cd otherlibs/$$i; $(MAKE) installopt) || exit $$?; done + if test -f ocamlc.opt; \ +- then cp ocamlc.opt $(BINDIR)/ocamlc.opt$(EXE); else :; fi ++ then ${BSD_INSTALL_PROGRAM} ocamlc.opt $(BINDIR)/ocamlc.opt$(EXE); else :; fi + if test -f ocamlopt.opt; \ +- then cp ocamlopt.opt $(BINDIR)/ocamlopt.opt$(EXE); else :; fi ++ then ${BSD_INSTALL_PROGRAM} ocamlopt.opt $(BINDIR)/ocamlopt.opt$(EXE); else :; fi + if test -f lex/ocamllex.opt; \ +- then cp lex/ocamllex.opt $(BINDIR)/ocamllex.opt$(EXE); else :; fi ++ then ${BSD_INSTALL_PROGRAM} lex/ocamllex.opt $(BINDIR)/ocamllex.opt$(EXE); else :; fi + + clean:: partialclean + |