aboutsummaryrefslogtreecommitdiff
path: root/media
diff options
context:
space:
mode:
authorrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-10-08 04:38:36 +0000
committerrhatto <rhatto@370017ae-e619-0410-ac65-c121f96126d4>2007-10-08 04:38:36 +0000
commit7f979d9efa797326b907c0020b5b5bda7d97deb2 (patch)
tree9ae1415a43eb28293b3850bf93231145929590b9 /media
parent4d6606565cbb215bf718ec4123f60b10d0f0b469 (diff)
downloadslackbuilds-7f979d9efa797326b907c0020b5b5bda7d97deb2.tar.gz
slackbuilds-7f979d9efa797326b907c0020b5b5bda7d97deb2.tar.bz2
gnuradio: add move new config files procedure at doinst.sh
git-svn-id: svn+slack://slack.fluxo.info/var/svn/slackbuilds@1421 370017ae-e619-0410-ac65-c121f96126d4
Diffstat (limited to 'media')
-rwxr-xr-xmedia/radio/gnuradio/gnuradio.SlackBuild15
-rw-r--r--media/radio/gnuradio/slack-required14
2 files changed, 19 insertions, 10 deletions
diff --git a/media/radio/gnuradio/gnuradio.SlackBuild b/media/radio/gnuradio/gnuradio.SlackBuild
index 695424e0..f7c3eeaa 100755
--- a/media/radio/gnuradio/gnuradio.SlackBuild
+++ b/media/radio/gnuradio/gnuradio.SlackBuild
@@ -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
diff --git a/media/radio/gnuradio/slack-required b/media/radio/gnuradio/slack-required
index d40acccc..6515cf44 100644
--- a/media/radio/gnuradio/slack-required
+++ b/media/radio/gnuradio/slack-required
@@ -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