From owner-svn-ports-head@freebsd.org Mon Oct 19 22:41:58 2015 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B762FA1810A; Mon, 19 Oct 2015 22:41:58 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 50106889; Mon, 19 Oct 2015 22:41:58 +0000 (UTC) (envelope-from jkim@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id t9JMfumJ074632; Mon, 19 Oct 2015 22:41:56 GMT (envelope-from jkim@FreeBSD.org) Received: (from jkim@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id t9JMfuE7074629; Mon, 19 Oct 2015 22:41:56 GMT (envelope-from jkim@FreeBSD.org) Message-Id: <201510192241.t9JMfuE7074629@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: jkim set sender to jkim@FreeBSD.org using -f From: Jung-uk Kim Date: Mon, 19 Oct 2015 22:41:56 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r399793 - in head/devel/py-pyopencl: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 19 Oct 2015 22:41:58 -0000 Author: jkim Date: Mon Oct 19 22:41:56 2015 New Revision: 399793 URL: https://svnweb.freebsd.org/changeset/ports/399793 Log: - Do not use bundled Boost.Python. - Do not unconditionally set "-O3" to CXXFLAGS. Added: head/devel/py-pyopencl/files/ head/devel/py-pyopencl/files/patch-aksetup__helper.py (contents, props changed) Modified: head/devel/py-pyopencl/Makefile Modified: head/devel/py-pyopencl/Makefile ============================================================================== --- head/devel/py-pyopencl/Makefile Mon Oct 19 21:10:56 2015 (r399792) +++ head/devel/py-pyopencl/Makefile Mon Oct 19 22:41:56 2015 (r399793) @@ -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}pyto 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' \ Added: head/devel/py-pyopencl/files/patch-aksetup__helper.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/devel/py-pyopencl/files/patch-aksetup__helper.py Mon Oct 19 22:41:56 2015 (r399793) @@ -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 +