summaryrefslogtreecommitdiff
path: root/devel/boost-python-libs
diff options
context:
space:
mode:
Diffstat (limited to 'devel/boost-python-libs')
-rw-r--r--devel/boost-python-libs/Makefile48
-rw-r--r--devel/boost-python-libs/distinfo3
-rw-r--r--devel/boost-python-libs/pkg-descr8
-rw-r--r--devel/boost-python-libs/pkg-plist3
4 files changed, 62 insertions, 0 deletions
diff --git a/devel/boost-python-libs/Makefile b/devel/boost-python-libs/Makefile
new file mode 100644
index 000000000000..7c43bd8339f9
--- /dev/null
+++ b/devel/boost-python-libs/Makefile
@@ -0,0 +1,48 @@
+# Created by: Alexander Churanov <churanov.port.maintainer@gmail.com>
+# $FreeBSD$
+
+PORTNAME= boost-python-libs
+COMMENT= Framework for interfacing Python and C++
+
+USES+= python
+
+OPTIONS_DEFINE= DEBUG OPTIMIZED_CFLAGS
+
+.include "${.CURDIR}/../boost-all/common.mk"
+
+.include "${.CURDIR}/../boost-all/compiled.mk"
+
+MAKE_ENV+= PYTHON_ROOT="${LOCALBASE}"\
+ PYTHON_VERSION="${PYTHON_VERSION}"\
+ PYTHON_INCLUDES="${PYTHON_INCLUDEDIR}"\
+ PYTHON_LIB_PATH="${PYTHON_LIBDIR}"
+
+LIB_DEPENDS+= libboost_thread.so:devel/boost-libs
+MAKE_ARGS+= --with-python
+ALL_TARGET= stage
+
+BUILD_DEPENDS+= bjam:devel/boost-jam
+
+pre-build:
+ @${ECHO_CMD} "using python : " ${PYTHON_VER} " : " ${PYTHON_CMD} " : " ${PYTHON_INCLUDEDIR} ";" >> ${WRKSRC}/tools/build/src/site-config.jam
+
+do-install:
+ @cd ${WRKSRC}/stage/lib && ${PAX} -rw -p p libboost* ${STAGEDIR}${PREFIX}/lib
+# For some reasons BJAM forget about the links
+ @cd ${WRKSRC}/stage/ && ${FIND} lib -type l | ${PAX} -rw -p p ${STAGEDIR}${PREFIX}
+
+post-install:
+# display pkg-message
+ @${TOUCH} ${PKGMESSAGE}
+ @${CAT} ${PKG_MESSAGE_FILE_THREADS} >> ${PKGMESSAGE}
+ @${ECHO_CMD} >> ${PKGMESSAGE}
+ @${CAT} ${PKG_MESSAGE_FILE_PYTHON} >> ${PKGMESSAGE}
+ @${ECHO_CMD} >> ${PKGMESSAGE}
+ @${REINPLACE_CMD} \
+ -e "s|%%LOCALBASE%%|${LOCALBASE}|g" \
+ -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}
+
+.include <bsd.port.mk>
diff --git a/devel/boost-python-libs/distinfo b/devel/boost-python-libs/distinfo
new file mode 100644
index 000000000000..cf5e1a417b10
--- /dev/null
+++ b/devel/boost-python-libs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1482409991
+SHA256 (boost_1_63_0.tar.bz2) = beae2529f759f6b3bf3f4969a19c2e9d6f0c503edcb2de4a61d1428519fcb3b0
+SIZE (boost_1_63_0.tar.bz2) = 81984414
diff --git a/devel/boost-python-libs/pkg-descr b/devel/boost-python-libs/pkg-descr
new file mode 100644
index 000000000000..1a576fe08cc3
--- /dev/null
+++ b/devel/boost-python-libs/pkg-descr
@@ -0,0 +1,8 @@
+The Boost Python Library is a framework for interfacing Python and
+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
+
+WWW: http://www.boost.org/
diff --git a/devel/boost-python-libs/pkg-plist b/devel/boost-python-libs/pkg-plist
new file mode 100644
index 000000000000..a61020bfa8b5
--- /dev/null
+++ b/devel/boost-python-libs/pkg-plist
@@ -0,0 +1,3 @@
+lib/libboost_python.a
+lib/libboost_python.so
+lib/libboost_python.so.%%BOOST_SHARED_LIB_VER%%