blob: cfc0b4ca3dd5a18f7c357a55b6096d41d93bc5f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
# $FreeBSD$
PORTNAME= pyopencl
PORTVERSION= 2017.2
PORTREVISION= 1
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= python@FreeBSD.org
COMMENT= Python wrapper for OpenCL
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${LOCALBASE}/include/CL/cl.h:devel/opencl \
${PYTHON_PKGNAMEPREFIX}cffi>=1.1.0:devel/py-cffi \
${PYTHON_PKGNAMEPREFIX}numpy>=0:math/py-numpy
LIB_DEPENDS= libboost_python.so:devel/boost-python-libs \
libOpenCL.so:devel/ocl-icd
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}appdirs>=1.4.0:devel/py-appdirs \
${PYTHON_PKGNAMEPREFIX}cffi>=1.1.0:devel/py-cffi \
${PYTHON_PKGNAMEPREFIX}decorator>=3.2.0:devel/py-decorator \
${PYTHON_PKGNAMEPREFIX}mako>=0.3.6:textproc/py-mako \
${PYTHON_PKGNAMEPREFIX}numpy>=0:math/py-numpy \
${PYTHON_PKGNAMEPREFIX}pytest>=2:devel/py-pytest \
${PYTHON_PKGNAMEPREFIX}pytools>=2017.2:devel/py-pytools \
${PYTHON_PKGNAMEPREFIX}six>=1.9.0:devel/py-six
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" \
USE_SHIPPED_BOOST=False
USE_PYTHON= autoplist distutils
USES= localbase python
do-configure:
@cd ${WRKSRC} && ${PYTHON_CMD} configure.py ${CONFIGURE_ARGS}
post-install:
${FIND} ${STAGEDIR}${PYTHON_SITELIBDIR}/ -name '*.so' -exec ${STRIP_CMD} {} +
.include <bsd.port.mk>
|