Commits

camlspotter committed d951116 Draft

ocamlfind port

  • Participants
  • Parent commits cf7f67c
  • Branches original

Comments (0)

Files changed (5)

File camljava-0.3/README.Changes

+This camljava-0.3 is based on 
+
+- the original camljava-0.3 by Xavier Leroy,
+- with patches foudn at http://upsilon.cc/~zack/blog/posts/2009/12/camljava_for_recent_JVMs/ (also available Ubuntu source package of camljava-0.3)
+
+with the following modifications by jun.furuse@gmail.com:
+
+- Small modifications for ocamlfind installation
+- Makefile directory tweak for my own environment

File ojacare/Makefile.config

 # Adjust to where you want to install O'Jacare
 PREFIX = /usr/local
 BINDIR = $(PREFIX)/bin
-# switches for camljava is supplied by ocamlfind
-LIBDIR = $(CAMLJAVADIR)
+LIBDIR = $(shell ocamlfind printconf destdir)/ojacare

File ojacare/README.Changes

+This O'Jacare is based on the original version found at http://www.pps.univ-paris-diderot.fr/~henry/ojacare/index.en.html,
+
+with the following modifications by jun.furuse@gmail.com:
+
+- Port to the new CamlP4 (>= 3.10)
+- Use of ocamlfind to compile with camljava

File ojacare/src/jnihelpers/META

+name="ojacare"
+version="20051116"
+description="An object-oriented interface between O'Caml and Java"
+requires="camljava"
+archive(byte)="jnihelpers.cma"
+archive(native)="jnihelpers.cmxa"
+linkopts = ""

File ojacare/src/jnihelpers/Makefile

 	$(OCAMLOPT) -a -o $(LIB).cmxa $(CMX_OBJS)
 
 install:
-	test -d $(LIBDIR) || mkdir $(LIBDIR)
-	cp jnihelpers.cma jnihelpers.cmxa jnihelpers.a $(LIBDIR)
-	cp jniArray.cmi jniHierarchy.cmi $(LIBDIR)
-	cp jniHierarchy.mli $(LIBDIR)
-	ranlib $(LIBDIR)/jnihelpers.a
+	ocamlfind install ojacare META jnihelpers.cma jnihelpers.cmxa jnihelpers.a jniArray.cmi jniHierarchy.cmi jniHierarchy.mli
 
 # R�gles g�n�rales
 .SUFFIXES: .ml .mli .cmo .cmi .cmx