echo "Out of tree build"
BUILD_PATH=$WORKSPACE/oot
mkdir -p $BUILD_PATH
- cd $BUILD_PATH$WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
+ cd $BUILD_PATH
+ $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
;;
dist)
echo "Distribution out of tree build"
cd $BUILD_PATH
# Ignore level 1 of tar
- tar xvf *.tar.* --staticrip 1
+ tar xvf *.tar.* --strip 1
$BUILD_PATH/configure --prefix=$PREFIX $CONF_OPTS
;;
*)
- echo "Standard tree build"
BUILD_PATH=$WORKSPACE
- $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS;;
+ echo "Standard tree build"
+ $WORKSPACE/configure --prefix=$PREFIX $CONF_OPTS
+ ;;
esac
-make V=1
+make
make install
make clean
find $WORKSPACE/build/lib -name "*.so" -exec chrpath --delete {} \;
find $WORKSPACE/build/lib -name "*.la" -exec rm -f {} \;
+# Cleanup temp directory of dist build
if [ $build = "dist" ]; then
rm -rf $BUILD_PATH
fi