2011-07-11 20:50:42 +00:00
|
|
|
PORTNAME= icedtea-web
|
2020-07-23 02:16:28 +00:00
|
|
|
PORTVERSION= 1.8.4
|
2020-08-11 17:05:56 +00:00
|
|
|
DISTVERSIONPREFIX= icedtea-web-
|
2021-03-29 18:10:45 +00:00
|
|
|
PORTREVISION= 9
|
2011-07-11 20:50:42 +00:00
|
|
|
CATEGORIES= java www
|
2018-07-07 11:15:43 +00:00
|
|
|
DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
|
2011-07-11 20:50:42 +00:00
|
|
|
|
|
|
|
MAINTAINER= java@FreeBSD.org
|
2013-11-12 18:22:05 +00:00
|
|
|
COMMENT= Free Java plug-in and Java Web Start for OpenJDK
|
2011-08-31 20:09:13 +00:00
|
|
|
|
2011-07-11 23:13:16 +00:00
|
|
|
LICENSE= GPLv2
|
2011-07-11 20:50:42 +00:00
|
|
|
|
2016-04-01 14:08:37 +00:00
|
|
|
BUILD_DEPENDS= zip:archivers/zip \
|
2020-08-11 17:05:56 +00:00
|
|
|
rustc:lang/${RUST_DEFAULT} \
|
2016-04-01 14:08:37 +00:00
|
|
|
bash:shells/bash \
|
2020-07-23 02:16:28 +00:00
|
|
|
gsed:textproc/gsed \
|
|
|
|
${HAMCREST_JAR}:java/hamcrest \
|
2016-04-01 14:08:37 +00:00
|
|
|
${JUNIT_JAR}:java/junit
|
2020-07-23 02:16:28 +00:00
|
|
|
RUN_DEPENDS= bash:shells/bash
|
|
|
|
|
|
|
|
MAKE_JOBS_UNSAFE=yes
|
2012-11-08 18:22:11 +00:00
|
|
|
|
2011-07-11 20:50:42 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2011-07-13 19:17:36 +00:00
|
|
|
USE_JAVA= yes
|
2020-07-25 17:58:07 +00:00
|
|
|
JAVA_VERSION= 8
|
2011-07-13 19:17:36 +00:00
|
|
|
JAVA_OS= native
|
2011-07-11 20:50:42 +00:00
|
|
|
JAVA_VENDOR= openjdk
|
2013-09-15 08:15:41 +00:00
|
|
|
USE_PERL5= build
|
2011-07-11 20:50:42 +00:00
|
|
|
USE_XORG= x11
|
2020-08-18 20:51:42 +00:00
|
|
|
USES= autoreconf compiler:c++11-lang desktop-file-utils gmake perl5 \
|
|
|
|
pkgconfig shebangfix xorg
|
2020-08-11 17:05:56 +00:00
|
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= AdoptOpenJDK
|
|
|
|
GH_PROJECT= IcedTea-Web
|
2020-07-23 02:16:28 +00:00
|
|
|
SHEBANG_FILES= jrunscript.in shell-launcher/launchers.sh.in
|
2013-06-11 23:18:45 +00:00
|
|
|
|
2016-02-11 23:45:10 +00:00
|
|
|
CONFIGURE_ARGS= --with-hamcrest="${HAMCREST_JAR}"
|
|
|
|
CONFIGURE_ARGS+= --with-jdk-home="${JAVA_HOME}"
|
|
|
|
CONFIGURE_ARGS+= --with-junit="${JUNIT_JAR}"
|
|
|
|
CONFIGURE_ARGS+= --with-rhino="${RHINO_JAR}"
|
|
|
|
CONFIGURE_ARGS+= --with-tagsoup="${TAGSOUP_JAR}"
|
2020-08-08 01:33:27 +00:00
|
|
|
CONFIGURE_ARGS+= --with-itw-libs="DISTRIBUTION"
|
2020-07-23 02:16:28 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-shell-launchers
|
2016-02-11 23:45:10 +00:00
|
|
|
.for opt in asm chrome chromium ecj epiphany firefox jacoco midori opera
|
|
|
|
CONFIGURE_ARGS+= --without-${opt}
|
|
|
|
.endfor
|
|
|
|
CONFIGURE_ENV= BIN_BASH=${bash_CMD}
|
2020-07-30 06:59:41 +00:00
|
|
|
CONFIGURE_ENV+= bashcompdir=${PREFIX}/etc/bash_completion.d
|
2016-02-11 23:45:10 +00:00
|
|
|
CONFIGURE_SHELL= ${bash_CMD}
|
|
|
|
|
|
|
|
TEST_TARGET= check
|
|
|
|
|
2020-08-01 18:17:52 +00:00
|
|
|
# Upstream archive contains files with UTF-8 names
|
|
|
|
EXTRACT_CMD= ${SETENV} LC_ALL=en_US.UTF-8 /usr/bin/bsdtar
|
|
|
|
|
2018-07-07 11:15:43 +00:00
|
|
|
OPTIONS_DEFINE= DOCS PLUGIN RHINO TAGSOUP
|
|
|
|
OPTIONS_DEFAULT=PLUGIN
|
2016-02-11 23:45:10 +00:00
|
|
|
OPTIONS_SUB= yes
|
|
|
|
|
2018-07-07 11:15:43 +00:00
|
|
|
PLUGIN_DESC= Enable the browser plug-in
|
2012-11-08 18:22:11 +00:00
|
|
|
RHINO_DESC= Add support for Proxy Auto Config files
|
2016-02-11 23:45:10 +00:00
|
|
|
TAGSOUP_DESC= Enable cleaning up of malformed JNLP files
|
2012-09-07 18:59:28 +00:00
|
|
|
|
2014-04-10 05:24:06 +00:00
|
|
|
DOCS_CONFIGURE_ENABLE= docs
|
2016-02-11 23:45:10 +00:00
|
|
|
DOCS_PORTDOCS= netx
|
|
|
|
|
2016-04-01 14:08:37 +00:00
|
|
|
RHINO_BUILD_DEPENDS= ${JAVASHAREDIR}/rhino/rhino.jar:lang/rhino
|
2016-02-11 23:45:10 +00:00
|
|
|
RHINO_RUN_DEPENDS= ${RHINO_BUILD_DEPENDS}
|
|
|
|
RHINO_VARS= RHINO_JAR="${JAVASHAREDIR}/rhino/rhino.jar"
|
|
|
|
RHINO_VARS_OFF= RHINO_JAR=no
|
|
|
|
|
2016-04-01 14:08:37 +00:00
|
|
|
TAGSOUP_BUILD_DEPENDS= ${JAVALIBDIR}/tagsoup.jar:textproc/tagsoup
|
2016-02-11 23:45:10 +00:00
|
|
|
TAGSOUP_RUN_DEPENDS= ${TAGSOUP_BUILD_DEPENDS}
|
|
|
|
TAGSOUP_VARS= TAGSOUP_JAR="${JAVALIBDIR}/tagsoup.jar"
|
|
|
|
TAGSOUP_VARS_OFF= TAGSOUP_JAR=no
|
|
|
|
|
2020-07-24 23:53:31 +00:00
|
|
|
PLUGIN_CONFIGURE_ENABLE=native-plugin pluginjar
|
2018-07-07 11:15:43 +00:00
|
|
|
PLUGIN_CONFIGURE_ENV= MOZILLA_CFLAGS="-I${WRKDIR}/npapi-headers -DXP_UNIX" \
|
|
|
|
MOZILLA_LIBS=" " # needs to be set and non-empty!
|
2018-07-07 12:35:32 +00:00
|
|
|
PLUGIN_DISTFILES= libxul-npapi-headers-45.9.0${EXTRACT_SUFX}:npapi
|
2018-07-07 11:15:43 +00:00
|
|
|
PLUGIN_MASTER_SITES= LOCAL/tobik:npapi
|
|
|
|
PLUGIN_PORTDOCS= plugin
|
|
|
|
PLUGIN_TEST_TARGET= plugin-tests
|
|
|
|
PLUGIN_USE= GNOME=glib20
|
2019-11-06 18:03:34 +00:00
|
|
|
PLUGIN_USES= webplugin:native gnome
|
2018-07-07 11:15:43 +00:00
|
|
|
PLUGIN_VARS= WEBPLUGIN_DIR=${PREFIX}/lib \
|
|
|
|
WEBPLUGIN_FILES=IcedTeaPlugin.so
|
|
|
|
|
2016-02-11 23:45:10 +00:00
|
|
|
HAMCREST_JAR= ${JAVALIBDIR}/hamcrest.jar
|
|
|
|
JUNIT_JAR= ${JAVALIBDIR}/junit.jar
|
2011-07-11 20:50:42 +00:00
|
|
|
|
2012-11-08 18:22:11 +00:00
|
|
|
.include <bsd.port.pre.mk>
|
2012-03-06 00:38:48 +00:00
|
|
|
|
2019-07-04 02:40:49 +00:00
|
|
|
.if ${JAVA_PORT_VERSION:M*6*}
|
2011-07-11 20:50:42 +00:00
|
|
|
pre-extract:
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "IMPORTANT: To build IcedTea-Web ${PORTVERSION}, you have to turn on 'ICEDTEA' option"
|
2012-08-27 17:43:38 +00:00
|
|
|
@${ECHO_MSG} "for ${JAVA_PORT} (default). Otherwise, it will neither build nor work."
|
2011-07-11 20:50:42 +00:00
|
|
|
@${ECHO_MSG}
|
2018-04-25 22:00:04 +00:00
|
|
|
. if !(defined(PACKAGE_BUILDING) || defined(BATCH))
|
2012-11-08 18:22:11 +00:00
|
|
|
@sleep 5
|
2018-04-25 22:00:04 +00:00
|
|
|
. endif
|
2012-08-27 17:43:38 +00:00
|
|
|
.endif
|
2011-07-11 20:50:42 +00:00
|
|
|
|
2012-11-08 18:22:11 +00:00
|
|
|
post-patch:
|
2016-02-11 23:45:10 +00:00
|
|
|
${REINPLACE_CMD} -e 's|^sed\([[:space:]]\)|gsed\1|' \
|
|
|
|
-e 's|\([[:space:]]\)sed\([[:space:]]\)|\1gsed\2|g' \
|
2020-07-23 02:16:28 +00:00
|
|
|
${WRKSRC}/Makefile.am ${WRKSRC}/html-gen.sh
|
2013-06-11 23:18:45 +00:00
|
|
|
${REINPLACE_CMD} -e 's|^Icon=javaws|Icon=itweb-javaws|' \
|
|
|
|
${WRKSRC}/*.desktop.in
|
2011-08-31 20:09:13 +00:00
|
|
|
|
2011-07-11 20:50:42 +00:00
|
|
|
post-install:
|
2013-11-12 18:22:05 +00:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/*.desktop ${STAGEDIR}${DESKTOPDIR}
|
2016-02-11 23:45:10 +00:00
|
|
|
.for lang in cs de en pl
|
|
|
|
.for man in javaws policyeditor
|
|
|
|
${MV} ${STAGEDIR}${MANPREFIX}/man/${lang:Nen}/man1/${man}.1 \
|
|
|
|
${STAGEDIR}${MANPREFIX}/man/${lang:Nen}/man1/itweb-${man}.1
|
|
|
|
.endfor
|
|
|
|
.endfor
|
|
|
|
@${ECHO_MSG}
|
|
|
|
@${ECHO_MSG} "Run \"make test\" to execute regression test."
|
|
|
|
@${ECHO_MSG}
|
2011-07-11 20:50:42 +00:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|