summaryrefslogtreecommitdiff
path: root/devel/boost-all
diff options
context:
space:
mode:
Diffstat (limited to 'devel/boost-all')
-rw-r--r--devel/boost-all/Makefile23
-rw-r--r--devel/boost-all/common.mk12
-rw-r--r--devel/boost-all/compiled.mk46
-rw-r--r--devel/boost-all/pkg-descr18
-rw-r--r--devel/boost-all/pkg-message.python8
-rw-r--r--devel/boost-all/pkg-message.threads4
6 files changed, 111 insertions, 0 deletions
diff --git a/devel/boost-all/Makefile b/devel/boost-all/Makefile
new file mode 100644
index 000000000000..20afde0070e5
--- /dev/null
+++ b/devel/boost-all/Makefile
@@ -0,0 +1,23 @@
+# Created by: Alexander Churanov <churanov.port.maintainer@gmail.com>
+# $FreeBSD$
+
+PORTNAME= boost-all
+
+USES= metaport
+
+COMMENT?= The "meta-port" for boost libraries
+
+OPTIONS_DEFINE= JAM LIBRARIES PYTHON DOCS
+OPTIONS_DEFAULT= JAM LIBRARIES
+JAM_DESC= Boost.Jam - Build tool from the boost.org
+LIBRARIES_DESC= Free portable C++ libraries
+PYTHON_DESC= Boost.Python - interfacing Python and C++
+
+.include "common.mk"
+
+LIBRARIES_RUN_DEPENDS= ${LOCALBASE}/lib/libboost_thread.so:devel/boost-libs
+JAM_RUN_DEPENDS= ${LOCALBASE}/bin/bjam:devel/boost-jam
+PYTHON_RUN_DEPENDS= ${LOCALBASE}/lib/libboost_python.so:devel/boost-python-libs
+DOCS_RUN_DEPENDS= ${LOCALBASE}/share/doc/boost/doc/html/index.html:devel/boost-docs
+
+.include <bsd.port.mk>
diff --git a/devel/boost-all/common.mk b/devel/boost-all/common.mk
new file mode 100644
index 000000000000..e65578f0c892
--- /dev/null
+++ b/devel/boost-all/common.mk
@@ -0,0 +1,12 @@
+
+PORTVERSION= 1.63.0
+PORTVERSUFFIX= ${PORTVERSION:C/\.[0-9]+$//}
+DISTNAME= boost_${PORTVERSION:S/./_/g}
+
+CATEGORIES= devel
+MAINTAINER= office@FreeBSD.org
+
+CONFLICTS+= boost-python-1* boost-1*
+MASTER_SITES= SF/boost/boost/${PORTVERSION}
+
+USES+= tar:bzip2
diff --git a/devel/boost-all/compiled.mk b/devel/boost-all/compiled.mk
new file mode 100644
index 000000000000..5e918749e6ca
--- /dev/null
+++ b/devel/boost-all/compiled.mk
@@ -0,0 +1,46 @@
+USE_LDCONFIG= yes
+PKGMESSAGE= ${WRKDIR}/pkg-message
+MAKE_CMD= bjam
+MAKEFILE= #
+MAKE_FLAGS= #
+ALL_TARGET= stage
+USES+= compiler:features
+
+PLIST_SUB+= BOOST_SHARED_LIB_VER=${PORTVERSION}
+
+PKG_MESSAGE_FILE_THREADS= ${PORTSDIR}/devel/boost-all/pkg-message.threads
+PKG_MESSAGE_FILE_PYTHON= ${PORTSDIR}/devel/boost-all/pkg-message.python
+
+MAKE_ARGS= --layout=system \
+ --prefix=${PREFIX} \
+ -d2
+
+# Our compiler-flags will be added AFTER those set by bjam. We remove
+# the optimization level, because Boost sets it itself (to -O3 in case
+# of gcc/g++):
+MAKE_ARGS+= cxxflags="${CXXFLAGS:N-O*}" cflags="${CFLAGS:N-O*}"
+
+MAKE_ARGS+= --toolset=${CHOSEN_COMPILER_TYPE} \
+ ${_MAKE_JOBS}
+
+DEBUG_MAKE_ARGS= debug
+DEBUG_MAKE_ARGS_OFF= release
+
+MAKE_ARGS+= threading=multi \
+ link=shared,static
+
+MAKE_ARGS+= optimization=speed
+OPTIMIZED_CFLAGS_MAKE_ARGS= inlining=full
+
+# ccache build fails when using precompiled headers, on a cached build.
+#
+# base gcc 4.2.1 fails when using precompiled headers on 11.0+ kernel.
+# https://lists.freebsd.org/pipermail/svn-src-all/2015-March/101722.html
+MAKE_ARGS+= pch=off
+
+post-patch:
+.if defined(USE_BINUTILS)
+ @${ECHO} "using ${CHOSEN_COMPILER_TYPE} : : ${CXX} : <linkflags>-B${LOCALBASE}/bin ;" >> ${WRKSRC}/tools/build/src/user-config.jam
+.else
+ @${ECHO} "using ${CHOSEN_COMPILER_TYPE} : : ${CXX} ;" >> ${WRKSRC}/tools/build/src/user-config.jam
+.endif
diff --git a/devel/boost-all/pkg-descr b/devel/boost-all/pkg-descr
new file mode 100644
index 000000000000..9b9d6575fb35
--- /dev/null
+++ b/devel/boost-all/pkg-descr
@@ -0,0 +1,18 @@
+This is a meta-port for boost libraries, depends on all of them.
+
+Boost provides free peer-reviewed portable C++ source libraries.
+
+The emphasis is on libraries that work well with the C++ Standard
+Library. Boost libraries are intended to be widely useful, and usable
+across a broad spectrum of applications. The Boost license encourages
+both commercial and non-commercial use.
+
+The goal is to establish "existing practice" and provide reference
+implementations so that Boost libraries are suitable for eventual
+standardization. Ten Boost libraries are already included in the C++
+Standards Committee's Library Technical Report (TR1) and will be in
+the new C++0x Standard now being finalized. C++0x will also include
+several more Boost libraries in addition to those from TR1. More Boost
+libraries are proposed for TR2.
+
+WWW: http://www.boost.org/
diff --git a/devel/boost-all/pkg-message.python b/devel/boost-all/pkg-message.python
new file mode 100644
index 000000000000..8e065b92275c
--- /dev/null
+++ b/devel/boost-all/pkg-message.python
@@ -0,0 +1,8 @@
+You have built the Boost.Python library. You have to add the following
+options when building your own code:
+
+Compiler options:
+ -I%%PYTHON_INCLUDEDIR%% -I%%LOCALBASE%%/include
+
+Linker options:
+ -L%%PYTHON_LIBDIR%% -L%%LOCALBASE%%/lib -lboost_python -l%%PYTHON_VERSION%%
diff --git a/devel/boost-all/pkg-message.threads b/devel/boost-all/pkg-message.threads
new file mode 100644
index 000000000000..a25279cd13f8
--- /dev/null
+++ b/devel/boost-all/pkg-message.threads
@@ -0,0 +1,4 @@
+You have built the Boost library with thread support.
+
+Don't forget to add -pthread to your linker options when
+linking your code.