1 |
|
### RPM external boost 1.38.0 |
2 |
|
%define boostver _%(echo %realversion | tr . _) |
3 |
|
Source: http://internap.dl.sourceforge.net/sourceforge/%{n}/%{n}%{boostver}.tar.gz |
4 |
+ |
%define closingbrace ) |
5 |
+ |
%define online %(case %cmsplatf in *onl_*_*%closingbrace echo true;; *%closingbrace echo flase;; esac) |
6 |
|
|
7 |
|
Requires: boost-build python bz2lib |
8 |
< |
%if "%cmsplatf" == "slc4onl_ia32_gcc346" |
7 |
< |
%else |
8 |
> |
%if "%online" != "true" |
9 |
|
Requires: zlib |
10 |
|
%endif |
11 |
|
|
25 |
|
BZ2LIBR="BZIP2_LIBPATH=$BZ2LIB_ROOT/lib" |
26 |
|
BZ2LIBI="BZIP2_INCLUDE=$BZ2LIB_ROOT/include" |
27 |
|
|
28 |
< |
%if "%cmsplatf" != "slc4onl_ia32_gcc346" |
28 |
> |
%if "%online" != "true" |
29 |
|
ZLIBR="ZLIB_LIBPATH=$ZLIB_ROOT/lib" |
30 |
|
ZLIBI="ZLIB_INCLUDE=$ZLIB_ROOT/include" |
31 |
|
|
77 |
|
|
78 |
|
getLibName() |
79 |
|
{ |
80 |
< |
libname=`find %i/lib -name "libboost_$1*mt*" -exec basename {} \;` |
80 |
> |
libname=`find %i/lib -name "libboost_$1*mt*.$so" -exec basename {} \;` |
81 |
|
echo $libname | sed -e 's|[.][^-]*$||;s|^lib||' |
82 |
|
} |
83 |
|
|
84 |
|
export BOOST_THREAD_LIB=`getLibName thread` |
85 |
|
export BOOST_SIGNALS_LIB=`getLibName signals` |
86 |
|
export BOOST_FILESYSTEM_LIB=`getLibName filesystem` |
87 |
+ |
export BOOST_SYSTEM_LIB=`getLibName system` |
88 |
|
export BOOST_PROGRAM_OPTIONS_LIB=`getLibName program_options` |
89 |
|
export BOOST_PYTHON_LIB=`getLibName python` |
90 |
|
export BOOST_REGEX_LIB=`getLibName regex` |
115 |
|
<Tool name=boost_filesystem version=%v> |
116 |
|
<info url="http://www.boost.org"></info> |
117 |
|
<lib name="@BOOST_FILESYSTEM_LIB@"> |
118 |
+ |
<use name=boost_system> |
119 |
+ |
<use name=boost> |
120 |
+ |
</Tool> |
121 |
+ |
EOF_TOOLFILE |
122 |
+ |
|
123 |
+ |
# boost_system toolfile |
124 |
+ |
cat << \EOF_TOOLFILE >%i/etc/scram.d/boost_system |
125 |
+ |
<doc type=BuildSystem::ToolDoc version=1.0> |
126 |
+ |
<Tool name=boost_system version=%v> |
127 |
+ |
<info url="http://www.boost.org"></info> |
128 |
+ |
<lib name="@BOOST_SYSTEM_LIB@"> |
129 |
|
<use name=boost> |
130 |
|
</Tool> |
131 |
|
EOF_TOOLFILE |