summaryrefslogtreecommitdiffstats
path: root/boost
diff options
context:
space:
mode:
author Eric Hameleers <alien@slackware.com>2007-09-04 18:57:43 +0000
committer Eric Hameleers <alien@slackware.com>2007-09-04 18:57:43 +0000
commit37e9309c09ba4b52b62afacd4bba075acbefd7cd (patch)
treeb1bb3103ee5c17614a270912dfca5cc0731e60fb /boost
parent18e38ad4a1c55e75bd7ce764f505786557b81e7b (diff)
downloadasb-37e9309c09ba4b52b62afacd4bba075acbefd7cd.tar.gz
asb-37e9309c09ba4b52b62afacd4bba075acbefd7cd.tar.xz
This SlackBuild uses plain configure; make;make install but the resulting package is huge!
Diffstat (limited to 'boost')
-rwxr-xr-xboost/build/boost.SlackBuild109
1 files changed, 24 insertions, 85 deletions
diff --git a/boost/build/boost.SlackBuild b/boost/build/boost.SlackBuild
index 4235803f..417c0716 100755
--- a/boost/build/boost.SlackBuild
+++ b/boost/build/boost.SlackBuild
@@ -152,6 +152,7 @@ if $(file ${SOURCE} | grep -q ": bzip2"); then
elif $(file ${SOURCE} | grep -q ": gzip"); then
tar -xzvf ${SOURCE}
fi
+mv ${PRGNAM}_${SRCVER} ${PRGNAM}-${VERSION}
cd ${PRGNAM}-${VERSION}
chown -R root:root .
chmod -R u+w,go+r-w,a-s .
@@ -160,107 +161,48 @@ echo Building ...
export LDFLAGS="$SLKLDFLAGS"
export CFLAGS="$SLKCFLAGS"
export CXXFLAGS="$SLKCFLAGS"
+./configure --prefix=/usr \
+ --libdir=/usr/lib${LIBDIRSUFFIX} \
+ --with-libraries=all \
+ 2>&1 | tee $OUTPUT/configure-${PRGNAM}.log
+make 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
+
+# Install all the needed stuff to the package dir -
+# Use installwatch if available, to produce a logfile of the installation
+# process that is more easily readable:
+mkdir -p $PKG/usr/{bin,lib${LIBDIRSUFFIX},include}
+if $(which installwatch > /dev/null 2>&1); then
+ installwatch -o $OUTPUT/install-${PRGNAM}.log make install \
+ PREFIX=$PKG/usr EPREFIX=$PKG/usr \
+ LIBDIR=$PKG/usr/lib${LIBDIRSUFFIX} INCLUDEDIR=$PKG/usr/include
+else
+ make install \
+ PREFIX=$PKG/usr EPREFIX=$PKG/usr \
+ LIBDIR=$PKG/usr/lib${LIBDIRSUFFIX} INCLUDEDIR=$PKG/usr/include \
+ 2>&1 |tee $OUTPUT/install-${PRGNAM}.log
+fi
-mkdir -p $PKG/usr/{bin,lib,include}
-
-# First build bjam, the boost build system:
-( cd tools/jam/src
- ./build.sh gcc 2>&1 | tee $OUTPUT/make-${PRGNAM}.log
-) || exit $?
-BJAM=$(find tools/jam/src/ -name bjam -a -type f)
-
-# Build bcp
-( cd tools/bcp
- ../../$BJAM 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log
-) || exit $?
-BCP=$(find bin/boost/tools -name bcp -a -type f)
-
-# Create build subdirectory
-mkdir obj
-
-# Next, we build boost using bjam
-$BJAM \
- $PYTHON_FLAGS \
- "-sBUILD=release <optimization>speed <inlining>full <threading>single/multi" \
- "-sNO_COMPRESSION=0" "-sZLIB_INCLUDE=/usr/include" "-sZLIB_LIBPATH=/usr/lib" \
- "-sBZIP2_INCLUDE=/usr/include" "-sBZIP2_LIBPATH=/usr/lib" \
- --toolset=gcc --layout=system --builddir=obj \
- --prefix=/usr \
- stage \
- 2>&1 | tee -a $OUTPUT/make-${PRGNAM}.log
-
-# And then install boost..
-$BJAM \
- $PYTHON_FLAGS \
- "-sBUILD=release <optimization>speed <inlining>full <threading>single/multi" \
- "-sNO_COMPRESSION=0" "-sZLIB_INCLUDE=/usr/include" "-sZLIB_LIBPATH=/usr/lib" \
- "-sBZIP2_INCLUDE=/usr/include" "-sBZIP2_LIBPATH=/usr/lib" \
- --toolset=gcc --layout=system --builddir=obj \
- --prefix=$PKG/usr \
- install \
- 2>&1 | tee $OUTPUT/install-${PRGNAM}.log
-
-# Install the bjam/bcp binaries
-cp -a $BJAM $BCP $PKG/usr/bin
-
-## Install the libraries
-#for i in $(find stage -type f -name \*.a); do
-# NAME=$(basename $i);
-# install -m 755 $i $PKG/usr/lib/$NAME;
-#done;
-#for i in $(find stage -type f -name \*.so.*); do
-# NAME=$(basename $i);
-# install -m 755 $i $PKG/usr/lib/$NAME;
-#done;
-#
-## Install include files
-#for i in $(find boost -type d); do
-# mkdir -p $PKG/usr/include/$i
-#done
-#for i in $(find boost -type f); do
-# install -m 644 $i $PKG/usr/include/$i
-#done
-
-## Move incorrectly installed include files
-#mv $PKG/usr/include/$PRGNAM-$VERSION/boost $PKG/usr/include/
-#rmdir $PKG/usr/include/$PRGNAM-$VERSION
+# Add the bjam binary:
+BJAM=$(find tools/jam/src/ -name bjam -type f)
+cp $BJAM $PKG/usr/bin/
# Add documentation:
mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp -a $DOCS $PKG/usr/doc/$PRGNAM-$VERSION || true
chmod -R a-w $PKG/usr/doc/$PRGNAM-$VERSION/*
-# Move incorrectly installed man pages, if any:
-[ -d $PKG/usr/share/man ] && \
- mv $PKG/usr/share/man $PKG/usr/ && rmdir $PKG/usr/share || true
-# Compress the man page(s):
-if [ -d $PKG/usr/man ]; then
- find $PKG/usr/man -type f -name "*.?" -exec gzip -9f {} \;
- for i in $(find $PKG/usr/man -type l -name "*.?") ; do ln -s $( readlink $i ).gz $i.gz ; rm $i ; done
-fi
-
-# Compress info pages and remove the package's dir file:
-if [ -d $PKG/usr/info ]; then
- rm -rf $PKG/usr/info/dir
- gzip -9f $PKG/usr/info/*.info*
-fi
-
# Strip binaries:
cd $PKG
find . | xargs file | grep "executable" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
find . | xargs file | grep "shared object" | grep ELF | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true
cd -
-
# Add a package description:
mkdir -p $PKG/install
cat $SRCDIR/slack-desc > $PKG/install/slack-desc
if [ -f $SRCDIR/doinst.sh ]; then
cat $SRCDIR/doinst.sh >> $PKG/install/doinst.sh
fi
-if [ -f $SRCDIR/slack-required ]; then
- cat $SRCDIR/slack-required > $PKG/install/slack-required
-fi
# Build the package:
cd $PKG
@@ -269,9 +211,6 @@ cd $OUTPUT
md5sum ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz > ${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.tgz.md5
cd -
cat $PKG/install/slack-desc | grep "^${PRGNAM}" > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.txt
-if [ -f $PKG/install/slack-required ]; then
- cat $PKG/install/slack-required > $OUTPUT/${PRGNAM}-${VERSION}-${ARCH}-${BUILD}.dep
-fi
# Clean up the extra stuff:
if [ "$P1" = "--cleanup" ]; then