]> gitweb.fluxo.info Git - slackbuilds.git/commitdiff
gnuradio: add move new config files procedure at doinst.sh
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Mon, 8 Oct 2007 04:38:36 +0000 (04:38 +0000)
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>
Mon, 8 Oct 2007 04:38:36 +0000 (04:38 +0000)
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1421 370017ae-e619-0410-ac65-c121f96126d4

media/radio/gnuradio/gnuradio.SlackBuild
media/radio/gnuradio/slack-required

index 695424e0496c6af4ceff92280c91ada924001f9d..f7c3eeaae12f437cb69d214a740f8ec50eaf3197 100755 (executable)
@@ -15,7 +15,7 @@
 #  Place - Suite 330, Boston, MA 02111-1307, USA
 #
 # slackbuild for gnuradio, by Silvio Rhatto - rhatto at riseup.net
-# requires: boost swig fftw sdc cppunit xmlto jack wxWidgets
+# requires: boost swig fftw sdcc cppunit jack wxWidgets
 # tested: gnuradio-3.0.4
 #
 
@@ -102,7 +102,8 @@ boost_version="`echo $boost | sed -e "s/^$pack-//" | cut -d "-" -f 1 | sed -e 's
 CFLAGS="$SLKCFLAGS" \
   CXXFLAGS="$SLKCFLAGS" \
   ./configure \
-  --prefix="$PREFIX" --libdir="$LIBDIR" $CONF_OPTIONS --with-boost-include-dir=/usr/include/boost-$boost_version || exit $ERROR_CONF
+  --prefix="$PREFIX" --libdir="$LIBDIR" --sysconfdir=/etc \
+  --with-boost-include-dir=/usr/include/boost-$boost_version $CONF_OPTIONS || exit $ERROR_CONF
 
 # Compile
 make $NUMJOBS || exit $ERROR_MAKE
@@ -147,8 +148,16 @@ gnuradio:
 gnuradio:
 EODESC
 
-# Build the package
 cd "$PKG"
+
+# config files
+echo '( chroot . /sbin/ldconfig )' > install/doinst.sh
+for conf in gnuradio-core gr-audio-alsa gr-audio-jack gr-audio-oss; do
+  mv etc/gnuradio/conf.d/$conf.conf etc/gnuradio/conf.d/$conf.conf.new
+  echo "( if [ ! -f "etc/gnuradio/conf.d/$conf.conf" ]; then mv etc/gnuradio/conf.d/$conf.conf.new etc/gnuradio/conf.d/$conf.conf ; fi )" >> install/doinst.sh
+done
+
+# Build the package
 makepkg -l y -c n "$REPOS/$PKG_NAME-$PKG_VERSION-$ARCH-$BUILD.tgz" || exit $ERROR_MKPKG
 
 # Delete source and build directories if requested
index d40acccc8198eccbe0a19b2a31ad8b93293fae59..6515cf444e8c2021bf1ec4558a89e7a049c88870 100644 (file)
@@ -1,10 +1,10 @@
 # Dependency list to gnuradio
 #
 # dependency [condition] [version]]
-boost
-swig
-fftw
-sdcc
-cppunit
-jack
-wxWidgets
+boost                          
+swig                           
+fftw                           
+sdcc                           
+cppunit                                
+jack                           
+wxWidgets