Makefile revision 2297
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# CDDL HEADER START
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# The contents of this file are subject to the terms of the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Common Development and Distribution License (the "License").
199767f8919635c4928607450d9e0abb932109ceToomas Soome# You may not use this file except in compliance with the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
199767f8919635c4928607450d9e0abb932109ceToomas Soome# or http://www.opensolaris.org/os/licensing.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# See the License for the specific language governing permissions
199767f8919635c4928607450d9e0abb932109ceToomas Soome# and limitations under the License.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# When distributing Covered Code, include this CDDL HEADER in each
199767f8919635c4928607450d9e0abb932109ceToomas Soome# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
199767f8919635c4928607450d9e0abb932109ceToomas Soome# If applicable, add the following below this CDDL HEADER, with the
199767f8919635c4928607450d9e0abb932109ceToomas Soome# fields enclosed by brackets "[]" replaced with your own identifying
199767f8919635c4928607450d9e0abb932109ceToomas Soome# information: Portions Copyright [yyyy] [name of copyright owner]
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# CDDL HEADER END
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
199767f8919635c4928607450d9e0abb932109ceToomas Soome#
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude ../../../make-rules/shared-macros.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_NAME= Cheetah
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_VERSION= 2.4.4
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_ARCHIVE_HASH= \
199767f8919635c4928607450d9e0abb932109ceToomas Soome sha256:be308229f0c1e5e5af4f27d7ee06d90bb19e6af3059794e5fd536a6f29a9b550
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_ARCHIVE_URL= $(call pypi_url)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_PROJECT_URL= http://www.cheetahtemplate.org/
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_BUGDB= python-mod/cheetah
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude $(WS_TOP)/make-rules/prep.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude $(WS_TOP)/make-rules/setup.py.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soomeinclude $(WS_TOP)/make-rules/ips.mk
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas Soome# Needed to get around a broken /usr/lib/python2.7/config/Makefile
199767f8919635c4928607450d9e0abb932109ceToomas Soome# See CR #16837431.
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLD=$(CC)
199767f8919635c4928607450d9e0abb932109ceToomas SoomeLDSHARED=$(CC) -G
199767f8919635c4928607450d9e0abb932109ceToomas SoomePYTHON_ENV += CC="$(CC)"
199767f8919635c4928607450d9e0abb932109ceToomas SoomePYTHON_ENV += LDSHARED="$(LDSHARED)"
199767f8919635c4928607450d9e0abb932109ceToomas SoomePYTHON_ENV += LD="$(LD)"
199767f8919635c4928607450d9e0abb932109ceToomas SoomePYTHON_ENV += CFLAGS="$(CFLAGS)"
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_INSTALL_ENV += $(PYTHON_ENV)
199767f8919635c4928607450d9e0abb932109ceToomas Soome
199767f8919635c4928607450d9e0abb932109ceToomas SoomeCOMPONENT_POST_INSTALL_ACTION = \
199767f8919635c4928607450d9e0abb932109ceToomas Soome (cd $(PROTO_DIR)/usr/bin ; \
199767f8919635c4928607450d9e0abb932109ceToomas Soome $(MV) -f cheetah cheetah-$(PYTHON_VERSION) ; \
$(MV) -f cheetah-analyze cheetah-analyze-$(PYTHON_VERSION) ; \
$(MV) -f cheetah-compile cheetah-compile-$(PYTHON_VERSION))
COMPONENT_TEST_ARGS= cheetah/Tests/Test.py
COMPONENT_TEST_DIR= $(SOURCE_DIR)
COMPONENT_TEST_ENV= PATH=$(PROTO_DIR)/usr/bin
COMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
COMPONENT_TEST_ENV += PYTHON_VERSION=$(PYTHON_VERSION)
# 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