aboutsummaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2012-09-15 06:02:09 +0800
committerjkim <jkim@FreeBSD.org>2012-09-15 06:02:09 +0800
commit348443f522003adced2a2ed9b5a29c0c7e61decd (patch)
tree4c2a7d520283f6a7feaf6421954939ff6c545064 /java
parentf814c2384e2c56b2e3aa674422ddd1297d20e39d (diff)
downloadfreebsd-ports-gnome-348443f522003adced2a2ed9b5a29c0c7e61decd.tar.gz
freebsd-ports-gnome-348443f522003adced2a2ed9b5a29c0c7e61decd.tar.zst
freebsd-ports-gnome-348443f522003adced2a2ed9b5a29c0c7e61decd.zip
- Update to 1.5.4.
- Reset maintainer to java. - Convert to optionsNG and add license. - Unbreak sparc64. PR: ports/164941 (partial)
Diffstat (limited to 'java')
-rw-r--r--java/jamvm/Makefile36
-rw-r--r--java/jamvm/distinfo4
-rw-r--r--java/jamvm/files/patch-configure11
-rw-r--r--java/jamvm/pkg-plist63
4 files changed, 65 insertions, 49 deletions
diff --git a/java/jamvm/Makefile b/java/jamvm/Makefile
index 8643d75ded99..5c8013684cf8 100644
--- a/java/jamvm/Makefile
+++ b/java/jamvm/Makefile
@@ -5,33 +5,41 @@
# $FreeBSD$
PORTNAME= jamvm
-PORTVERSION= 1.5.1
-PORTREVISION= 5
+PORTVERSION= 1.5.4
CATEGORIES= java devel
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/JamVM%20${PORTVERSION}
-MAINTAINER= bkoenig@alpha-tierchen.de
+MAINTAINER= java@FreeBSD.org
COMMENT= A compact Java virtual machine
+LICENSE= GPLv2
+
RUN_DEPENDS= ${LOCALBASE}/share/classpath/glibj.zip:${PORTSDIR}/java/classpath
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --with-classpath-install-dir=${LOCALBASE}
USE_GMAKE= yes
+USE_PKGCONFIG= build
-OPTIONS= FFI "use libffi to call native methods" ON \
- ZIP "turn-on zip support in the bootstrap loader" ON
+OPTIONS_DEFINE= FFI ZIP
+OPTIONS_DEFAULT=FFI ZIP
+FFI_DESC= use libffi to call native methods
+ZIP_DESC= turn-on zip support in the bootstrap loader
-.include <bsd.port.pre.mk>
+.include <bsd.port.options.mk>
-.if defined(WITH_FFI)
+.if ${PORT_OPTIONS:MFFI}
LIB_DEPENDS+= ffi:${PORTSDIR}/devel/libffi
CONFIGURE_ARGS+= --enable-ffi
-LDFLAGS+= -L${LOCALBASE}/lib
-CFLAGS+= `pkg-config libffi --cflags`
+FFI_CFLAGS!= pkgconf libffi --cflags
+FFI_LDFLAGS!= pkgconf libffi --libs-only-L
+CFLAGS+= ${FFI_CFLAGS}
+LDFLAGS+= ${FFI_LDFLAGS}
+.elif ${ARCH} == "sparc64"
+IGNORE= for ${ARCH} requires libffi
.endif
-.if defined(WITH_ZIP)
+.if ${PORT_OPTIONS:MZIP}
BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
PLIST_SUB+= WITH_ZIP="" WITHOUT_ZIP="@comment "
.else
@@ -39,15 +47,9 @@ CONFIGURE_ARGS+= --disable-zip
PLIST_SUB+= WITH_ZIP="@comment " WITHOUT_ZIP=""
.endif
-.if ${ARCH} == "sparc64"
-BROKEN= Does not configure on sparc64
-.endif
+.include <bsd.port.pre.mk>
post-extract:
- @${MV} ${WRKSRC}/src/arch/x86_64.h ${WRKSRC}/src/arch/amd64.h
@${REINPLACE_CMD} -e "s,\(^include_HEADERS = .*\)jni.h\(.*\),\1\2," ${WRKSRC}/src/Makefile.in
-post-configure:
- @${MV} ${WRKSRC}/src/os/bsd/x86_64 ${WRKSRC}/src/os/bsd/amd64
-
.include <bsd.port.post.mk>
diff --git a/java/jamvm/distinfo b/java/jamvm/distinfo
index 2b59b4536274..410facf62f88 100644
--- a/java/jamvm/distinfo
+++ b/java/jamvm/distinfo
@@ -1,2 +1,2 @@
-SHA256 (jamvm-1.5.1.tar.gz) = 663895bd69caf3a1fda6af5eea8263d90a5fd35ca8f4c32e2210ac410788901a
-SIZE (jamvm-1.5.1.tar.gz) = 599084
+SHA256 (jamvm-1.5.4.tar.gz) = 7865693698bc4322cabe1014a4b7ebdec1bc1daf45f1a4457b6e908a4446b124
+SIZE (jamvm-1.5.4.tar.gz) = 656283
diff --git a/java/jamvm/files/patch-configure b/java/jamvm/files/patch-configure
new file mode 100644
index 000000000000..cb5f5ad70a91
--- /dev/null
+++ b/java/jamvm/files/patch-configure
@@ -0,0 +1,11 @@
+--- configure.orig 2009-12-31 13:41:44.000000000 -0500
++++ configure 2012-09-12 20:07:36.000000000 -0400
+@@ -2689,7 +2689,7 @@
+ 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 ;;
+ 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 ;;
diff --git a/java/jamvm/pkg-plist b/java/jamvm/pkg-plist
index 399df1bb40b3..a2b9885a7d02 100644
--- a/java/jamvm/pkg-plist
+++ b/java/jamvm/pkg-plist
@@ -2,33 +2,36 @@ bin/jamvm
lib/libjvm.la
lib/libjvm.a
%%WITH_ZIP%%lib/rt.jar
-%%WITH_ZIP%%share/jamvm/classes.zip
-%%WITHOUT_ZIP%%share/jamvm/classes/jamvm/java/lang/VMClassLoaderData.class
-%%WITHOUT_ZIP%%share/jamvm/classes/jamvm/java/lang/JarLauncher.class
-%%WITHOUT_ZIP%%share/jamvm/classes/jamvm/java/lang/VMClassLoaderData$Unloader.class
-%%WITHOUT_ZIP%%share/jamvm/classes/sun/reflect/annotation/AnnotationInvocationHandler.class
-%%WITHOUT_ZIP%%share/jamvm/classes/java/security/VMAccessController.class
-%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/reflect/Field.class
-%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/reflect/Constructor.class
-%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/reflect/Method.class
-%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/VMClassLoader.class
-%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/VMThrowable.class
-%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/VMString.class
-%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/VMThread.class
-%%WITHOUT_ZIP%%share/jamvm/classes/java/lang/VMRuntime.class
-%%WITHOUT_ZIP%%share/jamvm/classes/gnu/classpath/VMSystemProperties.class
-%%WITHOUT_ZIP%%share/jamvm/classes/gnu/classpath/VMStackWalker.class
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/gnu/classpath
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/gnu
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/java/lang/reflect
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/java/lang
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/java/security
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/java
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/sun/reflect/annotation
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/sun/reflect
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/sun
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/jamvm/java/lang
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/jamvm/java
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes/jamvm
-%%WITHOUT_ZIP%%@dirrm share/jamvm/classes
-@dirrm share/jamvm
+%%WITH_ZIP%%%%DATADIR%%/classes.zip
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/gnu/classpath/VMStackWalker.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/gnu/classpath/VMSystemProperties.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/jamvm/ThreadInfoHelper.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/jamvm/java/lang/JarLauncher.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/jamvm/java/lang/VMClassLoaderData$Unloader.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/jamvm/java/lang/VMClassLoaderData.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/java/lang/VMClass.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/java/lang/VMClassLoader$PackageInfo.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/java/lang/VMClassLoader.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/java/lang/VMRuntime.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/java/lang/VMString.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/java/lang/VMThread.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/java/lang/VMThrowable.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/java/lang/reflect/VMConstructor.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/java/lang/reflect/VMField.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/java/lang/reflect/VMMethod.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/java/security/VMAccessController.class
+%%WITHOUT_ZIP%%%%DATADIR%%/classes/sun/reflect/annotation/AnnotationInvocationHandler.class
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/gnu/classpath
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/gnu
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/java/lang/reflect
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/java/lang
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/java/security
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/java
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/sun/reflect/annotation
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/sun/reflect
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/sun
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/jamvm/java/lang
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/jamvm/java
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes/jamvm
+%%WITHOUT_ZIP%%@dirrm %%DATADIR%%/classes
+@dirrm %%DATADIR%%