Makefile revision 7296
7296N/A#
7296N/A# CDDL HEADER START
7296N/A#
7296N/A# The contents of this file are subject to the terms of the
7296N/A# Common Development and Distribution License (the "License").
7296N/A# You may not use this file except in compliance with the License.
7296N/A#
7296N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7296N/A# or http://www.opensolaris.org/os/licensing.
7296N/A# See the License for the specific language governing permissions
7296N/A# and limitations under the License.
7296N/A#
7296N/A# When distributing Covered Code, include this CDDL HEADER in each
7296N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7296N/A# If applicable, add the following below this CDDL HEADER, with the
7296N/A# fields enclosed by brackets "[]" replaced with your own identifying
7296N/A# information: Portions Copyright [yyyy] [name of copyright owner]
7296N/A#
7296N/A# CDDL HEADER END
7296N/A
7296N/A#
7296N/A# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
7296N/A#
7296N/A
7296N/ACOMPILER = gcc
7296N/ABUILD_BITS = 32_and_64
7296N/Ainclude ../../../make-rules/shared-macros.mk
7296N/A
7296N/ACOMPONENT_NAME= Cython
7296N/ACOMPONENT_VERSION= 0.25
7296N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7296N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
7296N/ACOMPONENT_ARCHIVE_HASH= \
7296N/A sha256:c651eeec6bdcb57de59527e8765c9d2c4970c56bf96731893df66dda17aba46b
7296N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
7296N/ACOMPONENT_PROJECT_URL= http://cython.org/
7296N/ACOMPONENT_BUGDB= python-mod/cython
7296N/A
7296N/ATPNO= 32405
7296N/A
7296N/A# Avoid warnings about use of the deprecated NumPy API. Please see
7296N/A# http://docs.cython.org/en/latest/src/reference/compilation.html#configuring-the-c-build
7296N/A# for details.
7296N/ACPPFLAGS += -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION
7296N/ACFLAGS += $(CPPFLAGS)
7296N/A
7296N/Ainclude $(WS_MAKE_RULES)/prep.mk
7296N/Ainclude $(WS_MAKE_RULES)/ips.mk
7296N/Ainclude $(WS_MAKE_RULES)/setup.py.mk
7296N/A
7296N/A# Since each version of the package delivers the same
7296N/A# files to usr/bin, we need mediation. This is enabled
7296N/A# by making a copy of the script with an appropriate
7296N/A# suffix.
7296N/ACOMPONENT_POST_INSTALL_ACTION += \
7296N/A (cd $(PROTO_DIR)/usr/bin ; \
7296N/A if [[ "$(PYTHON_VERSION)" == "2.7" && "$(BITS)" == "64" ]]; then \
7296N/A $(MKDIR) $(PROTO_DIR)/usr/bin/$(MACH64); \
7296N/A for c in cython cythonize cygdb; do \
7296N/A $(MV) $$c $(MACH64)/$$c-$(PYTHON_VERSION) ; \
7296N/A done; \
7296N/A else \
7296N/A for c in cython cythonize cygdb; do \
7296N/A $(MV) $$c $$c-$(PYTHON_VERSION) ; \
7296N/A done; fi )
7296N/A
7296N/A
7296N/ACOMPONENT_TEST_ENV += PREREQ_MAKEFILE=
7296N/ACOMPONENT_TEST_DIR = $(SOURCE_DIR)
7296N/ACOMPONENT_TEST_CMD = ./runtests.py
7296N/ACOMPONENT_TEST_ARGS=
7296N/A
7296N/Abuild: $(BUILD_32_and_64)
7296N/A
7296N/Ainstall: $(INSTALL_32_and_64)
7296N/A
7296N/Atest: $(TEST_32_and_64)
7296N/A
7296N/AREQUIRED_PACKAGES += system/library
7296N/AREQUIRED_PACKAGES += developer/debug/gdb