components/antlr/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Sat, 01 Dec 2012 06:37:18 -0800
changeset 1068 0b7caaf07429
parent 1058 34d7aaa03423
child 1303 79b691ffbda3
permissions -rw-r--r--
15941549 Move procmail from the FOSS consolidation into Userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		antlr
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	2.7.7
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://www.antlr.org/
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
    sha256:853aeb021aef7586bda29e74a6b03006bcb565a755c86b66032d8ec31b67dbb9
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://www.antlr2.org/download/$(COMPONENT_ARCHIVE)
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 1035
diff changeset
    36
COMPONENT_BUGDB=	java-class/antlr
1035
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
# Use version of Java defined in ../../make-rules/shared-macros.mk
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
PATH=$(SPRO_VROOT)/bin:$(JAVA_HOME)/bin:/usr/bin
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
include ../../make-rules/prep.mk
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
include ../../make-rules/configure.mk
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
include ../../make-rules/ips.mk
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
PATCH_LEVEL =		0
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
CONFIGURE_OPTIONS +=	--without-examples
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    49
# pkgdepend doesn't like the first line of a Python script to be:
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    50
# '#!/usr/bin/env python' so turn it into '#!/usr/bin/python2.6'
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    51
COMPONENT_POST_CONFIGURE_ACTION = \
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    52
	$(GSED) -i -e 's/env python/python2.6/' \
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    53
		$(BUILD_DIR_32)/scripts/pyantlr.sh
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    54
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    55
COMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    56
COMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    57
COMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    58
COMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
# Needed to find the antlr man page.
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
PKG_PROTO_DIRS +=	$(COMPONENT_DIR)/files
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    63
COMPONENT_TEST_TARGETS = test
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    64
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
# common targets
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    66
build:          $(BUILD_32)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    67
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    68
install:        $(INSTALL_32)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    69
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    70
test:           $(TEST_32)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    71
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    72
BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    73
ffa1c1456e97 7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    74
include ../../make-rules/depend.mk