aboutsummaryrefslogtreecommitdiff
path: root/media/radio
diff options
context:
space:
mode:
authorrhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9>2007-10-08 04:55:25 +0000
committerrhatto <rhatto@18ef50b8-d735-4ccd-97c1-689132df3dd9>2007-10-08 04:55:25 +0000
commit2a235786823c1a373614d96f8957cce0b58dca9b (patch)
treeb9e3a6d86cef203f06e9c1c417baf453043f66ea /media/radio
parentdcdbaa89fb231853d9d7a0cb6004da2f8f985c96 (diff)
downloadmkbuilds-2a235786823c1a373614d96f8957cce0b58dca9b.tar.gz
mkbuilds-2a235786823c1a373614d96f8957cce0b58dca9b.tar.bz2
gnuradio: add move new config files procedure at doinst.sh
git-svn-id: svn+slack://slack.fluxo.info/var/svn/mkbuilds@17 18ef50b8-d735-4ccd-97c1-689132df3dd9
Diffstat (limited to 'media/radio')
-rw-r--r--media/radio/gnuradio/gnuradio.mkbuild18
1 files changed, 16 insertions, 2 deletions
diff --git a/media/radio/gnuradio/gnuradio.mkbuild b/media/radio/gnuradio/gnuradio.mkbuild
index 1219b2c..b442071 100644
--- a/media/radio/gnuradio/gnuradio.mkbuild
+++ b/media/radio/gnuradio/gnuradio.mkbuild
@@ -60,7 +60,6 @@
#------------------
#>configure
-
# get boost version
boost="`basename $(ls /var/log/packages/boost-[0-9]* 2> /dev/null)`"
@@ -75,7 +74,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
</configure>
#<configure
@@ -92,3 +92,17 @@ gnuradio:
gnuradio:
gnuradio:
#<slackdesc
+
+#>build_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
+#<build_package