diff options
Diffstat (limited to 'media/radio')
-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 |