David Stes
2024-03-31 8cdd197ba643eb2608c5aab87567625bb9336cee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#
# This file and its contents are supplied under the terms of the
# Common Development and Distribution License ("CDDL"), version 1.0.
# You may only use this file in accordance with the terms of version
# 1.0 of the CDDL.
#
# A full copy of the text of the CDDL should have accompanied this
# source.  A copy of the CDDL is also available via the Internet at
# http://www.illumos.org/license/CDDL.
#
 
#
# Copyright 2017 Alexander Pyhalov
# Copyright 2023 Niklas Poslovski
#
 
include ../../../make-rules/shared-macros.mk
 
COMPONENT_NAME=     icedtea-web
COMPONENT_VERSION=     1.8.8
COMPONENT_SUMMARY=     Java browser plugin and Web Start launcher
COMPONENT_SRC_NAME=     $(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_SRC=        IcedTea-Web-$(COMPONENT_SRC_NAME)
COMPONENT_ARCHIVE=     $(COMPONENT_SRC_NAME).tar.gz
COMPONENT_ARCHIVE_HASH= \
   sha256:f4203a605a3c9c50acdcc6eef4a366b9fdd36d95edcd76bcbfede01107cb5fe6
COMPONENT_ARCHIVE_URL= \
   https://github.com/AdoptOpenJDK/IcedTea-Web/archive/$(COMPONENT_ARCHIVE)
COMPONENT_PROJECT_URL=    http://icedtea.classpath.org/wiki/Main_Page
COMPONENT_FMRI=    web/browser/firefox/plugin/firefox-java
COMPONENT_CLASSIFICATION=    Applications/Plug-ins and Run-times
COMPONENT_LICENSE=    GPLv2
 
TEST_TARGET=$(NO_TESTS)
include $(WS_MAKE_RULES)/common.mk
 
PATH=$(PATH.gnu)
 
CXXFLAGS+=-I$(COMPONENT_DIR)/files
 
COMPONENT_POST_UNPACK_ACTION += ($(GSED) -i -e 's/mozilla-plugin/firefox-plugin/' $(SOURCE_DIR)/acinclude.m4)
COMPONENT_PREP_ACTION += (cd $(@D) && autoreconf -if \
             && cp -f $(COMPONENT_DIR)/files/*.h $(SOURCE_DIR)/plugin/icedteanp/)
 
CONFIGURE_OPTIONS+=        --with-jdk-home=$(JAVA_HOME)
CONFIGURE_OPTIONS+=        --without-rhino
CONFIGURE_OPTIONS+=        --disable-docs
CONFIGURE_OPTIONS+=        --with-itw-libs=BUNDLED
CONFIGURE_OPTIONS+=        --disable-native-plugin
 
# Build dependencies
REQUIRED_PACKAGES += developer/java/openjdk8
REQUIRED_PACKAGES += developer/lang/rustc
 
# Auto-generated dependencies
REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
REQUIRED_PACKAGES += runtime/java/openjdk8
REQUIRED_PACKAGES += system/library