Makefile revision 2818
2400N/A#
2400N/A# CDDL HEADER START
2400N/A#
2400N/A# The contents of this file are subject to the terms of the
2400N/A# Common Development and Distribution License (the "License").
2400N/A# You may not use this file except in compliance with the License.
2400N/A#
2400N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2400N/A# or http://www.opensolaris.org/os/licensing.
2400N/A# See the License for the specific language governing permissions
2400N/A# and limitations under the License.
2400N/A#
2400N/A# When distributing Covered Code, include this CDDL HEADER in each
2400N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2400N/A# If applicable, add the following below this CDDL HEADER, with the
2400N/A# fields enclosed by brackets "[]" replaced with your own identifying
2400N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2400N/A#
2400N/A# CDDL HEADER END
2400N/A#
2400N/A# Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved.
2400N/A#
3817N/Ainclude ../../../make-rules/shared-macros.mk
2400N/A
2400N/ACOMPONENT_NAME= Cheetah
2400N/ACOMPONENT_VERSION= 2.4.4
2400N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2400N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2400N/ACOMPONENT_ARCHIVE_HASH= \
2400N/A sha256:be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550
2400N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
2400N/ACOMPONENT_PROJECT_URL= http://www.cheetahtemplate.org/
2400N/ACOMPONENT_BUGDB= python-mod/cheetah
2400N/A
2400N/A# Syntax issues: not Python 3 ready.
2400N/APYTHON_VERSIONS= 2.7 2.6
2899N/A
2899N/Ainclude $(WS_TOP)/make-rules/prep.mk
3817N/Ainclude $(WS_TOP)/make-rules/setup.py.mk
3817N/Ainclude $(WS_TOP)/make-rules/ips.mk
3817N/A
2400N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2400N/A
2400N/A# Needed to get around a broken /usr/lib/python2.7/config/Makefile
2400N/A# See CR #16837431.
2400N/ALD=$(CC)
2400N/ALDSHARED=$(CC) -G
2400N/APYTHON_ENV += CC="$(CC)"
2400N/APYTHON_ENV += LDSHARED="$(LDSHARED)"
2400N/APYTHON_ENV += LD="$(LD)"
2400N/APYTHON_ENV += CFLAGS="$(CFLAGS)"
2400N/ACOMPONENT_INSTALL_ENV += $(PYTHON_ENV)
2400N/A
2400N/ACOMPONENT_POST_INSTALL_ACTION = \
2400N/A (cd $(PROTO_DIR)/usr/bin ; \
2400N/A $(MV) -f cheetah cheetah-$(PYTHON_VERSION) ; \
2400N/A $(MV) -f cheetah-analyze cheetah-analyze-$(PYTHON_VERSION) ; \
2400N/A $(MV) -f cheetah-compile cheetah-compile-$(PYTHON_VERSION))
2400N/A
4337N/ACOMPONENT_TEST_ARGS= cheetah/Tests/Test.py
4337N/ACOMPONENT_TEST_DIR= $(SOURCE_DIR)
2400N/ACOMPONENT_TEST_ENV= PATH=$(PROTO_DIR)/usr/bin
3817N/ACOMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
3817N/ACOMPONENT_TEST_ENV += PYTHON_VERSION=$(PYTHON_VERSION)
3817N/A
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk