mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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
This commit is contained in:
parent
db43f698bf
commit
3fd4f7963c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=277566
5 changed files with 157 additions and 0 deletions
|
@ -55,6 +55,7 @@
|
||||||
SUBDIR += eclipse-viplugin
|
SUBDIR += eclipse-viplugin
|
||||||
SUBDIR += eclipse-webtools
|
SUBDIR += eclipse-webtools
|
||||||
SUBDIR += eclipseme
|
SUBDIR += eclipseme
|
||||||
|
SUBDIR += icedtea-web
|
||||||
SUBDIR += icedtea6-stubs
|
SUBDIR += icedtea6-stubs
|
||||||
SUBDIR += infobus
|
SUBDIR += infobus
|
||||||
SUBDIR += j2sdkee13
|
SUBDIR += j2sdkee13
|
||||||
|
|
104
java/icedtea-web/Makefile
Normal file
104
java/icedtea-web/Makefile
Normal file
|
@ -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>
|
2
java/icedtea-web/distinfo
Normal file
2
java/icedtea-web/distinfo
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
SHA256 (icedtea-web-1.1.tar.gz) = 9ab60926f5d455d51e8e62120f71a12b1f18b20f599477d55dd71282a8055675
|
||||||
|
SIZE (icedtea-web-1.1.tar.gz) = 794939
|
45
java/icedtea-web/files/patch-Makefile.in
Normal file
45
java/icedtea-web/files/patch-Makefile.in
Normal file
|
@ -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
|
||||||
|
|
5
java/icedtea-web/pkg-descr
Normal file
5
java/icedtea-web/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue