Makefile revision 3661
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER START
f0aad5341752aefe5059832f6cf3abc3283c6e16Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# or http://www.opensolaris.org/os/licensing.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# See the License for the specific language governing permissions
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# and limitations under the License.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
cd32f419a8a5432fbb139f56ee73cbf68b9350ccTinderbox User# If applicable, add the following below this CDDL HEADER, with the
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# fields enclosed by brackets "[]" replaced with your own identifying
9b469e3c59015b1a4899c9d8395168126fe094fdAutomatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# CDDL HEADER END
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews#
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../make-rules/shared-macros.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_NAME= beanshell
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_VERSION= 2.0b4
9b469e3c59015b1a4899c9d8395168126fe094fdAutomatic UpdaterCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9b469e3c59015b1a4899c9d8395168126fe094fdAutomatic UpdaterCOMPONENT_PROJECT_URL= http://www.beanshell.org/
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_ARCHIVE_HASH= \
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews sha256:a6f02b46796ed6b6a212cfc2d17e4797212db3206e21a3f4959adb60bddfff5f
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# This should come from http://www.beanshell.org/ however they do not
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# maintain previous versions of archives there anymore. When/if this
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# component is upgraded the download location should revert back to
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# beanshell.org if possible. Note also a fork of beanshell is receiving
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# more attention at the google code repository of late.
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_ARCHIVE_URL= $(EXTERNAL_ARCHIVE_MIRROR)/$(SOURCE_ARCHIVE)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserCOMPONENT_BUGDB= utility/beanshell
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserIPS_COMPONENT_VERSION= 2.0
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserTPNO= 6200
7e71f05d8643aca84914437c900cb716444507e4Tinderbox User
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox Userinclude ../../make-rules/prep.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsinclude ../../make-rules/ant.mk
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinclude ../../make-rules/ips.mk
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsCOMPONENT_BUILD_ARGS += -Ddist-dir=${PROTO_DIR}
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCOMPONENT_BUILD_ARGS += -Djavadoc-dir=${PROTO_DIR}
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCOMPONENT_BUILD_TARGETS += dist
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# We use the solaris-transform file to pick up files in the prototype area
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# that are not found in the directories we install them to on Solaris.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# Doing this obviates the need to add it's location to each line in the
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# associated beanshell.p5m file.
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark AndrewsPUBLISH_TRANSFORMS += solaris-transform
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User# Needed to pick up scripts/bsh and bshcommands-bshdoc.xml
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox UserPKG_PROTO_DIRS += $(COMPONENT_DIR)
7e71f05d8643aca84914437c900cb716444507e4Tinderbox UserPKG_PROTO_DIRS += $(BUILD_DIR_32)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews# common targets
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewsbuild: $(BUILD_32)
fd2597f75693a2279fdf588bd40dfe2407c42028Tinderbox User
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinstall: build
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrewstest: $(NO_TESTS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
5a4557e8de2951a2796676b5ec4b6a90caa5be14Mark Andrews
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinclude ../../make-rules/depend.mk
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt