From 5ddbed9a347b68cdc48aa60f963885933631d97e Mon Sep 17 00:00:00 2001 From: Pierrick Koch <pierrick.koch@gmail.com> Date: Tue, 21 Apr 2015 12:17:02 +0200 Subject: [PATCH] [wip/boost-python] introduce boost-python Thanks to Patrick.Bechon@onera ! --- boost-python/DESCR | 5 +++++ boost-python/Makefile | 31 +++++++++++++++++++++++++++++++ boost-python/PLIST | 4 ++++ boost-python/depend.mk | 32 ++++++++++++++++++++++++++++++++ 4 files changed, 72 insertions(+) create mode 100644 boost-python/DESCR create mode 100644 boost-python/Makefile create mode 100644 boost-python/PLIST create mode 100644 boost-python/depend.mk diff --git a/boost-python/DESCR b/boost-python/DESCR new file mode 100644 index 00000000..8c6e1736 --- /dev/null +++ b/boost-python/DESCR @@ -0,0 +1,5 @@ +Boost is a set of free, peer-reviewed, C++ libraries. The emphasis is on +portable libraries which work well with the ISO C++ Standard Library. + +This package adds only the Boost Python library. Other libraries are +available in the boost-libs package. diff --git a/boost-python/Makefile b/boost-python/Makefile new file mode 100644 index 00000000..ef1f0b46 --- /dev/null +++ b/boost-python/Makefile @@ -0,0 +1,31 @@ +# robotpkg Makefile for: wip/boost-python +# Created: Patrick Bechon +# + +BOOST_PACKAGE= python +BOOST_COMMENT= (binary libraries) + +PREFER.boost?= robotpkg +include ../../meta-pkgs/boost/Makefile.common + +BJAM_ARGS+= --with-python +INSTALLATION_DIRS= lib + +include ../../mk/sysdep/python.mk +include ../../devel/boost-jam/depend.mk +include ../../archivers/bzip2/depend.mk +include ../../archivers/zlib/depend.mk +include ../../archivers/pax/depend.mk +include ../../mk/language/c.mk +include ../../mk/robotpkg.mk + +do-configure: + ${RUN}exec >${WRKSRC}/tools/build/v2/site-config.jam; \ + ${ECHO} 'using ${BOOST_TOOLSET} : : ${CXX} ; using python : ${PYTHON_VERSION} ;' + +do-build: bjam-build + @${TRUE} + +do-install: + ${RUN}cd ${WRKSRC}/stage/lib && \ + ${PAX} -rw -p mp libboost* ${PREFIX}/lib diff --git a/boost-python/PLIST b/boost-python/PLIST new file mode 100644 index 00000000..aaf46f11 --- /dev/null +++ b/boost-python/PLIST @@ -0,0 +1,4 @@ +@comment Apr 17 10:35:03 CET 2015 +lib/libboost_python-mt.a +lib/libboost_python-mt.so +lib/libboost_python-mt.so.${BOOST_VERSION} diff --git a/boost-python/depend.mk b/boost-python/depend.mk new file mode 100644 index 00000000..9a690358 --- /dev/null +++ b/boost-python/depend.mk @@ -0,0 +1,32 @@ +# robotpkg Makefile for: wip/boost-python +# Created: Patrick Bechon +# + + +DEPEND_DEPTH:= ${DEPEND_DEPTH}+ +BOOST_PYTHON_DEPEND_MK:= ${BOOST_PYTHON_DEPEND_MK}+ + +ifeq (+,$(DEPEND_DEPTH)) + DEPEND_PKG+= boost-python +endif + +ifeq (+,$(BOOST_PYTHON_DEPEND_MK)) # ----------------------------------- + +DEPEND_USE+= boost-python + +PREFER.boost?= system +PREFER.boost-python?= ${PREFER.boost} + +DEPEND_ABI.boost-python?= boost-python>=1.34.1 +DEPEND_DIR.boost-python?= ../../wip/boost-python + +SYSTEM_SEARCH.boost-python= \ + 'lib/libboost_python-mt.so' + +# For cmake/FindBoost users +CMAKE_ARGS+= '-DBOOST_LIBRARYDIR=${PREFIX.boost-python:=/lib}' + + +endif # BOOST_PYTHON_DEPEND_MK ----------------------------------------- + +DEPEND_DEPTH:= ${DEPEND_DEPTH:+=} -- GitLab