aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--java/Makefile1
-rw-r--r--java/icedtea-web/Makefile104
-rw-r--r--java/icedtea-web/distinfo2
-rw-r--r--java/icedtea-web/files/patch-Makefile.in45
-rw-r--r--java/icedtea-web/pkg-descr5
5 files changed, 157 insertions, 0 deletions
diff --git a/java/Makefile b/java/Makefile
index 9b52ff769392..200c7a0685e2 100644
--- a/java/Makefile
+++ b/java/Makefile
@@ -55,6 +55,7 @@
SUBDIR += eclipse-viplugin
SUBDIR += eclipse-webtools
SUBDIR += eclipseme
+ SUBDIR += icedtea-web
SUBDIR += icedtea6-stubs
SUBDIR += infobus
SUBDIR += j2sdkee13
diff --git a/java/icedtea-web/Makefile b/java/icedtea-web/Makefile
new file mode 100644
index 000000000000..9f6691f21eb7
--- /dev/null
+++ b/java/icedtea-web/Makefile
@@ -0,0 +1,104 @@
+# New ports collection makefile for: icedtea-web
+# Date created: July 11, 2011
+# Whom: Jung-uk Kim <jkim@FreeBSD.org>
+#
+# $FreeBSD$
+#
+
+PORTNAME= icedtea-web
+PORTVERSION= 1.1
+CATEGORIES= java www
+MASTER_SITES= http://icedtea.classpath.org/download/source/
+
+MAINTAINER= java@FreeBSD.org
+COMMENT= A free Java plug-in and Java Web Start for OpenJDK
+
+GNU_CONFIGURE= yes
+USE_GMAKE= yes
+USE_JAVA= 1.6
+JAVA_VENDOR= openjdk
+USE_XORG= x11
+
+OPTIONS= PLUGIN "Enable the browser plug-in" on \
+ RHINO "Enable support for Proxy Auto Config files" off \
+ TEST "Add support for running regression test" off
+
+MAN1= javaws.1
+PLIST_FILES= bin/itweb-settings bin/javaws \
+ share/applications/itweb-settings.desktop \
+ share/applications/javaws.desktop \
+ share/pixmaps/javaws.png
+PORTDATA= about.jar about.jnlp netx.jar
+PORTDOCS= netx
+
+BUILD_DEPENDS+= ${LOCALBASE}/bin/zip:${PORTSDIR}/archivers/zip \
+ ${LOCALBASE}/bin/pkg-config:${PORTSDIR}/devel/pkg-config \
+ ${LOCALBASE}/bin/ginstall:${PORTSDIR}/sysutils/coreutils
+
+CONFIGURE_ARGS+=--with-ecj=no --with-jdk-home="${JAVA_HOME}"
+CONFIGURE_ENV+= INSTALL_DATA="${LOCALBASE}/bin/ginstall"
+
+.include <bsd.port.pre.mk>
+
+.if defined(NOPORTDOCS)
+CONFIGURE_ARGS+= --disable-docs
+.endif
+
+.if defined(WITH_PLUGIN)
+USE_WEBPLUGINS= native
+WEBPLUGINS_DIR= ${PREFIX}/lib
+WEBPLUGINS_FILES=IcedTeaPlugin.so
+
+PLIST_FILES+= lib/IcedTeaPlugin.so
+PORTDATA+= plugin.jar
+PORTDOCS+= plugin
+
+BUILD_DEPENDS+= ${LOCALBASE}/libdata/pkgconfig/glib-2.0.pc:${PORTSDIR}/devel/glib20 \
+ ${LOCALBASE}/libdata/pkgconfig/gtk+-2.0.pc:${PORTSDIR}/x11-toolkits/gtk20 \
+ ${LOCALBASE}/libdata/pkgconfig/mozilla-plugin.pc:${PORTSDIR}/www/libxul
+
+.include "${PORTSDIR}/www/firefox/Makefile.webplugins"
+.else
+CONFIGURE_ARGS+=--disable-plugin
+.endif
+
+.if defined(WITH_RHINO)
+CONFIGURE_ARGS+=--with-rhino=${JAVASHAREDIR}/rhino/rhino.jar
+RUN_DEPENDS+= ${JAVASHAREDIR}/rhino/rhino.jar:${PORTSDIR}/lang/rhino
+.else
+CONFIGURE_ARGS+=--with-rhino=no
+.endif
+
+.if defined(WITH_TEST)
+CONFIGURE_ARGS+=--with-junit=${JAVALIBDIR}/junit.jar
+BUILD_DEPENDS+= ${JAVALIBDIR}/junit.jar:${PORTSDIR}/java/junit
+.else
+CONFIGURE_ARGS+=--with-junit=no
+.endif
+
+pre-extract:
+ @${ECHO_MSG}
+ @${ECHO_MSG} "IMPORTANT: To build IcedTea-Web ${PORTVERSION}, you have to turn on 'ICEDTEA' option"
+ @${ECHO_MSG} "for java/openjdk6 (default). Otherwise, it will neither build nor work."
+ @${ECHO_MSG}
+ @sleep 10
+
+post-install:
+ ${MKDIR} ${DESKTOPDIR}
+ ${INSTALL_DATA} ${WRKSRC}/itweb-settings.desktop \
+ ${WRKSRC}/javaws.desktop ${DESKTOPDIR}
+ ${MKDIR} ${PREFIX}/share/pixmaps
+ ${INSTALL_DATA} ${WRKSRC}/javaws.png ${PREFIX}/share/pixmaps
+.if defined(WITH_TEST)
+ @${ECHO_MSG}
+ @${ECHO_MSG} "Run \"make test\" to execute regression test."
+ @${ECHO_MSG}
+
+test: install
+ @(cd ${WRKSRC}; ${GMAKE} check)
+.if defined(WITH_PLUGIN)
+ @(cd ${WRKSRC}; ${GMAKE} plugin-tests)
+.endif
+.endif
+
+.include <bsd.port.post.mk>
diff --git a/java/icedtea-web/distinfo b/java/icedtea-web/distinfo
new file mode 100644
index 000000000000..fee9107737c9
--- /dev/null
+++ b/java/icedtea-web/distinfo
@@ -0,0 +1,2 @@
+SHA256 (icedtea-web-1.1.tar.gz) = 9ab60926f5d455d51e8e62120f71a12b1f18b20f599477d55dd71282a8055675
+SIZE (icedtea-web-1.1.tar.gz) = 794939
diff --git a/java/icedtea-web/files/patch-Makefile.in b/java/icedtea-web/files/patch-Makefile.in
new file mode 100644
index 000000000000..fb33798514d8
--- /dev/null
+++ b/java/icedtea-web/files/patch-Makefile.in
@@ -0,0 +1,45 @@
+--- Makefile.in.orig 2011-06-08 17:59:15.371244000 -0400
++++ Makefile.in 2011-07-11 16:37:49.000000000 -0400
+@@ -758,7 +758,7 @@
+
+ netx-source-files.txt:
+ find $(NETX_SRCDIR) -name '*.java' | sort > $@
+-@WITH_RHINO_FALSE@ sed -i '/RhinoBasedPacEvaluator/ d' $@
++@WITH_RHINO_FALSE@ sed -i -e '/RhinoBasedPacEvaluator/ d' $@
+
+ stamps/netx.stamp: netx-source-files.txt stamps/bootstrap-directory.stamp
+ mkdir -p $(NETX_DIR)
+@@ -897,7 +897,7 @@
+ fi
+
+ check-pac-functions: stamps/bootstrap-directory.stamp
+- ./jrunscript $(abs_top_srcdir)/tests/netx/pac/pac-funcs-test.js \
++ $(SHELL) jrunscript $(abs_top_srcdir)/tests/netx/pac/pac-funcs-test.js \
+ $$(readlink -f $(abs_top_srcdir)/netx/net/sourceforge/jnlp/runtime/pac-funcs.js)
+
+ junit-runner-source-files.txt:
+@@ -926,10 +926,11 @@
+
+ run-netx-unit-tests: stamps/netx-unit-tests-compile.stamp \
+ $(JUNIT_RUNNER_JAR)
+- cp {$(NETX_UNIT_TEST_SRCDIR),$(NETX_UNIT_TEST_DIR)}/net/sourceforge/jnlp/basic.jnlp
++ cp $(NETX_UNIT_TEST_SRCDIR)/net/sourceforge/jnlp/basic.jnlp \
++ $(NETX_UNIT_TEST_DIR)/net/sourceforge/jnlp
+ cd $(NETX_UNIT_TEST_DIR) ; \
+ class_names= ; \
+- for test in `find -type f` ; do \
++ for test in `find . -type f` ; do \
+ class_name=`echo $$test | sed -e 's|\.class$$||' -e 's|^\./||'` ; \
+ class_name=`echo $$class_name | sed -e 's|/|.|g' ` ; \
+ class_names="$$class_names $$class_name" ; \
+@@ -963,9 +964,7 @@
+ @ENABLE_PLUGIN_TRUE@ $(PLUGIN_TEST_SRCS) ;
+ @ENABLE_PLUGIN_TRUE@ $(BOOT_DIR)/bin/jar cf plugin/tests/LiveConnect/PluginTest.jar \
+ @ENABLE_PLUGIN_TRUE@ plugin/tests/LiveConnect/*.class ;
+-@ENABLE_PLUGIN_TRUE@ cp -pPR $(SRC_DIR_LINK) $(abs_top_srcdir)/plugin/tests/LiveConnect/*.{js,html} \
+-@ENABLE_PLUGIN_TRUE@ plugin/tests/LiveConnect ;
+-@ENABLE_PLUGIN_TRUE@ echo "Done. Now launch \"firefox file://`pwd`/index.html\"" ;
++@ENABLE_PLUGIN_TRUE@ echo "Done. Now launch \"firefox file://$(abs_top_srcdir)/plugin/tests/LiveConnect/index.html\"" ;
+ @ENABLE_PLUGIN_TRUE@ mkdir -p stamps
+ @ENABLE_PLUGIN_TRUE@ touch stamps/plugin-tests.stamp
+
diff --git a/java/icedtea-web/pkg-descr b/java/icedtea-web/pkg-descr
new file mode 100644
index 000000000000..596e8f26a87e
--- /dev/null
+++ b/java/icedtea-web/pkg-descr
@@ -0,0 +1,5 @@
+The IcedTea-Web project provides a Free Software web browser plugin running
+applets written in the Java programming language and an implementation of
+Java Web Start, originally based on the NetX project.
+
+WWW: http://icedtea.classpath.org/wiki/IcedTea-Web