|
Boost-Build : |
From: Chris Fairles (chris.fairles_at_[hidden])
Date: 2007-07-20 09:54:24
I've attempted to add boost.build v2 to my boost spec file but I'm
wondering if theres an easier way than what I'm currently doing.
Basically, I've located all required files via trial and error and
copy them manually.
#%{_datadir} is /usr/share
mkdir -p $RPM_BUILD_ROOT%{_datadir}/boost-build/build
mkdir -p $RPM_BUILD_ROOT%{_datadir}/boost-build/kernel
mkdir -p $RPM_BUILD_ROOT%{_datadir}/boost-build/notes
mkdir -p $RPM_BUILD_ROOT%{_datadir}/boost-build/options
mkdir -p $RPM_BUILD_ROOT%{_datadir}/boost-build/tools
mkdir -p $RPM_BUILD_ROOT%{_datadir}/boost-build/tools/types
mkdir -p $RPM_BUILD_ROOT%{_datadir}/boost-build/util
mkdir -p $RPM_BUILD_ROOT%{_bindir}
for i in `find build -type f`; do
install -m 644 $i $RPM_BUILD_ROOT%{_datadir}/boost-build/$i
done
for i in `find kernel -type f`; do
install -m 644 $i $RPM_BUILD_ROOT%{_datadir}/boost-build/$i
done
for i in `find notes -type f`; do
install -m 644 $i $RPM_BUILD_ROOT%{_datadir}/boost-build/$i
done
for i in `find options -type f`; do
install -m 644 $i $RPM_BUILD_ROOT%{_datadir}/boost-build/$i
done
for i in `find tools -type f`; do
install -m 644 $i $RPM_BUILD_ROOT%{_datadir}/boost-build/$i
done
for i in `find util -type f`; do
install -m 644 $i $RPM_BUILD_ROOT%{_datadir}/boost-build/$i
done
touch $RPM_BUILD_ROOT%{_datadir}/boost-build/user-config.jam
cd ../../..
install -m 644 tools/build/v2/bootstrap.jam
$RPM_BUILD_ROOT%{_datadir}/boost-build/bootstrap.jam
install -m 644 tools/build/v2/build-system.jam
$RPM_BUILD_ROOT%{_datadir}/boost-build/build-system.jam
install -m 644 tools/build/v2/changes.txt
$RPM_BUILD_ROOT%{_datadir}/boost-build/changes.txt
install -m 644 tools/build/v2/boost-build.jam
$RPM_BUILD_ROOT%{_datadir}/boost-build/boost-build.jam
install tools/jam/src/bin.linux/bjam $RPM_BUILD_ROOT%{_bindir}/bjam
The hard part was figuring out what you need and what you don't in the
tools/build directory. There an easy way to determine other than trial
and error?
Thanks,
Chris
Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk