summaryrefslogtreecommitdiff
path: root/math/py-numpy/files
diff options
context:
space:
mode:
authorOlivier Duchateau <olivierd@FreeBSD.org>2016-06-28 03:34:54 +0000
committerOlivier Duchateau <olivierd@FreeBSD.org>2016-06-28 03:34:54 +0000
commit0fb001923953dfddb970888515b1b041afa4a05a (patch)
tree659d3a074e5a061612fb185f409ae16f9fb25773 /math/py-numpy/files
parent- Pass maintainership to submitter (diff)
- Update to 1.11.1
- Adjust dependencies, 'numpy/core/multiarray.so' is also linked to math/openblas (reported by QA script) - Add patches in order to detect 'sys/endian.h' header
Notes
Notes: svn path=/head/; revision=417692
Diffstat (limited to 'math/py-numpy/files')
-rw-r--r--math/py-numpy/files/patch-numpy_core_include_numpy_npy__endian.h11
-rw-r--r--math/py-numpy/files/patch-numpy_core_setup.py11
2 files changed, 22 insertions, 0 deletions
diff --git a/math/py-numpy/files/patch-numpy_core_include_numpy_npy__endian.h b/math/py-numpy/files/patch-numpy_core_include_numpy_npy__endian.h
new file mode 100644
index 000000000000..91783ad5441f
--- /dev/null
+++ b/math/py-numpy/files/patch-numpy_core_include_numpy_npy__endian.h
@@ -0,0 +1,11 @@
+--- numpy/core/include/numpy/npy_endian.h.orig 2016-06-18 16:15:37 UTC
++++ numpy/core/include/numpy/npy_endian.h
+@@ -8,7 +8,7 @@
+
+ #ifdef NPY_HAVE_ENDIAN_H
+ /* Use endian.h if available */
+- #include <endian.h>
++ #include <sys/endian.h>
+
+ #if defined(BYTE_ORDER) && defined(BIG_ENDIAN) && defined(LITTLE_ENDIAN)
+ #define NPY_BYTE_ORDER BYTE_ORDER
diff --git a/math/py-numpy/files/patch-numpy_core_setup.py b/math/py-numpy/files/patch-numpy_core_setup.py
new file mode 100644
index 000000000000..5178eaf60163
--- /dev/null
+++ b/math/py-numpy/files/patch-numpy_core_setup.py
@@ -0,0 +1,11 @@
+--- numpy/core/setup.py.orig 2016-06-25 23:59:40 UTC
++++ numpy/core/setup.py
+@@ -268,7 +268,7 @@ def check_types(config_cmd, ext, build_d
+ raise SystemError(
+ "Cannot compile 'Python.h'. Perhaps you need to "
+ "install python-dev|python-devel.")
+- res = config_cmd.check_header("endian.h")
++ res = config_cmd.check_header("sys/endian.h")
+ if res:
+ private_defines.append(('HAVE_ENDIAN_H', 1))
+ public_defines.append(('NPY_HAVE_ENDIAN_H', 1))