7298
|
1 |
#
|
|
2 |
# CDDL HEADER START
|
|
3 |
#
|
|
4 |
# The contents of this file are subject to the terms of the
|
|
5 |
# Common Development and Distribution License (the "License").
|
|
6 |
# You may not use this file except in compliance with the License.
|
|
7 |
#
|
|
8 |
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
|
|
9 |
# or http://www.opensolaris.org/os/licensing.
|
|
10 |
# See the License for the specific language governing permissions
|
|
11 |
# and limitations under the License.
|
|
12 |
#
|
|
13 |
# When distributing Covered Code, include this CDDL HEADER in each
|
|
14 |
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
|
|
15 |
# If applicable, add the following below this CDDL HEADER, with the
|
|
16 |
# fields enclosed by brackets "[]" replaced with your own identifying
|
|
17 |
# information: Portions Copyright [yyyy] [name of copyright owner]
|
|
18 |
#
|
|
19 |
# CDDL HEADER END
|
|
20 |
|
|
21 |
#
|
|
22 |
# Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
|
|
23 |
#
|
|
24 |
|
|
25 |
COMPILER = gcc
|
|
26 |
BUILD_BITS = 32_and_64
|
|
27 |
include ../../../make-rules/shared-macros.mk
|
|
28 |
|
|
29 |
COMPONENT_NAME= Cython
|
|
30 |
COMPONENT_VERSION= 0.25
|
|
31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
|
|
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
|
|
33 |
COMPONENT_ARCHIVE_HASH= \
|
|
34 |
sha256:c651eeec6bdcb57de59527e8765c9d2c4970c56bf96731893df66dda17aba46b
|
|
35 |
COMPONENT_ARCHIVE_URL= $(call pypi_url)
|
|
36 |
COMPONENT_PROJECT_URL= http://cython.org/
|
|
37 |
COMPONENT_BUGDB= python-mod/cython
|
|
38 |
|
|
39 |
TPNO= 32405
|
|
40 |
|
|
41 |
# Avoid warnings about use of the deprecated NumPy API. Please see
|
|
42 |
# http://docs.cython.org/en/latest/src/reference/compilation.html#configuring-the-c-build
|
|
43 |
# for details.
|
|
44 |
CPPFLAGS += -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION
|
|
45 |
CFLAGS += $(CPPFLAGS)
|
|
46 |
|
|
47 |
include $(WS_MAKE_RULES)/prep.mk
|
|
48 |
include $(WS_MAKE_RULES)/ips.mk
|
|
49 |
include $(WS_MAKE_RULES)/setup.py.mk
|
|
50 |
|
|
51 |
# Since each version of the package delivers the same
|
|
52 |
# files to usr/bin, we need mediation. This is enabled
|
|
53 |
# by making a copy of the script with an appropriate
|
|
54 |
# suffix.
|
|
55 |
COMPONENT_POST_INSTALL_ACTION += \
|
|
56 |
(cd $(PROTO_DIR)/usr/bin ; \
|
|
57 |
if [[ "$(PYTHON_VERSION)" == "2.7" && "$(BITS)" == "64" ]]; then \
|
|
58 |
$(MKDIR) $(PROTO_DIR)/usr/bin/$(MACH64); \
|
|
59 |
for c in cython cythonize cygdb; do \
|
|
60 |
$(MV) $$c $(MACH64)/$$c-$(PYTHON_VERSION) ; \
|
|
61 |
done; \
|
|
62 |
else \
|
|
63 |
for c in cython cythonize cygdb; do \
|
|
64 |
$(MV) $$c $$c-$(PYTHON_VERSION) ; \
|
|
65 |
done; fi )
|
|
66 |
|
|
67 |
|
|
68 |
COMPONENT_TEST_ENV += PREREQ_MAKEFILE=
|
|
69 |
COMPONENT_TEST_DIR = $(SOURCE_DIR)
|
|
70 |
COMPONENT_TEST_CMD = ./runtests.py
|
|
71 |
COMPONENT_TEST_ARGS=
|
|
72 |
|
|
73 |
build: $(BUILD_32_and_64)
|
|
74 |
|
|
75 |
install: $(INSTALL_32_and_64)
|
|
76 |
|
|
77 |
test: $(TEST_32_and_64)
|
|
78 |
|
|
79 |
REQUIRED_PACKAGES += system/library
|
|
80 |
REQUIRED_PACKAGES += developer/debug/gdb
|