mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
- Do not use bundled Boost.Python.
- Do not unconditionally set "-O3" to CXXFLAGS.
This commit is contained in:
parent
95e25b27ad
commit
c844a53eab
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=399793
@ -2,6 +2,7 @@
|
||||
|
||||
PORTNAME= pyopencl
|
||||
PORTVERSION= 2015.1
|
||||
PORTREVISION= 1
|
||||
CATEGORIES= devel python
|
||||
MASTER_SITES= CHEESESHOP
|
||||
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
||||
@ -13,7 +14,8 @@ LICENSE= MIT
|
||||
|
||||
BUILD_DEPENDS= ${LOCALBASE}/include/CL/cl.h:${PORTSDIR}/devel/opencl \
|
||||
${PYTHON_PKGNAMEPREFIX}numpy>0:${PORTSDIR}/math/py-numpy
|
||||
LIB_DEPENDS= libOpenCL.so:${PORTSDIR}/devel/ocl-icd
|
||||
LIB_DEPENDS= libboost_python.so:${PORTSDIR}/devel/boost-python-libs \
|
||||
libOpenCL.so:${PORTSDIR}/devel/ocl-icd
|
||||
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytools>0:${PORTSDIR}/devel/py-pytools \
|
||||
${PYTHON_PKGNAMEPREFIX}numpy>0:${PORTSDIR}/math/py-numpy \
|
||||
${PYTHON_PKGNAMEPREFIX}mako>0:${PORTSDIR}/textproc/py-mako
|
||||
@ -21,7 +23,15 @@ RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytools>0:${PORTSDIR}/devel/py-pytools \
|
||||
USE_PYTHON= autoplist distutils
|
||||
USES= python
|
||||
|
||||
CPPFLAGS+= -isystem ${LOCALBASE}/include
|
||||
CONFIGURE_ARGS= --boost-inc-dir="${LOCALBASE}/include" \
|
||||
--boost-lib-dir="${LOCALBASE}/lib" \
|
||||
--boost-python-libname=boost_python \
|
||||
--cl-inc-dir="${LOCALBASE}/include" \
|
||||
--cl-lib-dir="${LOCALBASE}/lib" \
|
||||
--no-use-shipped-boost
|
||||
|
||||
do-configure:
|
||||
@cd ${WRKSRC} && ${PYTHON_CMD} configure.py ${CONFIGURE_ARGS}
|
||||
|
||||
post-install:
|
||||
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME} -name '*.so' \
|
||||
|
11
devel/py-pyopencl/files/patch-aksetup__helper.py
Normal file
11
devel/py-pyopencl/files/patch-aksetup__helper.py
Normal file
@ -0,0 +1,11 @@
|
||||
--- aksetup_helper.py.orig 2014-05-26 05:39:30 UTC
|
||||
+++ aksetup_helper.py
|
||||
@@ -131,7 +131,7 @@ def get_config(schema=None, warn_about_n
|
||||
return expand_options(schema.read_config())
|
||||
|
||||
|
||||
-def hack_distutils(debug=False, fast_link=True, what_opt=3):
|
||||
+def hack_distutils(debug=False, fast_link=True, what_opt=None):
|
||||
# hack distutils.sysconfig to eliminate debug flags
|
||||
# stolen from mpi4py
|
||||
|
Loading…
Reference in New Issue
Block a user