author | Rich Burridge <rich.burridge@oracle.com> |
Thu, 23 Feb 2017 13:46:52 -0800 | |
changeset 7687 | 1093e2a9adbd |
parent 7478 | 1f0889220ac6 |
permissions | -rw-r--r-- |
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 |
# |
|
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7478
diff
changeset
|
22 |
# Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved. |
7298 | 23 |
# |
24 |
||
25 |
COMPILER = gcc |
|
26 |
BUILD_BITS = 32_and_64 |
|
27 |
include ../../../make-rules/shared-macros.mk |
|
28 |
||
29 |
COMPONENT_NAME= Cython |
|
7478
1f0889220ac6
25171936 Update Cython to 0.25.1
jmcp <James.McPherson@oracle.com>
parents:
7298
diff
changeset
|
30 |
COMPONENT_VERSION= 0.25.1 |
7298 | 31 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
32 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
|
33 |
COMPONENT_ARCHIVE_HASH= \ |
|
7478
1f0889220ac6
25171936 Update Cython to 0.25.1
jmcp <James.McPherson@oracle.com>
parents:
7298
diff
changeset
|
34 |
sha256:e0941455769335ec5afb17dee36dc3833b7edc2ae20a8ed5806c58215e4b6669 |
7298 | 35 |
COMPONENT_ARCHIVE_URL= $(call pypi_url) |
36 |
COMPONENT_PROJECT_URL= http://cython.org/ |
|
37 |
COMPONENT_BUGDB= python-mod/cython |
|
7687
1093e2a9adbd
25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents:
7478
diff
changeset
|
38 |
COMPONENT_ANITYA_ID= 12679 |
7298 | 39 |
|
7478
1f0889220ac6
25171936 Update Cython to 0.25.1
jmcp <James.McPherson@oracle.com>
parents:
7298
diff
changeset
|
40 |
TPNO= 32538 |
7298 | 41 |
|
42 |
# Avoid warnings about use of the deprecated NumPy API. Please see |
|
43 |
# http://docs.cython.org/en/latest/src/reference/compilation.html#configuring-the-c-build |
|
44 |
# for details. |
|
45 |
CPPFLAGS += -DNPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION |
|
46 |
CFLAGS += $(CPPFLAGS) |
|
47 |
||
48 |
include $(WS_MAKE_RULES)/prep.mk |
|
49 |
include $(WS_MAKE_RULES)/ips.mk |
|
50 |
include $(WS_MAKE_RULES)/setup.py.mk |
|
51 |
||
52 |
# Since each version of the package delivers the same |
|
53 |
# files to usr/bin, we need mediation. This is enabled |
|
54 |
# by making a copy of the script with an appropriate |
|
55 |
# suffix. |
|
56 |
COMPONENT_POST_INSTALL_ACTION += \ |
|
57 |
(cd $(PROTO_DIR)/usr/bin ; \ |
|
58 |
if [[ "$(PYTHON_VERSION)" == "2.7" && "$(BITS)" == "64" ]]; then \ |
|
59 |
$(MKDIR) $(PROTO_DIR)/usr/bin/$(MACH64); \ |
|
60 |
for c in cython cythonize cygdb; do \ |
|
61 |
$(MV) $$c $(MACH64)/$$c-$(PYTHON_VERSION) ; \ |
|
62 |
done; \ |
|
63 |
else \ |
|
64 |
for c in cython cythonize cygdb; do \ |
|
65 |
$(MV) $$c $$c-$(PYTHON_VERSION) ; \ |
|
66 |
done; fi ) |
|
67 |
||
68 |
||
69 |
COMPONENT_TEST_ENV += PREREQ_MAKEFILE= |
|
70 |
COMPONENT_TEST_DIR = $(SOURCE_DIR) |
|
71 |
COMPONENT_TEST_CMD = ./runtests.py |
|
72 |
COMPONENT_TEST_ARGS= |
|
73 |
||
74 |
build: $(BUILD_32_and_64) |
|
75 |
||
76 |
install: $(INSTALL_32_and_64) |
|
77 |
||
78 |
test: $(TEST_32_and_64) |
|
79 |
||
80 |
REQUIRED_PACKAGES += system/library |
|
81 |
REQUIRED_PACKAGES += developer/debug/gdb |