aboutsummaryrefslogtreecommitdiff
path: root/devel/boost-all
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2009-07-28 11:45:08 +0000
committerPav Lucistnik <pav@FreeBSD.org>2009-07-28 11:45:08 +0000
commitd1107bb40e81d1186ea75412dd5d61d736e4d726 (patch)
tree103926d89737f146b97db5255f054196dadab9fc /devel/boost-all
parentd89dccb61e24d9db4b71225fafab4061ae50cf51 (diff)
downloadports-d1107bb40e81d1186ea75412dd5d61d736e4d726.tar.gz
ports-d1107bb40e81d1186ea75412dd5d61d736e4d726.zip
Notes
Diffstat (limited to 'devel/boost-all')
-rw-r--r--devel/boost-all/Makefile45
-rw-r--r--devel/boost-all/common.mk9
-rw-r--r--devel/boost-all/compiled.mk47
-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
-rw-r--r--devel/boost-all/sites.mk5
7 files changed, 136 insertions, 0 deletions
diff --git a/devel/boost-all/Makefile b/devel/boost-all/Makefile
new file mode 100644
index 000000000000..2768d904cb2d
--- /dev/null
+++ b/devel/boost-all/Makefile
@@ -0,0 +1,45 @@
+# New ports collection makefile for: boost-all
+# Date created: March 21 2009
+# Whom: Alexander Churanov <churanov.port.maintainer@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= boost-all
+
+MASTER_SITES= # empty
+DISTFILES= # none
+EXTRACT_ONLY= # empty
+
+COMMENT?= The "meta-port" for boost libraries
+
+OPTIONS= JAM "Boost.Jam - boost.org build utility" on \
+ LIBRARIES "C++ source and shared libraries" on \
+ PYTHON "Boost.Python - interfacing Python and C++" off \
+ DOCS "Documentation & examples" on
+
+NO_BUILD= yes
+
+.include <bsd.port.pre.mk>
+.include "common.mk"
+
+.if !defined(WITHOUT_LIBRARIES)
+RUN_DEPENDS+= ${PREFIX}/lib/libboost_thread.so:${PORTSDIR}/devel/boost-libs
+.endif
+
+.if !defined(WITHOUT_JAM)
+RUN_DEPENDS+= ${PREFIX}/bin/bjam:${PORTSDIR}/devel/boost-jam
+.endif
+
+.if !defined(WITHOUT_PYTHON)
+RUN_DEPENDS+= ${PREFIX}/lib/libboost_python.so:${PORTSDIR}/devel/boost-python-libs
+.endif
+
+.if !defined(WITHOUT_DOCS)
+RUN_DEPENDS+= ${PREFIX}/share/doc/boost/doc/html/index.html:${PORTSDIR}/devel/boost-docs
+.endif
+
+do-install:
+ ${DO_NADA}
+
+.include <bsd.port.post.mk>
diff --git a/devel/boost-all/common.mk b/devel/boost-all/common.mk
new file mode 100644
index 000000000000..a39d4caa87f6
--- /dev/null
+++ b/devel/boost-all/common.mk
@@ -0,0 +1,9 @@
+
+PORTVERSION= 1.39.0
+PORTVERSUFFIX= ${PORTVERSION:C/\.[0-9]+$//}
+DISTNAME= boost_${PORTVERSION:S/./_/g}
+
+CATEGORIES= devel
+MAINTAINER= churanov.port.maintainer@gmail.com
+
+CONFLICTS= boost-python-1* boost-1*
diff --git a/devel/boost-all/compiled.mk b/devel/boost-all/compiled.mk
new file mode 100644
index 000000000000..48ca71ebef95
--- /dev/null
+++ b/devel/boost-all/compiled.mk
@@ -0,0 +1,47 @@
+
+USE_LDCONFIG= yes
+BOOST_SHARED_LIB_VER= 4
+PKGMESSAGE= ${WRKDIR}/pkg-message
+BJAM= bjam
+
+PLIST_SUB= BOOST_SHARED_LIB_VER=${BOOST_SHARED_LIB_VER}
+
+PKG_MESSAGE_FILE_THREADS= ${PORTSDIR}/devel/boost-all/pkg-message.threads
+PKG_MESSAGE_FILE_PYTHON= ${PORTSDIR}/devel/boost-all/pkg-message.python
+
+BOOST_TOOLS= gcc
+
+BJAM_OPTIONS= --layout=system --disable-long-double
+.if defined (WITH_VERBOSE_BUILD)
+BJAM_OPTIONS+= -d2
+.endif
+
+.if defined (WITHOUT_DEBUG)
+BJAM_OPTIONS+= variant=release
+.else
+BJAM_OPTIONS+= variant=debug
+.endif
+
+BJAM_OPTIONS+= threading=multi
+
+# Unless WITH_OPTIMIZED_CFLAGS is defined, the port uses
+# CXXFLAGS as defined by the user (overridng Boost's 'speed'
+# configuration scheme
+BJAM_OPTIONS+= optimization=speed
+.if defined (WITH_OPTIMIZED_CFLAGS)
+BJAM_OPTIONS+= inlining=full
+CXXFLAGS= -O3
+.endif
+
+customize-boost-build:
+# Do the right thing(tm) for pthread support and respect CXX
+ @${REINPLACE_CMD}\
+ -e 's|%%PTHREAD_CFLAGS%%|${PTHREAD_CFLAGS}|'\
+ -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS}|'\
+ -e 's|%%CXX%%|${CXX}|'\
+ -e 's|%%CXXFLAGS%%|${CXXFLAGS}|'\
+ ${WRKSRC}/tools/build/v2/tools/gcc.jam
+
+ @${REINPLACE_CMD}\
+ -e 's|%%PTHREAD_LIBS%%|${PTHREAD_LIBS:S/-//}|'\
+ ${WRKSRC}/tools/build/v2/tools/python.jam
diff --git a/devel/boost-all/pkg-descr b/devel/boost-all/pkg-descr
new file mode 100644
index 000000000000..eb7c35c297ef
--- /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..b020ce2b5ae0
--- /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_LIBS%% to your linker options when
+linking your code.
diff --git a/devel/boost-all/sites.mk b/devel/boost-all/sites.mk
new file mode 100644
index 000000000000..6a05072c69f7
--- /dev/null
+++ b/devel/boost-all/sites.mk
@@ -0,0 +1,5 @@
+
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
+MASTER_SITE_SUBDIR=boost
+
+WRKSRC= ${WRKDIR}/${DISTNAME}