summaryrefslogtreecommitdiff
path: root/java/sablevm-classpath
diff options
context:
space:
mode:
authorJung-uk Kim <jkim@FreeBSD.org>2012-10-04 16:13:00 +0000
committerJung-uk Kim <jkim@FreeBSD.org>2012-10-04 16:13:00 +0000
commite2756cb8359659a62a4b5b44143af8d741b3fae2 (patch)
tree8db06bea383aeba6a65868bf99a46c3ba12cd8ec /java/sablevm-classpath
parentlower a bit more the minimal version to install it. (diff)
- Reset maintainership. See ports/164941.
- Fix conflicts with java/classpath. Note security provider configuration is moved to ${PREFIX}/lib/security/SableVM.security. This file is always loaded first because the short vendor name is SableVM. If it does not exist, then classpath.security is loaded (java/security/Security.java). - Reduce Makefile headers, add licenses, and convert to optionsNG.
Notes
Notes: svn path=/head/; revision=305262
Diffstat (limited to 'java/sablevm-classpath')
-rw-r--r--java/sablevm-classpath/Makefile75
-rw-r--r--java/sablevm-classpath/files/patch-include-Makefile.in55
-rw-r--r--java/sablevm-classpath/files/patch-resource-Makefile.in11
-rw-r--r--java/sablevm-classpath/pkg-plist15
4 files changed, 113 insertions, 43 deletions
diff --git a/java/sablevm-classpath/Makefile b/java/sablevm-classpath/Makefile
index 91f8771db4dd..2f52b360327e 100644
--- a/java/sablevm-classpath/Makefile
+++ b/java/sablevm-classpath/Makefile
@@ -1,61 +1,64 @@
-# ex:ts=8
-# New ports collection makefile for: sablevm
-# Date created: 26 Nov 2007
-# Whom: Björn König <bkoenig@alpha-tierchen.de>
-#
+# Created by: Björn König <bkoenig@alpha-tierchen.de>
# $FreeBSD$
-#
PORTNAME= sablevm-classpath
PORTVERSION= 1.13
-PORTREVISION= 9
-CATEGORIES= java
+PORTREVISION= 10
+CATEGORIES= java devel
MASTER_SITES= SF/sablevm/sablevm/${PORTVERSION}
-MAINTAINER= bkoenig@alpha-tierchen.de
+MAINTAINER= java@FreeBSD.org
COMMENT= Classpath of SableVM
-BUILD_DEPENDS= jikes:${PORTSDIR}/java/jikes
-
-OPTIONS= ZIP "Compress class library" ON \
- GTK2 "Enable Gtk+ AWT peer" ON \
- CAIRO "Use Cairo based Graphics2D" OFF
+LICENSE= GPLv2
-CONFLICTS= classpath-[0-9]*
+BUILD_DEPENDS= jikes:${PORTSDIR}/java/jikes
-USE_XORG= x11 ice xtst sm
GNU_CONFIGURE= yes
-USE_GNOME= # empty
USE_GMAKE= yes
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
+USE_XORG= x11 ice xtst sm
+WANT_GNOME= yes
PLIST_SUB+= PORTVERSION=${PORTVERSION}
-CFLAGS+= -I${PREFIX}/include -L${PREFIX}/lib -I${LOCALBASE}/include -L${LOCALBASE}/lib
-.include <bsd.port.pre.mk>
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+CONFIGURE_ARGS+=--disable-alsa --disable-dssi
-.if defined(WITHOUT_ZIP)
-CONFIGURE_ARGS+= --with-compressed-classes=no
-PLIST_SUB+= WITHOUT_ZIP="" WITH_ZIP="@comment "
-.else
-CONFIGURE_ARGS+= --with-compressed-classes=zip
-BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
-PLIST_SUB+= WITHOUT_ZIP="@comment " WITH_ZIP=""
-.endif
+OPTIONS_DEFINE= CAIRO GTK2 ZIP
+OPTIONS_DEFAULT=GTK2 ZIP
+CAIRO_DESC= Use Cairo based Graphics2D
+GTK2_DESC= Enable Gtk+ AWT peer
+ZIP_DESC= Compress class library
-.if defined(WITHOUT_GTK2)
-CONFIGURE_ARGS+= --disable-gtk-peer
-PLIST_SUB+= GTK2="@comment "
-.else
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MGTK2}
USE_GNOME+= gtk20
PLIST_SUB+= GTK2=""
-.if defined(WITH_CAIRO)
+.if ${PORT_OPTIONS:MCAIRO}
CONFIGURE_ARGS+= --enable-gtk-cairo
.endif
+.else
+CONFIGURE_ARGS+= --disable-gtk-peer
+PLIST_SUB+= GTK2="@comment "
+.if ${PORT_OPTIONS:MCAIRO}
+IGNORE=you need to enable the Gtk+ AWT peer in order to use Cairo based Graphics2D.
+.endif
+.endif
+
+.if ${PORT_OPTIONS:MZIP}
+CONFIGURE_ARGS+= --with-compressed-classes=zip
+BUILD_DEPENDS+= zip:${PORTSDIR}/archivers/zip
+PLIST_SUB+= WITHOUT_ZIP="@comment " WITH_ZIP=""
+.else
+CONFIGURE_ARGS+= --with-compressed-classes=no
+PLIST_SUB+= WITHOUT_ZIP="" WITH_ZIP="@comment "
.endif
-post-extract:
- @${REINPLACE_CMD} -e 's,^\(include_HEADERS = \)jni.h jni_md.h \(.*\),\1\2,' \
- ${WRKSRC}/include/Makefile.in
+post-patch:
+ @${CP} -f ${WRKSRC}/resource/java/security/classpath.security \
+ ${WRKSRC}/resource/java/security/SableVM.security
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/java/sablevm-classpath/files/patch-include-Makefile.in b/java/sablevm-classpath/files/patch-include-Makefile.in
new file mode 100644
index 000000000000..154d0b3be8a4
--- /dev/null
+++ b/java/sablevm-classpath/files/patch-include-Makefile.in
@@ -0,0 +1,55 @@
+--- include/Makefile.in.orig 2007-03-30 02:30:43.000000000 -0400
++++ include/Makefile.in 2012-09-28 12:17:30.000000000 -0400
+@@ -59,7 +59,7 @@
+ *) f=$$p;; \
+ esac;
+ am__strip_dir = `echo $$p | sed -e 's|^.*/||'`;
+-am__installdirs = "$(DESTDIR)$(includedir)"
++am__installdirs = "$(DESTDIR)$(pkgincludedir)"
+ includeHEADERS_INSTALL = $(INSTALL_HEADER)
+ HEADERS = $(include_HEADERS)
+ ETAGS = etags
+@@ -271,7 +271,7 @@
+ target_os = @target_os@
+ target_vendor = @target_vendor@
+ vm_classes = @vm_classes@
+-include_HEADERS = jni.h jni_md.h jawt.h jawt_md.h
++include_HEADERS = jawt.h jawt_md.h
+ DISTCLEANFILES = jni_md.h
+ ARG_JNI_JAVAH = -jni
+ ARG_CLASSPATH_JAVAH = -bootclasspath
+@@ -470,20 +470,20 @@
+ uninstall-info-am:
+ install-includeHEADERS: $(include_HEADERS)
+ @$(NORMAL_INSTALL)
+- test -z "$(includedir)" || $(mkdir_p) "$(DESTDIR)$(includedir)"
++ test -z "$(pkgincludedir)" || $(mkdir_p) "$(DESTDIR)$(pkgincludedir)"
+ @list='$(include_HEADERS)'; for p in $$list; do \
+ if test -f "$$p"; then d=; else d="$(srcdir)/"; fi; \
+ f=$(am__strip_dir) \
+- echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(includedir)/$$f'"; \
+- $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(includedir)/$$f"; \
++ echo " $(includeHEADERS_INSTALL) '$$d$$p' '$(DESTDIR)$(pkgincludedir)/$$f'"; \
++ $(includeHEADERS_INSTALL) "$$d$$p" "$(DESTDIR)$(pkgincludedir)/$$f"; \
+ done
+
+ uninstall-includeHEADERS:
+ @$(NORMAL_UNINSTALL)
+ @list='$(include_HEADERS)'; for p in $$list; do \
+ f=$(am__strip_dir) \
+- echo " rm -f '$(DESTDIR)$(includedir)/$$f'"; \
+- rm -f "$(DESTDIR)$(includedir)/$$f"; \
++ echo " rm -f '$(DESTDIR)$(pkgincludedir)/$$f'"; \
++ rm -f "$(DESTDIR)$(pkgincludedir)/$$f"; \
+ done
+
+ ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
+@@ -566,7 +566,7 @@
+ @CREATE_JNI_HEADERS_FALSE@all-local:
+ all-am: Makefile $(HEADERS) config.h all-local
+ installdirs:
+- for dir in "$(DESTDIR)$(includedir)"; do \
++ for dir in "$(DESTDIR)$(pkgincludedir)"; do \
+ test -z "$$dir" || $(mkdir_p) "$$dir"; \
+ done
+ install: install-am
diff --git a/java/sablevm-classpath/files/patch-resource-Makefile.in b/java/sablevm-classpath/files/patch-resource-Makefile.in
new file mode 100644
index 000000000000..54e67b7a746d
--- /dev/null
+++ b/java/sablevm-classpath/files/patch-resource-Makefile.in
@@ -0,0 +1,11 @@
+--- resource/Makefile.in.orig 2007-03-30 02:30:09.000000000 -0400
++++ resource/Makefile.in 2012-10-01 17:02:09.000000000 -0400
+@@ -268,7 +268,7 @@
+ target_os = @target_os@
+ target_vendor = @target_vendor@
+ vm_classes = @vm_classes@
+-security_DATA = java/security/classpath.security
++security_DATA = java/security/SableVM.security
+ securitydir = $(libdir)/security
+ all: all-am
+
diff --git a/java/sablevm-classpath/pkg-plist b/java/sablevm-classpath/pkg-plist
index 1b9804652069..22e11e9542b7 100644
--- a/java/sablevm-classpath/pkg-plist
+++ b/java/sablevm-classpath/pkg-plist
@@ -1,5 +1,5 @@
-include/jawt.h
-include/jawt_md.h
+include/sablevm-classpath/jawt.h
+include/sablevm-classpath/jawt_md.h
%%WITH_ZIP%%lib/sablevm/lib/libclasspath.jar
%%WITH_ZIP%%lib/sablevm/lib/resources.jar
%%WITH_ZIP%%lib/sablevm/jre/lib/libclasspath.jar
@@ -29,7 +29,7 @@ lib/sablevm-classpath/libjavautil.so
%%GTK2%%lib/sablevm-classpath/libjawtgnu-1.13.so
%%GTK2%%lib/sablevm-classpath/libjawtgnu.la
%%GTK2%%lib/sablevm-classpath/libjawtgnu.so
-lib/security/classpath.security
+lib/security/SableVM.security
%%WITH_ZIP%%%%DATADIR%%/libclasspath.jar
%%WITH_ZIP%%%%DATADIR%%/resources.jar
%%WITHOUT_ZIP%%%%DATADIR%%/META-INF/services/javax.sound.midi.spi.MidiDeviceProvider
@@ -5607,7 +5607,8 @@ lib/security/classpath.security
@dirrm %%DATADIR%%
@dirrmtry lib/security
@dirrm lib/sablevm-classpath
-%%WITH_ZIP%%@dirrm lib/sablevm/lib
-%%WITH_ZIP%%@dirrm lib/sablevm/jre/lib
-%%WITH_ZIP%%@dirrm lib/sablevm/jre
-%%WITH_ZIP%%@dirrm lib/sablevm
+%%WITH_ZIP%%@dirrmtry lib/sablevm/lib
+%%WITH_ZIP%%@dirrmtry lib/sablevm/jre/lib
+%%WITH_ZIP%%@dirrmtry lib/sablevm/jre
+%%WITH_ZIP%%@dirrmtry lib/sablevm
+@dirrm include/sablevm-classpath