diff options
author | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2007-10-05 17:28:46 +0000 |
---|---|---|
committer | rhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4> | 2007-10-05 17:28:46 +0000 |
commit | 7fcd05a0c425183d46a8d32730fe0abc728cd096 (patch) | |
tree | 157b68d1789eac49fbaf87cc72d1a2fa7a893bbe | |
parent | 01d2d2d7cad1c9e7f891da477a5f1b3b743ff587 (diff) | |
download | slackbuilds-7fcd05a0c425183d46a8d32730fe0abc728cd096.tar.gz slackbuilds-7fcd05a0c425183d46a8d32730fe0abc728cd096.tar.bz2 |
gnuradio: explicitly adding boost include path on ./configure
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1414 370017ae-e619-0410-ac65-c121f96126d4
-rwxr-xr-x | media/radio/gnuradio/gnuradio.SlackBuild | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/media/radio/gnuradio/gnuradio.SlackBuild b/media/radio/gnuradio/gnuradio.SlackBuild index 96ddac70..8ff8029d 100755 --- a/media/radio/gnuradio/gnuradio.SlackBuild +++ b/media/radio/gnuradio/gnuradio.SlackBuild @@ -88,11 +88,21 @@ cd "$TMP" tar --no-same-owner --no-same-permissions -xvf "$SRC_DIR/$SRC" || exit $ERROR_TAR cd "$PKG_SRC" -# Configure +# get boost version +boost="`basename $(ls /var/log/packages/boost-[0-9]* 2> /dev/null)`" + +if [ -z "$boost" ]; then + echo Error: missing boost package + exit $ERROR_CONF +fi + +pack="`basename $boost | sed -e 's/-[^-]*-[^-]*-[^-]*$//'`" +boost_version="`echo $boost | sed -e "s/^$pack-//" | cut -d "-" -f 1 | sed -e 's/\./_/g'`" + CFLAGS="$SLKCFLAGS" \ CXXFLAGS="$SLKCFLAGS" \ ./configure \ - --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS || exit $ERROR_CONF + --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS --with-boost-include-dir=/usr/include/$boost_version || exit $ERROR_CONF # Compile make $NUMJOBS || exit $ERROR_MAKE |