components/beanshell/Makefile
author John Beck <John.Beck@Oracle.COM>
Fri, 13 Jun 2014 12:36:52 -0700
changeset 1948 2d1537e7942d
parent 1434 c782e620dd26
child 3817 30b42c38bbc4
permissions -rw-r--r--
18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
261
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     1
#
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     3
#
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     7
#
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    12
#
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    18
#
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    20
#
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    21
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
261
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    22
#
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    23
include ../../make-rules/shared-macros.mk
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    24
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		beanshell
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	2.0b4
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    28
COMPONENT_PROJECT_URL=	http://www.beanshell.org/
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 313
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	\
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 313
diff changeset
    31
    sha256:a6f02b46796ed6b6a212cfc2d17e4797212db3206e21a3f4959adb60bddfff5f
261
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    32
# This should come from http://www.beanshell.org/ however they do not
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    33
# maintain previous versions of archives there anymore.  When/if this
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    34
# component is upgraded the download location should revert back to
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    35
# beanshell.org if possible.  Note also a fork of beanshell is receiving
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    36
# more attention at the google code repository of late.
313
e30cc0dc4e8b 7053576 canonical source location for beanshell, gcc3, and tidy is changing
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 261
diff changeset
    37
COMPONENT_ARCHIVE_URL=	$(EXTERNAL_ARCHIVE_MIRROR)/$(SOURCE_ARCHIVE)
261
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    38
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    39
COMPONENT_BUGDB=	utility/beanshell
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 800
diff changeset
    40
261
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    41
IPS_COMPONENT_VERSION=	2.0
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    42
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    43
TPNO=			6200
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    44
261
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    45
include ../../make-rules/prep.mk
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    46
include ../../make-rules/ant.mk
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    47
include ../../make-rules/ips.mk
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    48
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    49
COMPONENT_BUILD_ARGS +=	-Ddist-dir=${PROTO_DIR}
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    50
COMPONENT_BUILD_ARGS +=	-Djavadoc-dir=${PROTO_DIR}
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    51
COMPONENT_BUILD_TARGETS +=	dist 
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    52
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    53
# We use the solaris-transform file to pick up files in the prototype area
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    54
# that are not found in the directories we install them to on Solaris.
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    55
# Doing this obviates the need to add it's location to each line in the
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    56
# associated beanshell.p5m file.
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    57
PUBLISH_TRANSFORMS += solaris-transform
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    58
# Needed to pick up scripts/bsh and bshcommands-bshdoc.xml
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    59
PKG_PROTO_DIRS += $(COMPONENT_DIR) 
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    60
PKG_PROTO_DIRS += $(BUILD_DIR_32)
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    61
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    62
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1058
diff changeset
    63
261
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    64
# common targets
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    65
build:		$(BUILD_32)
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    66
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    67
install:	build
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    68
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    69
test:	$(NO_TESTS)
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    70
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    71
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    72
f7fc4962fa91 7045306 migrate beanshell to userland
Kevin Crowe <Kevin.Crowe@oracle.com>
parents:
diff changeset
    73
include ../../make-rules/depend.mk