Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 7 Jul 2018 11:15:43 +0000 (UTC)
From:      Tobias Kortkamp <tobik@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r474073 - head/java/icedtea-web
Message-ID:  <201807071115.w67BFhYT059000@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tobik
Date: Sat Jul  7 11:15:43 2018
New Revision: 474073
URL: https://svnweb.freebsd.org/changeset/ports/474073

Log:
  Attempt to unbreak java/icedtea-web
  
  - Bring back the PLUGIN option.  The build needs the 4 NPAPI headers.
    Extract them from libxul-45.9.0_12 to a separate distfile and
    point the build to them.
  
  PR:		229242
  Approved by:	java (maintainer timeout, 2 weeks)

Modified:
  head/java/icedtea-web/Makefile
  head/java/icedtea-web/distinfo
  head/java/icedtea-web/pkg-plist

Modified: head/java/icedtea-web/Makefile
==============================================================================
--- head/java/icedtea-web/Makefile	Sat Jul  7 11:08:40 2018	(r474072)
+++ head/java/icedtea-web/Makefile	Sat Jul  7 11:15:43 2018	(r474073)
@@ -2,17 +2,17 @@
 
 PORTNAME=	icedtea-web
 PORTVERSION=	1.6.2
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	java www
 MASTER_SITES=	http://icedtea.wildebeest.org/download/source/ \
 		http://icedtea.classpath.org/download/source/
+DISTFILES=	${DISTNAME}${EXTRACT_SUFX}
 
 MAINTAINER=	java@FreeBSD.org
 COMMENT=	Free Java plug-in and Java Web Start for OpenJDK
 
 LICENSE=	GPLv2
 
-BROKEN=		Does not configure: "Package 'mozilla-plugin', required by 'virtual:world', not found" 
 BUILD_DEPENDS=	zip:archivers/zip \
 		bash:shells/bash \
 		gsed:textproc/gsed
@@ -43,9 +43,11 @@ CONFIGURE_SHELL=	${bash_CMD}
 
 TEST_TARGET=	check
 
-OPTIONS_DEFINE=	DOCS RHINO TAGSOUP
+OPTIONS_DEFINE=	DOCS PLUGIN RHINO TAGSOUP
+OPTIONS_DEFAULT=PLUGIN
 OPTIONS_SUB=	yes
 
+PLUGIN_DESC=	Enable the browser plug-in
 RHINO_DESC=	Add support for Proxy Auto Config files
 TAGSOUP_DESC=	Enable cleaning up of malformed JNLP files
 
@@ -61,6 +63,18 @@ TAGSOUP_BUILD_DEPENDS=	${JAVALIBDIR}/tagsoup.jar:textp
 TAGSOUP_RUN_DEPENDS=	${TAGSOUP_BUILD_DEPENDS}
 TAGSOUP_VARS=		TAGSOUP_JAR="${JAVALIBDIR}/tagsoup.jar"
 TAGSOUP_VARS_OFF=	TAGSOUP_JAR=no
+
+PLUGIN_CONFIGURE_ENABLE=plugin
+PLUGIN_CONFIGURE_ENV=	MOZILLA_CFLAGS="-I${WRKDIR}/npapi-headers -DXP_UNIX" \
+			MOZILLA_LIBS=" " # needs to be set and non-empty!
+PLUGIN_DISTFILES=	npapi-headers${EXTRACT_SUFX}:npapi
+PLUGIN_MASTER_SITES=	LOCAL/tobik:npapi
+PLUGIN_PORTDOCS=	plugin
+PLUGIN_TEST_TARGET=	plugin-tests
+PLUGIN_USE=		GNOME=glib20
+PLUGIN_USES=		webplugin:native
+PLUGIN_VARS=		WEBPLUGIN_DIR=${PREFIX}/lib \
+			WEBPLUGIN_FILES=IcedTeaPlugin.so
 
 HAMCREST_JAR=	${JAVALIBDIR}/hamcrest.jar
 JUNIT_JAR=	${JAVALIBDIR}/junit.jar

Modified: head/java/icedtea-web/distinfo
==============================================================================
--- head/java/icedtea-web/distinfo	Sat Jul  7 11:08:40 2018	(r474072)
+++ head/java/icedtea-web/distinfo	Sat Jul  7 11:15:43 2018	(r474073)
@@ -1,2 +1,5 @@
+TIMESTAMP = 1529752635
 SHA256 (icedtea-web-1.6.2.tar.gz) = ce67034096d6b960e2b6cfb5c41a7bd6b30eb2ec7f13bf3ecdb477ff6ce69300
 SIZE (icedtea-web-1.6.2.tar.gz) = 1824557
+SHA256 (npapi-headers.tar.gz) = 625d86955aef95c7a0a4c192bb51a1e7833d30c2d53e390d07f97abd835744f8
+SIZE (npapi-headers.tar.gz) = 15637

Modified: head/java/icedtea-web/pkg-plist
==============================================================================
--- head/java/icedtea-web/pkg-plist	Sat Jul  7 11:08:40 2018	(r474072)
+++ head/java/icedtea-web/pkg-plist	Sat Jul  7 11:15:43 2018	(r474073)
@@ -1,6 +1,7 @@
 bin/itweb-javaws
 bin/itweb-policyeditor
 bin/itweb-settings
+%%PLUGIN%%%%WEBPLUGIN_DIR%%/IcedTeaPlugin.so
 man/cs/man1/icedtea-web-plugin.1.gz
 man/cs/man1/icedtea-web.1.gz
 man/cs/man1/itweb-javaws.1.gz
@@ -26,4 +27,5 @@ share/applications/itweb-policyeditor.desktop
 share/applications/itweb-settings.desktop
 %%DATADIR%%/javaws_splash.png
 %%DATADIR%%/netx.jar
+%%PLUGIN%%%%DATADIR%%/plugin.jar
 share/pixmaps/itweb-javaws.png



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201807071115.w67BFhYT059000>