]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
gnuradio: explicitly adding boost include path on ./configure
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Fri, 5 Oct 2007 17:28:46 +0000 (17:28 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Fri, 5 Oct 2007 17:28:46 +0000 (17:28 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1414 370017ae-e619-0410-ac65-c121f96126d4

media/radio/gnuradio/gnuradio.SlackBuild

index 96ddac704b474580e5cb4748584517c860d7bad0..8ff8029d1907a27dacf2c94ba21ba03816ecffcd 100755 (executable)
@@ -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