1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00
This commit is contained in:
Vanilla I. Shu 2014-07-10 15:21:55 +00:00
parent 3aadbea79a
commit 15e98bb3c2
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=361463
2 changed files with 15 additions and 7 deletions

View File

@ -15,7 +15,6 @@ USE_OCAML= yes
USE_JAVA= yes
JAVA_VERSION= 1.6+
NO_STAGE= yes
.include <bsd.port.pre.mk>
post-extract:
@ -32,12 +31,6 @@ post-extract:
-e "/^install/,/^$$/s,\([ \t]*\)cp,\1${INSTALL_DATA},g" \
${WRKSRC}/lib/Makefile
pre-install:
.if !exists(${PREFIX}/lib/ocaml)
${MKDIR} ${PREFIX}/lib/ocaml
@${ECHO_CMD} "@dirrm lib/ocaml" >> ${TMPPLIST}
.endif
test:
@${ECHO_CMD} "Testing IDL library"
cd ${WRKSRC}/test && ${SETENV} ${MAKE_ENV} ${MAKE} all

View File

@ -0,0 +1,15 @@
--- lib/Makefile.orig 2014-07-10 23:17:16.801237680 +0800
+++ lib/Makefile 2014-07-10 23:17:43.641231560 +0800
@@ -9,9 +9,9 @@ CAMLJAVALIB=$(OCAMLLIB)/camljava
all: jni.cma jni.cmxa javaclasses
install:
- mkdir -p $(CAMLJAVALIB)
- install -o root -g wheel -m 444 jni.cma jni.cmi jni.cmxa jni.a libcamljni.a jni.mli $(CAMLJAVALIB)
- jar cf $(CAMLJAVALIB)/camljava.jar fr/inria/caml/camljava/*.class
+ mkdir -p $(DESTDIR)$(CAMLJAVALIB)
+ install -o root -g wheel -m 444 jni.cma jni.cmi jni.cmxa jni.a libcamljni.a jni.mli $(DESTDIR)$(CAMLJAVALIB)
+ jar cf $(DESTDIR)$(CAMLJAVALIB)/camljava.jar fr/inria/caml/camljava/*.class
jni.cma: jni.cmo libcamljni.a
$(OCAMLC) -linkall -a -o jni.cma -custom jni.cmo \