Makefile revision 844
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# CDDL HEADER START
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# The contents of this file are subject to the terms of the
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# Common Development and Distribution License (the "License").
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# You may not use this file except in compliance with the License.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# or http://www.opensolaris.org/os/licensing.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# See the License for the specific language governing permissions
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# and limitations under the License.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# When distributing Covered Code, include this CDDL HEADER in each
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# If applicable, add the following below this CDDL HEADER, with the
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# fields enclosed by brackets "[]" replaced with your own identifying
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# information: Portions Copyright [yyyy] [name of copyright owner]
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# CDDL HEADER END
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz#
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzinclude ../../make-rules/shared-macros.mk
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzCOMPONENT_NAME= beanshell
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzCOMPONENT_VERSION= 2.0b4
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzCOMPONENT_PROJECT_URL= http://www.beanshell.org/
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzCOMPONENT_ARCHIVE_HASH= \
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz sha256:a6f02b46796ed6b6a212cfc2d17e4797212db3206e21a3f4959adb60bddfff5f
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# This should come from http://www.beanshell.org/ however they do not
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# maintain previous versions of archives there anymore. When/if this
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# component is upgraded the download location should revert back to
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# beanshell.org if possible. Note also a fork of beanshell is receiving
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# more attention at the google code repository of late.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzCOMPONENT_ARCHIVE_URL= $(EXTERNAL_ARCHIVE_MIRROR)/$(SOURCE_ARCHIVE)
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzIPS_COMPONENT_VERSION= 2.0
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzinclude ../../make-rules/prep.mk
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzinclude ../../make-rules/ant.mk
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzinclude ../../make-rules/ips.mk
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzCOMPONENT_BUILD_ARGS += -Ddist-dir=${PROTO_DIR}
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzCOMPONENT_BUILD_ARGS += -Djavadoc-dir=${PROTO_DIR}
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzCOMPONENT_BUILD_TARGETS += dist
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# We use the solaris-transform file to pick up files in the prototype area
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# that are not found in the directories we install them to on Solaris.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# Doing this obviates the need to add it's location to each line in the
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# associated beanshell.p5m file.
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzPUBLISH_TRANSFORMS += solaris-transform
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# Needed to pick up scripts/bsh and bshcommands-bshdoc.xml
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzPKG_PROTO_DIRS += $(COMPONENT_DIR)
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzPKG_PROTO_DIRS += $(BUILD_DIR_32)
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz# common targets
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzbuild: $(BUILD_32)
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartzinstall: build
7a364d25fde47aa82704b12b5251bf7fac37f02eschwartz
test: $(NO_TESTS)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk