shared-macros.mk: simplify java settings
[oi-userland.git] / components / developer / beanshell / Makefile
blobee1b4756030bd0a1849845178ee392a7ab2cffc4
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
21 # Copyright 2017 Gary Mills
22 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
23 # Copyright 2023 Niklas Poslovski
25 BUILD_STYLE = ant
26 include ../../../make-rules/shared-macros.mk
28 COMPONENT_NAME= beanshell
29 COMPONENT_VERSION= 2.1.1
30 COMPONENT_FMRI= runtime/java/beanshell
31 COMPONENT_SUMMARY= beanshell - a small and embeddable Java source interpreter
32 COMPONENT_DESCRIPTION= BeanShell is a small, free, embeddable Java source interpreter with object scripting language features, written in Java. BeanShell dynamically executes standard Java syntax and extends it with common scripting conveniences such as loose types, commands, and method closures like those in Perl and JavaScript.
33 COMPONENT_CLASSIFICATION=Development/Java
34 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
35 COMPONENT_PROJECT_URL= https://beanshell.github.io
36 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
37 COMPONENT_ARCHIVE_HASH= \
38 sha256:7e50fe51c7a36f595ee5c792a75f37a252f6b4b24cd21b97c5bc2634c2c33a77
39 COMPONENT_ARCHIVE_URL= https://github.com/beanshell/beanshell/archive/$(COMPONENT_VERSION).tar.gz
40 COMPONENT_LICENSE= LGPLv2.1, SPL
42 include $(WS_MAKE_RULES)/common.mk
44 COMPONENT_BUILD_ARGS = -Ddist-dir=${PROTO_DIR}
45 COMPONENT_BUILD_ARGS += -Djavadoc-dir=${PROTO_DIR}
46 COMPONENT_BUILD_TARGETS += dist
48 # We use the solaris-transform file to pick up files in the prototype area
49 # that are not found in the directories we install them to on Solaris.
50 # Doing this obviates the need to add it's location to each line in the
51 # associated beanshell.p5m file.
52 PUBLISH_TRANSFORMS += solaris-transform
53 # Needed to pick up scripts/bsh and bshcommands-bshdoc.xml
54 PKG_PROTO_DIRS += $(COMPONENT_DIR)
55 PKG_PROTO_DIRS += $(BUILD_DIR_64)
57 # Manually added dependencies
58 REQUIRED_PACKAGES += runtime/java/openjdk8
60 # Auto-generated dependencies
61 REQUIRED_PACKAGES += shell/ksh93