Import boost 1.33.1

Free peer-reviewed portable C++ source libraries

From Deanna Phillips <deanna@sdf.lonestar.org>
with work from me, robert@ and kurt@
This commit is contained in:
wilfried 2006-11-05 19:20:41 +00:00
parent 3b19f50051
commit 4aa36ec4b0
16 changed files with 3946 additions and 0 deletions

75
devel/boost/Makefile Normal file
View File

@ -0,0 +1,75 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/11/05 19:20:41 wilfried Exp $
COMMENT= "free peer-reviewed portable C++ source libraries"
VERSION= 1.33.1
DISTNAME= boost_${VERSION:S/./_/g}
PKGNAME= boost-${VERSION}
SHARED_LIBS= boost_date_time 0.0 \
boost_date_time-mt 0.0 \
boost_filesystem 0.0 \
boost_filesystem-mt 0.0 \
boost_iostreams 0.0 \
boost_iostreams-mt 0.0 \
boost_prg_exec_monitor 0.0 \
boost_prg_exec_monitor-mt 0.0 \
boost_program_options 0.0 \
boost_program_options-mt 0.0 \
boost_regex 0.0 \
boost_regex-mt 0.0 \
boost_serialization 0.0 \
boost_serialization-mt 0.0 \
boost_signals 0.0 \
boost_signals-mt 0.0 \
boost_test_exec_monitor 0.0 \
boost_test_exec_monitor-mt 0.0 \
boost_thread-mt 0.0 \
boost_unit_test_framework 0.0 \
boost_unit_test_framework-mt 0.0
CATEGORIES= devel
HOMEPAGE= http://www.boost.org/
MAINTAINER= Deanna Phillips <deanna@sdf.lonestar.org>
# MIT-like
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= z
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=boost/}
MAKE_ENV= GCC="${CC}" GXX="${CXX}"
REGRESS_TARGET= check
do-configure:
@cd ${WRKSRC}/libs/config && \
${SETENV} ${SCRIPTS_ENV} ${SH} ./configure && \
cp user.hpp ${WRKSRC}/boost/config
@cd ${WRKSRC} && ${SETENV} ${SCRIPTS_ENV} ${SH} ./configure \
--without-libraries=python
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/tools/build/jam_src/bin.*/bjam \
${PREFIX}/bin
find ${WRKSRC}/bin/boost/libs -name "libboost*" -type f \
-exec ${INSTALL_DATA} \{\} ${PREFIX}/lib \;
cd ${PREFIX}/lib && \
for LIBS in libboost*; do \
mv $$LIBS \
`echo $$LIBS | perl -pi -e "s,-gcc(-mt)?(-d)?-${VERSION:S/./_/g},\1\2,"`; \
done
cd ${WRKSRC} && \
cp -pR boost ${PREFIX}/include
.include <bsd.port.mk>

4
devel/boost/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (boost_1_33_1.tar.gz) = a0be7261bfdc8a6c98a25f964766c7a5
RMD160 (boost_1_33_1.tar.gz) = c10999eefe45bcea59eb10992bfd6fc21c12a240
SHA1 (boost_1_33_1.tar.gz) = 09ee930697e9a8bb505c24f05e3f13861be7d937
SIZE (boost_1_33_1.tar.gz) = 14358143

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Jamfile,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
--- Jamfile.orig Tue Nov 8 05:39:45 2005
+++ Jamfile Thu Oct 26 08:17:42 2006
@@ -204,7 +204,7 @@ if $(lib-sources)
local gUNVERSIONED_VARIANT_TAG = [ cond $(layout-system) : TRUE ] ;
local lib-build =
- debug release
+ release
[ cond $(with-debug-python) : debug-python ]
[ cond $(NT) : <runtime-link>static/dynamic ]
<threading>single/multi

View File

@ -0,0 +1,28 @@
$OpenBSD: patch-boost_config_stdlib_libstdcpp3_hpp,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
--- boost/config/stdlib/libstdcpp3.hpp.orig Thu Dec 1 10:00:33 2005
+++ boost/config/stdlib/libstdcpp3.hpp Fri Nov 3 13:07:29 2006
@@ -29,6 +29,15 @@
# define _REENTRANT
#endif
+// This is a hack for OpenBSD. Currently OpenBSD's gcc is compiled
+// with thread model = single. Many references on the net indicate
+// multithreaded c++ applications will have problems with c++
+// exceptions and the high-speed caching allocator. However in
+// practice we have many multithreaded c++ applications that haven't
+// seen these problems. We may be playing with fire but...
+#ifdef __OpenBSD__
+# define BOOST_HAS_THREADS
+#else
#ifdef __GLIBCXX__ // gcc 3.4 and greater:
# if defined(_GLIBCXX_HAVE_GTHR_DEFAULT) \
|| defined(_GLIBCXX__PTHREADS)
@@ -46,6 +55,7 @@
&& !defined(_GLIBCPP__PTHREADS)
// disable thread support if the std lib was built single threaded:
# define BOOST_DISABLE_THREADS
+#endif
#endif
#if (defined(linux) || defined(__linux) || defined(__linux__)) && defined(__arm__) && defined(_GLIBCPP_HAVE_GTHR_DEFAULT)

View File

@ -0,0 +1,13 @@
$OpenBSD: patch-boost_config_suffix_hpp,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
--- boost/config/suffix.hpp.orig Fri Nov 3 17:24:33 2006
+++ boost/config/suffix.hpp Fri Nov 3 17:25:01 2006
@@ -213,7 +213,7 @@
// from here then add to the appropriate compiler section):
//
#if (defined(__MT__) || defined(_MT) || defined(_REENTRANT) \
- || defined(_PTHREADS)) && !defined(BOOST_HAS_THREADS)
+ || defined(_PTHREADS) || defined(_POSIX_THREADS)) && !defined(BOOST_HAS_THREADS)
# define BOOST_HAS_THREADS
#endif

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-configure,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
--- configure.orig Sat Nov 5 11:30:41 2005
+++ configure Sat Oct 7 10:41:22 2006
@@ -289,7 +289,7 @@ LIBS=$LIBS
all: .dummy
@echo "\$(BJAM) \$(BJAM_CONFIG) -sTOOLS=\$(TOOLSET) \$(LIBS)"
- @\$(BJAM) \$(BJAM_CONFIG) -sTOOLS=\$(TOOLSET) \$(LIBS) || \\
+ @\$(BJAM) \$(BJAM_CONFIG) -sTOOLS=\$(TOOLSET) -sNO_BZIP2=1 \$(LIBS) stage || \\
echo "Not all Boost libraries built properly."
clean: .dummy
@@ -299,7 +299,7 @@ distclean: clean
rm -rf Makefile config.log
check: .dummy
- @cd status && ../\$(BJAM) \$(BJAM_CONFIG) -sTOOLS=\$(TOOLSET) test || echo "Some Boost regression tests failed. This is normal."
+ @cd status && ../\$(BJAM) \$(BJAM_CONFIG) -sTOOLS=\$(TOOLSET) -sNO_BZIP2=1 test || echo "Some Boost regression tests failed. This is normal."
install: .dummy
@echo "\$(BJAM) \$(BJAM_CONFIG) --prefix=\$(PREFIX) --exec-prefix=\$(EPREFIX) --libdir=\$(LIBDIR) --includedir=\$(INCLUDEDIR) -sTOOLS=\$(TOOLSET) \$(LIBS) install"

View File

@ -0,0 +1,29 @@
$OpenBSD: patch-libs_config_configure,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
--- libs/config/configure.orig Thu Nov 3 12:23:34 2005
+++ libs/config/configure Thu Oct 26 19:41:21 2006
@@ -1955,13 +1955,13 @@ fi
-echo "$as_me:$LINENO: checking for pthread_exit in -lpthread" >&5
-echo $ECHO_N "checking for pthread_exit in -lpthread... $ECHO_C" >&6
+echo "$as_me:$LINENO: checking for pthread_exit in -pthread" >&5
+echo $ECHO_N "checking for pthread_exit in -pthread... $ECHO_C" >&6
if test "${ac_cv_lib_pthread_pthread_exit+set}" = set; then
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="-pthread $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -2024,7 +2024,7 @@ if test $ac_cv_lib_pthread_pthread_exit
#define HAVE_LIBPTHREAD 1
_ACEOF
- LIBS="-lpthread $LIBS"
+ LIBS="-pthread $LIBS"
fi

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_config_test_boost_has_clock_gettime_ipp,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
--- libs/config/test/boost_has_clock_gettime.ipp.orig Tue Oct 14 12:33:07 2003
+++ libs/config/test/boost_has_clock_gettime.ipp Thu Oct 26 19:35:48 2006
@@ -9,7 +9,7 @@
// TITLE: clock_gettime
// DESCRIPTION: The platform supports POSIX standard API clock_gettime.
-#include <time.h>
+#include <sys/time.h>
namespace boost_has_clock_gettime{

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_config_test_boost_has_pthread_yield_ipp,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
--- libs/config/test/boost_has_pthread_yield.ipp.orig Tue Oct 14 12:33:07 2003
+++ libs/config/test/boost_has_pthread_yield.ipp Thu Oct 26 19:39:07 2006
@@ -17,7 +17,7 @@ namespace boost_has_pthread_yield{
void f()
{
// this is never called, it just has to compile:
- int res = pthread_yield();
+ pthread_yield();
}
int test()

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-libs_regex_src_wc_regex_traits_cpp,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
--- libs/regex/src/wc_regex_traits.cpp.orig Fri Oct 6 09:19:06 2006
+++ libs/regex/src/wc_regex_traits.cpp Fri Oct 6 09:20:06 2006
@@ -29,7 +29,7 @@
#include <boost/regex/v4/primary_transform.hpp>
#include <boost/regex/v4/regex_traits_defaults.hpp>
-#if defined(BOOST_NO_STDC_NAMESPACE)
+#if defined(BOOST_NO_STDC_NAMESPACE) || defined(__OpenBSD__)
namespace std{
using ::wcstol;
}

View File

@ -0,0 +1,21 @@
$OpenBSD: patch-libs_serialization_build_Jamfile,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
--- libs/serialization/build/Jamfile.orig Thu Nov 2 09:50:18 2006
+++ libs/serialization/build/Jamfile Thu Nov 2 09:50:39 2006
@@ -124,17 +124,13 @@
install serialization lib
:
<lib>boost_serialization
- <lib>boost_wserialization
<dll>boost_serialization
- <dll>boost_wserialization
;
stage stage/lib
:
<lib>boost_serialization
- <lib>boost_wserialization
<dll>boost_serialization
- <dll>boost_wserialization
:
# copy to a path rooted at BOOST_ROOT:
<locate>$(BOOST_ROOT)

View File

@ -0,0 +1,15 @@
$OpenBSD: patch-libs_serialization_src_stl_port_cpp,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
--- libs/serialization/src/stl_port.cpp.orig Thu Nov 2 09:51:25 2006
+++ libs/serialization/src/stl_port.cpp Thu Nov 2 09:51:38 2006
@@ -32,11 +32,6 @@
const locale& __loc, boost::archive::codecvt_null<char> * __f
);
-template
-locale::locale(
- const locale& __loc, boost::archive::codecvt_null<wchar_t> * __f
-);
-
} // namespace std
#endif

View File

@ -0,0 +1,36 @@
$OpenBSD: patch-tools_build_v1_gcc-tools_jam,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
--- tools/build/v1/gcc-tools.jam.orig Sat Nov 19 20:21:16 2005
+++ tools/build/v1/gcc-tools.jam Fri Nov 3 15:18:51 2006
@@ -60,7 +60,7 @@ flags gcc LINKFLAGS <runtime-link>static
flags gcc CFLAGS <debug-symbols>on : -g ;
flags gcc LINKFLAGS <debug-symbols>on : -g ;
flags gcc CFLAGS <optimization>off : -O0 ;
-flags gcc CFLAGS <optimization>speed : -O3 ;
+flags gcc CFLAGS <optimization>speed : -O2 ;
# Other optimizations we might want for GCC
# -fforce-mem -fomit-frame-pointer
@@ -478,6 +478,7 @@ actions gcc-Link-action bind NEEDLIBS NE
$(.SET_EXIT)
$(SHELL_SET)$(gSHELL_LIBPATH)=$(LINK_LIBPATH)$(gAPPEND_LD_LIBRARY_PATH)
$(SHELL_EXPORT)$(gSHELL_LIBPATH)
+ echo "$(.GXX[1]:R=$(GCC_BIN_DIR))" $(.GXX[2-]) "$(DLL_LINK_FLAGS)" "$(IMPLIB_COMMAND)$(<[2])" $(LINKFLAGS) -o "$(<[1])$(OUTTAG)" -L"$(LIBPATH:T)" -L"$(STDLIBPATH:T)" "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" "$(IMPLIB_FLAGS)$(NEEDIMPS)" -l$(FINDLIBS) $(LNOPT)$(RPATH_LINK). $(LNOPT)$(SONAME)$(<[1]:D=)$(SOTAG)
"$(.GXX[1]:R=$(GCC_BIN_DIR))" $(.GXX[2-]) "$(DLL_LINK_FLAGS)" "$(IMPLIB_COMMAND)$(<[2])" $(LINKFLAGS) -o "$(<[1])$(OUTTAG)" -L"$(LIBPATH:T)" -L"$(STDLIBPATH:T)" "$(>)" "$(NEEDLIBS)" "$(NEEDLIBS)" "$(IMPLIB_FLAGS)$(NEEDIMPS)" -l$(FINDLIBS) $(LNOPT)$(RPATH_LINK). $(LNOPT)$(SONAME)$(<[1]:D=)$(SOTAG)
$(ACTION_1)$(LN)$(_)-fs$(_)"$(<[1]:D=)$(OUTTAG)"$(_)"$(<[1])"
}
@@ -494,6 +495,7 @@ rule Cc-action
actions gcc-Cc-action
{
$(.SET_EXIT)
+ echo "$(.GCC[1]:R=$(GCC_BIN_DIR))" $(.GCC[2-]) -c -Wall -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I$(_)"$(STDHDRS)" -I$(_)"$(SYSHDRS)" -o "$(<)" "$(>)"
"$(.GCC[1]:R=$(GCC_BIN_DIR))" $(.GCC[2-]) -c -Wall -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) -I"$(HDRS)" -I$(_)"$(STDHDRS)" -I$(_)"$(SYSHDRS)" -o "$(<)" "$(>)"
"$(.OBJCOPY[1])"$(_)$(OBJCOPY_FLAGS)$(_)"$(<)"
}
@@ -509,6 +511,7 @@ rule C++-action
actions gcc-C++-action
{
$(.SET_EXIT)
+ echo "$(.GXX[1]:R=$(GCC_BIN_DIR))" $(.GXX[2-]) -c -Wall -ftemplate-depth-255 -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I$(_)"$(STDHDRS)" -I$(_)"$(SYSHDRS)" -o "$(<)" "$(>)"
"$(.GXX[1]:R=$(GCC_BIN_DIR))" $(.GXX[2-]) -c -Wall -ftemplate-depth-255 -U$(UNDEFS) -D$(DEFINES) $(CFLAGS) $(C++FLAGS) -I"$(HDRS)" -I$(_)"$(STDHDRS)" -I$(_)"$(SYSHDRS)" -o "$(<)" "$(>)"
"$(.OBJCOPY[1])"$(_)$(OBJCOPY_FLAGS)$(_)"$(<)"
}

13
devel/boost/pkg/DESCR Normal file
View File

@ -0,0 +1,13 @@
Boost provides free peer-reviewed portable C++ source libraries.
Boost emphasizes 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.
Boost aims 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) as a step
toward becoming part of a future C++ Standard. More Boost libraries
are proposed for the upcoming TR2.

View File

@ -0,0 +1,22 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/11/05 19:20:43 wilfried Exp $
@lib lib/libboost_date_time-mt.so.${LIBboost_date_time-mt_VERSION}
@lib lib/libboost_date_time.so.${LIBboost_date_time_VERSION}
@lib lib/libboost_filesystem-mt.so.${LIBboost_filesystem-mt_VERSION}
@lib lib/libboost_filesystem.so.${LIBboost_filesystem_VERSION}
@lib lib/libboost_iostreams-mt.so.${LIBboost_iostreams-mt_VERSION}
@lib lib/libboost_iostreams.so.${LIBboost_iostreams_VERSION}
@lib lib/libboost_prg_exec_monitor-mt.so.${LIBboost_prg_exec_monitor-mt_VERSION}
@lib lib/libboost_prg_exec_monitor.so.${LIBboost_prg_exec_monitor_VERSION}
@lib lib/libboost_program_options-mt.so.${LIBboost_program_options-mt_VERSION}
@lib lib/libboost_program_options.so.${LIBboost_program_options_VERSION}
@lib lib/libboost_regex-mt.so.${LIBboost_regex-mt_VERSION}
@lib lib/libboost_regex.so.${LIBboost_regex_VERSION}
@lib lib/libboost_serialization-mt.so.${LIBboost_serialization-mt_VERSION}
@lib lib/libboost_serialization.so.${LIBboost_serialization_VERSION}
@lib lib/libboost_signals-mt.so.${LIBboost_signals-mt_VERSION}
@lib lib/libboost_signals.so.${LIBboost_signals_VERSION}
@lib lib/libboost_test_exec_monitor-mt.so.${LIBboost_test_exec_monitor-mt_VERSION}
@lib lib/libboost_test_exec_monitor.so.${LIBboost_test_exec_monitor_VERSION}
@lib lib/libboost_thread-mt.so.${LIBboost_thread-mt_VERSION}
@lib lib/libboost_unit_test_framework-mt.so.${LIBboost_unit_test_framework-mt_VERSION}
@lib lib/libboost_unit_test_framework.so.${LIBboost_unit_test_framework_VERSION}

3621
devel/boost/pkg/PLIST Normal file

File diff suppressed because it is too large Load Diff