aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authortijl <tijl@FreeBSD.org>2014-08-18 02:45:52 +0800
committertijl <tijl@FreeBSD.org>2014-08-18 02:45:52 +0800
commit5adf45d824330ac062e587d0adfbebb29d091737 (patch)
treedcb7cfc4b91a08a519824eeb79e7e6dfd39904f0 /java
parent991b6b5d903b4686bab74940ef2e3cbe23ce5e8c (diff)
downloadfreebsd-ports-gnome-5adf45d824330ac062e587d0adfbebb29d091737.tar.gz
freebsd-ports-gnome-5adf45d824330ac062e587d0adfbebb29d091737.tar.zst
freebsd-ports-gnome-5adf45d824330ac062e587d0adfbebb29d091737.zip
- Add USES=libtool
- Patch configure to fix detection of shared library support
Diffstat (limited to 'java')
-rw-r--r--java/jamvm/Makefile3
-rw-r--r--java/jamvm/files/patch-configure37
-rw-r--r--java/jamvm/pkg-plist5
3 files changed, 36 insertions, 9 deletions
diff --git a/java/jamvm/Makefile b/java/jamvm/Makefile
index 47e2445e9147..013ffb62e3cb 100644
--- a/java/jamvm/Makefile
+++ b/java/jamvm/Makefile
@@ -3,6 +3,7 @@
PORTNAME= jamvm
PORTVERSION= 1.5.4
+PORTREVISION= 1
CATEGORIES= java devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/JamVM%20${PORTVERSION}
@@ -15,7 +16,7 @@ RUN_DEPENDS= ${LOCALBASE}/share/classpath/glibj.zip:${PORTSDIR}/java/classpath
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-classpath-install-dir=${LOCALBASE}
-USES= gmake pkgconfig
+USES= gmake libtool pkgconfig
OPTIONS_DEFINE= FFI ZIP
OPTIONS_DEFAULT=FFI ZIP
diff --git a/java/jamvm/files/patch-configure b/java/jamvm/files/patch-configure
index 6944165c6628..45e93f07d3ce 100644
--- a/java/jamvm/files/patch-configure
+++ b/java/jamvm/files/patch-configure
@@ -1,15 +1,40 @@
--- configure.orig 2009-12-31 13:41:44.000000000 -0500
+++ configure 2012-09-17 12:29:34.000000000 -0400
-@@ -2689,7 +2689,7 @@
+@@ -2683,28 +2683,27 @@
+ i[3456]86-*-darwin*) host_cpu=i386 host_os=darwin ;;
+ arm*-*-darwin*) host_cpu=arm host_os=darwin libdl_needed=no ;;
+ i386-*-openbsd*) host_os=bsd libdl_needed=no ;;
+-i386-*-freebsd*) host_os=bsd libdl_needed=no ;;
++i386-*-freebsd*) os=bsd libdl_needed=no ;;
+ i386-*-solaris*) host_cpu=x86 host_os=solaris ;;
+ x86_64-*-linux*) host_os=linux ;;
hppa*-*-linux*) host_cpu=parisc host_os=linux ;;
mipsel-*-linux*) host_cpu=mips host_os=linux ;;
x86_64-*-openbsd*) host_os=bsd libdl_needed=no ;;
-x86_64-*-freebsd*) host_os=bsd libdl_needed=no ;;
-+amd64-*-freebsd*) host_os=bsd host_cpu=x86_64 libdl_needed=no ;;
++amd64-*-freebsd*) os=bsd host_cpu=x86_64 libdl_needed=no ;;
arm*-*-linux*) host_cpu=arm host_os=linux ;;
arm*-*-openbsd*) host_cpu=arm host_os=bsd libdl_needed=no ;;
- arm*-*-freebsd*) host_cpu=arm host_os=bsd libdl_needed=no ;;
-@@ -21662,8 +21662,15 @@
+-arm*-*-freebsd*) host_cpu=arm host_os=bsd libdl_needed=no ;;
++arm*-*-freebsd*) host_cpu=arm os=bsd libdl_needed=no ;;
+ powerpc*-*-linux*) host_cpu=powerpc host_os=linux ;;
+ powerpc*-*-openbsd*) host_cpu=powerpc host_os=bsd libdl_needed=no ;;
+-powerpc*-*-freebsd*) host_cpu=powerpc host_os=bsd libdl_needed=no ;;
++powerpc*-*-freebsd*) host_cpu=powerpc os=bsd libdl_needed=no ;;
+ powerpc-*-darwin*) host_os=darwin ;;
+-sparc*-*-freebsd*) host_cpu=sparc host_os=bsd libdl_needed=no ;;
++sparc*-*-freebsd*) host_cpu=sparc os=bsd libdl_needed=no ;;
+ *) { { $as_echo "$as_me:$LINENO: error: $host not supported" >&5
+ $as_echo "$as_me: error: $host not supported" >&2;}
+ { (exit 1); exit 1; }; } ;;
+ esac
+
+ arch=$host_cpu
+-os=$host_os
+
+
+
+@@ -21662,8 +21661,15 @@
if test "${ac_cv_lib_ffi_ffi_call+set}" = set; then
$as_echo_n "(cached) " >&6
else
@@ -26,7 +51,7 @@
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
-@@ -21718,6 +21725,8 @@
+@@ -21718,6 +21724,8 @@
rm -rf conftest.dSYM
rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
conftest$ac_exeext conftest.$ac_ext
@@ -35,7 +60,7 @@
LIBS=$ac_check_lib_save_LIBS
fi
{ $as_echo "$as_me:$LINENO: result: $ac_cv_lib_ffi_ffi_call" >&5
-@@ -21726,9 +21735,9 @@
+@@ -21726,9 +21734,9 @@
cat >>confdefs.h <<_ACEOF
#define HAVE_LIBFFI 1
_ACEOF
diff --git a/java/jamvm/pkg-plist b/java/jamvm/pkg-plist
index a2b9885a7d02..5bd4bcb5e100 100644
--- a/java/jamvm/pkg-plist
+++ b/java/jamvm/pkg-plist
@@ -1,6 +1,7 @@
bin/jamvm
-lib/libjvm.la
-lib/libjvm.a
+lib/libjvm.so
+lib/libjvm.so.0
+lib/libjvm.so.0.0.0
%%WITH_ZIP%%lib/rt.jar
%%WITH_ZIP%%%%DATADIR%%/classes.zip
%%WITHOUT_ZIP%%%%DATADIR%%/classes/gnu/classpath/VMStackWalker.class