From 055b5b0547c525056bac44fb0bcf3d95e7aa3983 Mon Sep 17 00:00:00 2001 From: Ying-Chieh Liao Date: Fri, 20 Sep 2002 13:21:30 +0000 Subject: add ocaml-classes 3.05 Ocaml Object interface for ocaml's standard library modules PR: 42677 Submitted by: michaelgrunewald@yahoo.fr --- devel/ocaml-classes/files/patch-Makefile | 33 ++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 devel/ocaml-classes/files/patch-Makefile (limited to 'devel/ocaml-classes/files/patch-Makefile') diff --git a/devel/ocaml-classes/files/patch-Makefile b/devel/ocaml-classes/files/patch-Makefile new file mode 100644 index 000000000000..677e1b22db4a --- /dev/null +++ b/devel/ocaml-classes/files/patch-Makefile @@ -0,0 +1,33 @@ +--- Makefile.orig Thu Apr 18 20:39:26 2002 ++++ Makefile Fri Sep 20 21:16:25 2002 +@@ -1,10 +1,11 @@ + #Adjust this directory for installation +-LIBDIR=`ocamlc -where` ++LIBDIR=$(PREFIX)/lib/ocaml/site-lib/classes + COMPILER=ocamlc -c + LIBRARIAN=ocamlc -a + OPTCOMP=ocamlopt -c + OPTLIB=ocamlopt -a +-INSTALL=cp ++INSTALL=install -o root -g wheel -m 644 ++INSTALLDIR=install -d -o root -g wheel -m 755 + + OBJECTS=obuffer.cmo ohashtbl.cmo oqueue.cmo ostack.cmo \ + omap.cmo oset.cmo ostream.cmo omapping.cmo +@@ -43,12 +44,15 @@ + @$(MAKE) real-install LIBDIR=$(LIBDIR) + + real-install: ++ $(INSTALLDIR) $(LIBDIR) + $(INSTALL) stdclass.cma *.cmi *.mli $(LIBDIR) + if test -f stdclass.cmxa; \ + then $(INSTALL) stdclass.cmxa stdclass.a *.cmx $(LIBDIR); fi ++ if test -f META; \ ++ then $(INSTALL) META $(LIBDIR); fi + + clean: +- rm -f *.cm* *.o *.a *~ #* ++ rm -f *.cm* *.o *.a *~ + + depend: + ocamldep *.ml *.mli > .depend -- cgit v1.2.3