diff options
Diffstat (limited to 'devel/boost-python/Makefile')
-rw-r--r-- | devel/boost-python/Makefile | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/devel/boost-python/Makefile b/devel/boost-python/Makefile new file mode 100644 index 00000000000..157cd25615a --- /dev/null +++ b/devel/boost-python/Makefile @@ -0,0 +1,39 @@ +# $NetBSD: Makefile,v 1.1 2004/06/06 23:51:37 tv Exp $ +# + +BOOST_PKGNAME_ADD= -python +BJAM_ARGS+= --without-date_time +BJAM_ARGS+= --without-filesystem +BJAM_ARGS+= --without-regex +BJAM_ARGS+= --without-signals +BJAM_ARGS+= --without-test +BJAM_ARGS+= --without-thread +BJAM_ARGS+= -sPYTHON_ROOT=${PREFIX} +BJAM_ARGS+= -sPYTHON_VERSION=${PYVERSSUFFIX} + +# this pkg doesn't support threaded python yet: +BJAM_BUILD+= <threading>single +PYTHON_VERSIONS_INCOMPATIBLE+= 23pth 22pth 21 21pth 20 15 + +COMMENT= Python support for Boost C++ libraries + +.include "../boost/Makefile.common" + +do-configure: + ${CP} -f ${LOCALBASE}/include/boost-1_31/boost/config/user.hpp \ + ${WRKSRC}/boost/config/user.hpp + +do-build: + @cd ${WRKSRC} && ${BJAM_CMD} stage + +do-install: + ${INSTALL_DATA} ${WRKSRC}/boost/config/user.hpp \ + ${PREFIX}/include/boost-1_31/boost/config/thread_user.hpp + ${INSTALL_LIB} ${WRKSRC}/stage/lib/*-1_31.* ${PREFIX}/lib/ + @cd ${WRKSRC}/stage/lib && for f in *-1_31.*; do \ + ${LN} -f ${PREFIX}/lib/$$f \ + ${PREFIX}/lib/`${ECHO} $$f | ${SED} s,-1_31,,`; \ + done + +.include "../../lang/python/application.mk" +.include "../../mk/bsd.pkg.mk" |