aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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