devel/boost-*: partially revert r439920 (see r439922)

This commit is contained in:
Jan Beich 2017-05-02 06:33:39 +00:00
parent 4d8f8e0ba3
commit 684bbccbef
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=439932
27 changed files with 32766 additions and 0 deletions

23
devel/boost-all/Makefile Normal file
View file

@ -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>

12
devel/boost-all/common.mk Normal file
View file

@ -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

View file

@ -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

18
devel/boost-all/pkg-descr Normal file
View file

@ -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/

View file

@ -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%%

View file

@ -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.

29
devel/boost-docs/Makefile Normal file
View file

@ -0,0 +1,29 @@
# Created by: Alexander Churanov <churanov.port.maintainer@gmail.com>
# $FreeBSD$
PORTNAME= boost-docs
COMMENT= Documentation for libraries from boost.org
DOCSDIR= ${PREFIX}/share/doc/boost
UNIQ= /usr/bin/uniq
NO_BUILD= yes
.include "${.CURDIR}/..//boost-all/common.mk"
do-install:
# Documentation & examples
@${MKDIR} ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC} &&\
${FIND} . -name "*.htm" -o -name "*.html" -o -name "*.css"\
-o -name "*.jp*g" -o -name "*.png" -o -name "*.gif"\
| ${PAX} -rw ${STAGEDIR}${DOCSDIR}
@cd ${WRKSRC}/libs &&\
${FIND} . -name "example" -o -name "examples" -o -name "*example*.cpp"\
-o -name "*example*.c" -o -name "*example*.hpp" | ${UNIQ} |\
${GREP} -v "assign/test" | ${GREP} -v "iterator/test" | \
${GREP} -v "range/test" |\
${PAX} -rw ${STAGEDIR}${DOCSDIR}/libs
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1482409991
SHA256 (boost_1_63_0.tar.bz2) = beae2529f759f6b3bf3f4969a19c2e9d6f0c503edcb2de4a61d1428519fcb3b0
SIZE (boost_1_63_0.tar.bz2) = 81984414

View file

@ -0,0 +1,16 @@
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/

19743
devel/boost-docs/pkg-plist Normal file

File diff suppressed because it is too large Load diff

25
devel/boost-jam/Makefile Normal file
View file

@ -0,0 +1,25 @@
# Created by: Alexander Churanov <churanov.port.maintainer@gmail.com>
# $FreeBSD$
PORTNAME= boost-jam
COMMENT= Build tool from the boost.org
PLIST_FILES= bin/bjam
EXTRACT_AFTER_ARGS= ${DISTNAME}/${WRKSRC_SUBDIR}
MAKE_CMD= ./build.sh
ALL_TARGET= cc
MAKE_FLAGS= #
_MAKE_JOBS= #
MAKEFILE= #
WRKSRC_SUBDIR= tools/build/src/engine
.include "${.CURDIR}/../boost-all/common.mk"
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/bin
${INSTALL_PROGRAM} ${WRKSRC}/bin.*/bjam \
${STAGEDIR}${PREFIX}/bin/
.include <bsd.port.mk>

3
devel/boost-jam/distinfo Normal file
View file

@ -0,0 +1,3 @@
TIMESTAMP = 1482409991
SHA256 (boost_1_63_0.tar.bz2) = beae2529f759f6b3bf3f4969a19c2e9d6f0c503edcb2de4a61d1428519fcb3b0
SIZE (boost_1_63_0.tar.bz2) = 81984414

View file

@ -0,0 +1,6 @@
Boost.Jam (BJam) is a build tool based on FTJam, which in turn is
based on Perforce Jam. It contains significant improvements made to
facilitate its use in the Boost Build System, but should be backward
compatible with Perforce Jam.
WWW: http://www.boost.org/

55
devel/boost-libs/Makefile Normal file
View file

@ -0,0 +1,55 @@
# Created by: Alexander Churanov <churanov.port.maintainer@gmail.com>
# $FreeBSD$
PORTNAME= boost-libs
PORTREVISION= 1
COMMENT= Free portable C++ libraries (without Boost.Python)
BROKEN_sparc64= https://github.com/boostorg/context/commit/f2ef6326b6ed
BUILD_DEPENDS+= bjam:devel/boost-jam
OPTIONS_DEFINE= DEBUG OPTIMIZED_CFLAGS
OPTIONS_MULTI= LOCALE
OPTIONS_MULTI_LOCALE= ICONV ICU
OPTIONS_DEFAULT= ICONV ICU
ICONV_DESC= Boost.Locale with iconv encoding support
ICU_DESC= Boost.Regex/Locale with ICU unicode support
ICONV_USES= iconv
ICONV_MAKE_ARGS= -sICONV_PATH=${ICONV_PREFIX}
ICONV_MAKE_ARGS_OFF= boost.locale.iconv=off
ICU_LIB_DEPENDS= libicuuc.so:devel/icu
ICU_MAKE_ARGS= -sICU_PATH=${LOCALBASE}
ICU_MAKE_ARGS_OFF= boost.locale.icu=off
.include "${.CURDIR}/../boost-all/common.mk"
.include "${.CURDIR}/../boost-all/compiled.mk"
MAKE_ARGS+= --without-python
ALL_TARGET= stage
do-install:
@cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} \
${MAKE_ARGS:NDESTDIR=*:S,^--prefix=,&${STAGEDIR},} ${INSTALL_TARGET}
# For some reasons BJAM forget about the links
@cd ${WRKSRC}/stage/ && ${FIND} lib -type l | ${PAX} -rw -p p ${STAGEDIR}${PREFIX}
# display pkg-message
post-install:
@${TOUCH} ${PKGMESSAGE}
@${CAT} ${PKG_MESSAGE_FILE_THREADS} >> ${PKGMESSAGE}
@${ECHO_CMD} >> ${PKGMESSAGE}
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so
@${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}
.include <bsd.port.mk>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1482409991
SHA256 (boost_1_63_0.tar.bz2) = beae2529f759f6b3bf3f4969a19c2e9d6f0c503edcb2de4a61d1428519fcb3b0
SIZE (boost_1_63_0.tar.bz2) = 81984414

View file

@ -0,0 +1,50 @@
Ticket #12575 fix compilation of software using libressl and boost asio
https://svn.boost.org/trac/boost/ticket/12575
--- boost/asio/ssl/impl/context.ipp.orig 2016-09-21 14:33:21 UTC
+++ boost/asio/ssl/impl/context.ipp
@@ -228,7 +228,7 @@ context::~context()
{
if (handle_)
{
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
#else // (OPENSSL_VERSION_NUMBER >= 0x10100000L)
void* cb_userdata = handle_->default_passwd_callback_userdata;
@@ -578,7 +578,7 @@ boost::system::error_code context::use_c
bio_cleanup bio = { make_buffer_bio(chain) };
if (bio.p)
{
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
pem_password_cb* callback = ::SSL_CTX_get_default_passwd_cb(handle_);
void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
#else // (OPENSSL_VERSION_NUMBER >= 0x10100000L)
@@ -682,7 +682,7 @@ boost::system::error_code context::use_p
{
::ERR_clear_error();
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
pem_password_cb* callback = ::SSL_CTX_get_default_passwd_cb(handle_);
void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
#else // (OPENSSL_VERSION_NUMBER >= 0x10100000L)
@@ -749,7 +749,7 @@ boost::system::error_code context::use_r
{
::ERR_clear_error();
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
pem_password_cb* callback = ::SSL_CTX_get_default_passwd_cb(handle_);
void* cb_userdata = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
#else // (OPENSSL_VERSION_NUMBER >= 0x10100000L)
@@ -988,7 +988,7 @@ int context::verify_callback_function(in
boost::system::error_code context::do_set_password_callback(
detail::password_callback_base* callback, boost::system::error_code& ec)
{
-#if (OPENSSL_VERSION_NUMBER >= 0x10100000L)
+#if (OPENSSL_VERSION_NUMBER >= 0x10100000L) && !defined(LIBRESSL_VERSION_NUMBER)
void* old_callback = ::SSL_CTX_get_default_passwd_cb_userdata(handle_);
::SSL_CTX_set_default_passwd_cb_userdata(handle_, callback);
#else // (OPENSSL_VERSION_NUMBER >= 0x10100000L)

View file

@ -0,0 +1,34 @@
--- boost/config/compiler/clang.hpp.orig 2016-09-21 14:33:21 UTC
+++ boost/config/compiler/clang.hpp
@@ -110,6 +110,16 @@
# endif
#endif
+//
+// Pick up _LIBCPP_VERSION definition if we are using libc++
+// If _LIBCPP_VERSION is not defined, then we will assume that
+// we are compiling on FreeBSD 9.x and using ancient libstdc++
+// from base gcc 4.2 with limited c++11 support.
+//
+#ifdef __cplusplus
+# include <ciso646>
+#endif
+
#if !__has_feature(cxx_auto_type)
# define BOOST_NO_CXX11_AUTO_DECLARATIONS
# define BOOST_NO_CXX11_AUTO_MULTIDECLARATIONS
@@ -192,7 +202,13 @@
# define BOOST_NO_CXX11_UNIFIED_INITIALIZATION_SYNTAX
#endif
-#if !__has_feature(cxx_rvalue_references)
+//
+// clang on FreeBSD 9.x uses libstdc++ from base GCC 4.2.1 which
+// does not support std::forward which this feature requires.
+// Assume that the lack of a _LIBCPP_VERSION definition indicates
+// that is our environment.
+//
+#if !__has_feature(cxx_rvalue_references) || !defined(_LIBCPP_VERSION)
# define BOOST_NO_CXX11_RVALUE_REFERENCES
#endif

View file

@ -0,0 +1,11 @@
--- boost/math/tools/config.hpp.orig 2016-09-21 14:33:24 UTC
+++ boost/math/tools/config.hpp
@@ -28,7 +28,7 @@
#include <boost/math/tools/user.hpp>
-#if (defined(__CYGWIN__) || defined(__FreeBSD__) || defined(__NetBSD__) \
+#if (defined(__CYGWIN__) || defined(__NetBSD__) \
|| (defined(__hppa) && !defined(__OpenBSD__)) || (defined(__NO_LONG_DOUBLE_MATH) && (DBL_MANT_DIG != LDBL_MANT_DIG))) \
&& !defined(BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS)
# define BOOST_MATH_NO_LONG_DOUBLE_MATH_FUNCTIONS

View file

@ -0,0 +1,33 @@
https://svn.boost.org/trac/boost/ticket/12551
https://github.com/boostorg/context/commit/26b61a67cf1d
--- libs/context/src/asm/jump_arm64_aapcs_elf_gas.S.orig 2016-09-21 14:33:22 UTC
+++ libs/context/src/asm/jump_arm64_aapcs_elf_gas.S
@@ -37,7 +37,6 @@
* *
*******************************************************/
-.cpu generic+fp+simd
.text
.align 2
.global jump_fcontext
--- libs/context/src/asm/make_arm64_aapcs_elf_gas.S.orig 2016-09-21 14:33:22 UTC
+++ libs/context/src/asm/make_arm64_aapcs_elf_gas.S
@@ -37,7 +37,6 @@
* *
*******************************************************/
-.cpu generic+fp+simd
.text
.align 2
.global make_fcontext
--- libs/context/src/asm/ontop_arm64_aapcs_elf_gas.S.orig 2016-09-21 14:33:22 UTC
+++ libs/context/src/asm/ontop_arm64_aapcs_elf_gas.S
@@ -37,7 +37,6 @@
* *
*******************************************************/
-.cpu generic+fp+simd
.text
.align 2
.global ontop_fcontext

View file

@ -0,0 +1,92 @@
--- tools/build/src/tools/clang-linux.jam.orig 2016-09-21 14:33:28 UTC
+++ tools/build/src/tools/clang-linux.jam
@@ -31,7 +31,7 @@ generators.override clang-linux.compile.
generators.override clang-linux.compile.c++.pch : pch.default-cpp-pch-generator ;
type.set-generated-target-suffix PCH
- : <toolset>clang <toolset-clang:platform>linux : pth ;
+ : <toolset>clang <toolset-clang:platform>linux : pch ;
toolset.inherit-rules clang-linux : gcc ;
toolset.inherit-flags clang-linux : gcc
@@ -96,24 +96,24 @@ rule compile.c++ ( targets * : sources *
gcc.setup-fpic $(targets) : $(sources) : $(properties) ;
gcc.setup-address-model $(targets) : $(sources) : $(properties) ;
- local pth-file = [ on $(<) return $(PCH_FILE) ] ;
+ local pch-file = [ on $(<) return $(PCH_FILE) ] ;
- if $(pth-file) {
- DEPENDS $(<) : $(pth-file) ;
+ if $(pch-file) {
+ DEPENDS $(<) : $(pch-file) ;
clang-linux.compile.c++.with-pch $(targets) : $(sources) ;
}
else {
- clang-linux.compile.c++.without-pth $(targets) : $(sources) ;
+ clang-linux.compile.c++.without-pch $(targets) : $(sources) ;
}
}
-actions compile.c++.without-pth {
+actions compile.c++.without-pch {
"$(CONFIG_COMMAND)" -c -x c++ $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -o "$(<)" "$(>)"
}
actions compile.c++.with-pch bind PCH_FILE
{
- "$(CONFIG_COMMAND)" -c -x c++ $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -include-pth -Xclang "$(PCH_FILE)" -o "$(<)" "$(>)"
+ "$(CONFIG_COMMAND)" -c -x c++ $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -include-pch -Xclang "$(PCH_FILE)" -o "$(<)" "$(>)"
}
rule compile.c ( targets * : sources * : properties * )
@@ -122,25 +122,25 @@ rule compile.c ( targets * : sources * :
gcc.setup-fpic $(targets) : $(sources) : $(properties) ;
gcc.setup-address-model $(targets) : $(sources) : $(properties) ;
- local pth-file = [ on $(<) return $(PCH_FILE) ] ;
+ local pch-file = [ on $(<) return $(PCH_FILE) ] ;
- if $(pth-file) {
- DEPENDS $(<) : $(pth-file) ;
+ if $(pch-file) {
+ DEPENDS $(<) : $(pch-file) ;
clang-linux.compile.c.with-pch $(targets) : $(sources) ;
}
else {
- clang-linux.compile.c.without-pth $(targets) : $(sources) ;
+ clang-linux.compile.c.without-pch $(targets) : $(sources) ;
}
}
-actions compile.c.without-pth
+actions compile.c.without-pch
{
"$(CONFIG_COMMAND)" -c -x c $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -c -o "$(<)" "$(>)"
}
actions compile.c.with-pch bind PCH_FILE
{
- "$(CONFIG_COMMAND)" -c -x c $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -include-pth -Xclang "$(PCH_FILE)" -c -o "$(<)" "$(>)"
+ "$(CONFIG_COMMAND)" -c -x c $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -include-pch -Xclang "$(PCH_FILE)" -c -o "$(<)" "$(>)"
}
###############################################################################
@@ -153,7 +153,7 @@ rule compile.c++.pch ( targets * : sourc
}
actions compile.c++.pch {
- rm -f "$(<)" && "$(CONFIG_COMMAND)" -x c++-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -emit-pth -o "$(<)" "$(>)"
+ rm -f "$(<)" && "$(CONFIG_COMMAND)" -x c++-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -emit-pch -o "$(<)" "$(>)"
}
rule compile.c.pch ( targets * : sources * : properties * ) {
@@ -164,7 +164,7 @@ rule compile.c.pch ( targets * : sources
actions compile.c.pch
{
- rm -f "$(<)" && "$(CONFIG_COMMAND)" -x c-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -emit-pth -o "$(<)" "$(>)"
+ rm -f "$(<)" && "$(CONFIG_COMMAND)" -x c-header $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(INCLUDES)" -Xclang -emit-pch -o "$(<)" "$(>)"
}
###############################################################################

View file

@ -0,0 +1,32 @@
Adding /usr/lib32 to LD_LIBRARY_PATH may be poisonous if /usr/lib64
doesn't exist while /usr/lib only constains .so but not .so.SOVERSION
files. Besides, LD_LIBRARY_PATH + -Wl,-rpath-link is same as -Wl,-rpath
that USE_GCC already passes.
--- tools/build/src/tools/gcc.jam.orig 2016-09-21 14:33:28 UTC
+++ tools/build/src/tools/gcc.jam
@@ -210,24 +210,6 @@ rule init ( version ? : command * : opti
}
init-link-flags gcc $(linker) $(condition) ;
- # If gcc is installed in a non-standard location, we would need to add
- # LD_LIBRARY_PATH when running programs created with it (for unit-test/run
- # rules).
- if $(command)
- {
- # On multilib 64-bit boxes, there are both 32-bit and 64-bit libraries
- # and all must be added to LD_LIBRARY_PATH. The linker will pick the
- # right onces. Note that we do not provide a clean way to build a 32-bit
- # binary using a 64-bit compiler, but user can always pass -m32
- # manually.
- local lib_path = $(root)/bin $(root)/lib $(root)/lib32 $(root)/lib64 ;
- if $(.debug-configuration)
- {
- ECHO notice: using gcc libraries :: $(condition) :: $(lib_path) ;
- }
- toolset.flags gcc.link RUN_PATH $(condition) : $(lib_path) ;
- }
-
# If we are not using a system gcc installation we should adjust the various
# programs as needed to prefer using their installation specific versions.
# This is essential for correct use of MinGW and for cross-compiling.

View file

@ -0,0 +1,19 @@
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.
NOTE: This package does not contain Boost.Python, it's in
'devel/boost-python-libs'.
WWW: http://www.boost.org/

12439
devel/boost-libs/pkg-plist Normal file

File diff suppressed because it is too large Load diff

View file

@ -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>

View file

@ -0,0 +1,3 @@
TIMESTAMP = 1482409991
SHA256 (boost_1_63_0.tar.bz2) = beae2529f759f6b3bf3f4969a19c2e9d6f0c503edcb2de4a61d1428519fcb3b0
SIZE (boost_1_63_0.tar.bz2) = 81984414

View file

@ -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/

View file

@ -0,0 +1,3 @@
lib/libboost_python.a
lib/libboost_python.so
lib/libboost_python.so.%%BOOST_SHARED_LIB_VER%%