diff --git a/devel/Makefile b/devel/Makefile index 2e50899e749a..e7b757c83ed8 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -196,6 +196,7 @@ SUBDIR += boost-jam SUBDIR += boost-libs SUBDIR += boost-python-libs + SUBDIR += boost-python3-libs SUBDIR += boost_build SUBDIR += bossa SUBDIR += bouml-doc diff --git a/devel/boost-python-libs/Makefile b/devel/boost-python-libs/Makefile index 7c43bd8339f9..a5de7a423fc7 100644 --- a/devel/boost-python-libs/Makefile +++ b/devel/boost-python-libs/Makefile @@ -1,10 +1,10 @@ # Created by: Alexander Churanov # $FreeBSD$ -PORTNAME= boost-python-libs -COMMENT= Framework for interfacing Python and C++ +PORTNAME?= boost-python-libs +COMMENT?= Framework for interfacing Python 2 and C++ -USES+= python +USES?= python:2.7 OPTIONS_DEFINE= DEBUG OPTIMIZED_CFLAGS @@ -43,6 +43,6 @@ post-install: -e "s|%%PYTHON_INCLUDEDIR%%|${PYTHON_INCLUDEDIR}|g" \ -e "s|%%PYTHON_LIBDIR%%|${PYTHON_LIBDIR}|g" \ -e "s|%%PYTHON_VERSION%%|${PYTHON_VERSION}|g" ${PKGMESSAGE} - @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libboost_python.so.${PORTVERSION} + @${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/libboost_python*.so.${PORTVERSION} .include diff --git a/devel/boost-python-libs/pkg-descr b/devel/boost-python-libs/pkg-descr index 1a576fe08cc3..bdf180b5ce1a 100644 --- a/devel/boost-python-libs/pkg-descr +++ b/devel/boost-python-libs/pkg-descr @@ -3,6 +3,7 @@ C++. It allows you to quickly and seamlessly expose C++ classes functions and objects to Python, and vice-versa, using no special tools -- just your C++ compiler. -The Boost.Pyste code generator resides in a separate port: devel/boost-pyste +The python 2 port is called boost-python-libs +The python 3 port is called boost-python3-libs WWW: http://www.boost.org/ diff --git a/devel/boost-python-libs/pkg-plist b/devel/boost-python-libs/pkg-plist index a61020bfa8b5..a246a6f023f8 100644 --- a/devel/boost-python-libs/pkg-plist +++ b/devel/boost-python-libs/pkg-plist @@ -1,3 +1,6 @@ -lib/libboost_python.a -lib/libboost_python.so -lib/libboost_python.so.%%BOOST_SHARED_LIB_VER%% +%%PYTHON2%%lib/libboost_python.a +%%PYTHON2%%lib/libboost_python.so +%%PYTHON2%%lib/libboost_python.so.%%BOOST_SHARED_LIB_VER%% +%%PYTHON3%%lib/libboost_python3.a +%%PYTHON3%%lib/libboost_python3.so +%%PYTHON3%%lib/libboost_python3.so.%%BOOST_SHARED_LIB_VER%% diff --git a/devel/boost-python3-libs/Makefile b/devel/boost-python3-libs/Makefile new file mode 100644 index 000000000000..e58fc6b765f3 --- /dev/null +++ b/devel/boost-python3-libs/Makefile @@ -0,0 +1,10 @@ +# $FreeBSD$ + +PORTNAME= boost-python3-libs +COMMENT= Framework for interfacing Python 3 and C++ + +USES= python:3.3 + +MASTERDIR= ${.CURDIR}/../../devel/boost-python-libs + +.include "${MASTERDIR}/Makefile"