components/python/cheetah/Makefile
author John Beck <John.Beck@Oracle.COM>
Fri, 06 Feb 2015 16:51:20 -0800
branchs11-update
changeset 3778 35735ffdda43
parent 3661 47545fb8aed4
child 3789 137fdcb27c8e
permissions -rw-r--r--
PSARC 2014/151 Python 3.4 15819724 SUNBT7202228 python 3.4 18756157 upgrade setuptools to 0.9.6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2891
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     1
#
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     3
#
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     7
#
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    12
#
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    18
#
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    20
#
3661
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2891
diff changeset
    21
# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
2891
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    22
#
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    23
include ../../../make-rules/shared-macros.mk
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    24
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		Cheetah
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    26
COMPONENT_VERSION=	2.4.4
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    27
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    28
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE_HASH=	\
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    30
    sha256:be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_URL=	$(call pypi_url)
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    32
COMPONENT_PROJECT_URL=	http://www.cheetahtemplate.org/
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    33
COMPONENT_BUGDB=	python-mod/cheetah
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    34
3661
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2891
diff changeset
    35
TPNO=			14503
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2891
diff changeset
    36
3778
35735ffdda43 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 3661
diff changeset
    37
# Syntax issues: not Python 3 ready.
35735ffdda43 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 3661
diff changeset
    38
PYTHON_VERSIONS=	2.7 2.6
35735ffdda43 PSARC 2014/151 Python 3.4
John Beck <John.Beck@Oracle.COM>
parents: 3661
diff changeset
    39
2891
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    40
include $(WS_TOP)/make-rules/prep.mk
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    41
include $(WS_TOP)/make-rules/setup.py.mk
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    42
include $(WS_TOP)/make-rules/ips.mk
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    43
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    44
# Needed to get around a broken /usr/lib/python2.7/config/Makefile
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    45
# See CR #16837431.
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    46
LD=$(CC)
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    47
LDSHARED=$(CC) -G
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    48
PYTHON_ENV += CC="$(CC)"
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    49
PYTHON_ENV += LDSHARED="$(LDSHARED)"
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    50
PYTHON_ENV += LD="$(LD)"
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    51
PYTHON_ENV += CFLAGS="$(CFLAGS)"
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    52
COMPONENT_INSTALL_ENV += $(PYTHON_ENV)
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    53
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    54
COMPONENT_POST_INSTALL_ACTION = \
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    55
        (cd $(PROTO_DIR)/usr/bin ; \
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    56
	 $(MV) -f cheetah cheetah-$(PYTHON_VERSION) ; \
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    57
	 $(MV) -f cheetah-analyze cheetah-analyze-$(PYTHON_VERSION) ; \
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    58
	 $(MV) -f cheetah-compile cheetah-compile-$(PYTHON_VERSION))
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    59
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    60
COMPONENT_TEST_ARGS=	cheetah/Tests/Test.py
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    61
COMPONENT_TEST_DIR=	$(SOURCE_DIR)
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    62
COMPONENT_TEST_ENV=	PATH=$(PROTO_DIR)/usr/bin
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    63
COMPONENT_TEST_ENV +=	PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    64
COMPONENT_TEST_ENV +=	PYTHON_VERSION=$(PYTHON_VERSION)
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    65
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    66
# common targets
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    67
build:		$(BUILD_32_and_64)
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    68
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    69
install:	$(INSTALL_32_and_64)
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    70
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    71
test:		$(TEST_32_and_64)
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    72
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    73
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    74
d90819d28c84 PSARC 2013/342 Cheetah 2.4.4 - Python template engine and code generation tool
Niall Power <niall.power@oracle.com>
parents:
diff changeset
    75
include $(WS_TOP)/make-rules/depend.mk