author | Norm Jacobs <Norm.Jacobs@Oracle.COM> |
Mon, 05 Nov 2012 14:07:04 -0800 | |
changeset 1038 | 3b4d8f56a1bf |
parent 1035 | ffa1c1456e97 |
child 1058 | 34d7aaa03423 |
permissions | -rw-r--r-- |
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) |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
36 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
37 |
# 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
|
38 |
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
|
39 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
40 |
include ../../make-rules/prep.mk |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
41 |
include ../../make-rules/configure.mk |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
42 |
include ../../make-rules/ips.mk |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
43 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
44 |
PATCH_LEVEL = 0 |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
45 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
46 |
CONFIGURE_OPTIONS += --without-examples |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
47 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
48 |
# 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
|
49 |
# '#!/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
|
50 |
COMPONENT_POST_CONFIGURE_ACTION = \ |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
51 |
$(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
|
52 |
$(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
|
53 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
54 |
COMPONENT_INSTALL_ARGS += prefix=$(PROTOUSRDIR) |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
55 |
COMPONENT_INSTALL_ARGS += libdir=$(PROTOUSRLIBDIR) |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
56 |
COMPONENT_INSTALL_ARGS += bindir=$(PROTOUSRBINDIR) |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
57 |
COMPONENT_INSTALL_ARGS += sbindir=$(PROTOUSRSBINDIR) |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
58 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
59 |
# 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
|
60 |
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
|
61 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
62 |
COMPONENT_TEST_TARGETS = test |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
63 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
64 |
# common targets |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
65 |
build: $(BUILD_32) |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
66 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
67 |
install: $(INSTALL_32) |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
68 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
69 |
test: $(TEST_32) |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
70 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
71 |
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
72 |
|
ffa1c1456e97
7204867 Move antlr from the FOSS consolidation into Userland
Rich Burridge <rich.burridge@oracle.com>
parents:
diff
changeset
|
73 |
include ../../make-rules/depend.mk |