aboutsummaryrefslogtreecommitdiff
path: root/media/radio
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-10-05 17:28:46 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-10-05 17:28:46 +0000
commit7fcd05a0c425183d46a8d32730fe0abc728cd096 (patch)
tree157b68d1789eac49fbaf87cc72d1a2fa7a893bbe /media/radio
parent01d2d2d7cad1c9e7f891da477a5f1b3b743ff587 (diff)
downloadslackbuilds-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
Diffstat (limited to 'media/radio')
-rwxr-xr-xmedia/radio/gnuradio/gnuradio.SlackBuild14
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