wok view gnuradio/receipt @ rev 25037

Up glza (0.11.4)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat May 21 21:38:29 2022 +0000 (23 months ago)
parents f3e5f6a3ef9a
children
line source
1 # SliTaz package receipt.
3 PACKAGE="gnuradio"
4 VERSION="3.7.13.4"
5 CATEGORY="development"
6 MAINTAINER="pascal.bellard@slitaz.org"
7 SHORT_DESC="Signal processing blocks to implement software radios."
8 LICENSE="GPL3"
9 WEB_SITE="https://gnuradio.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="$WEB_SITE/releases/$PACKAGE/$TARBALL"
14 DEPENDS="alsa-lib fftw gsl jack-audio-connection-kit \
15 libboost-date-time libboost-filesystem libboost-program-options \
16 libboost-system libboost-thread orc portaudio python"
17 BUILD_DEPENDS="alsa-lib-dev cmake cppunit-dev fftw-dev gsl-dev \
18 jack-audio-connection-kit-dev libboost-dev libboost-filesystem-dev \
19 libboost-program-options-dev libboost-regex-dev libboost-system-dev \
20 libboost-test-dev libboost-thread-dev libboost-tr1-dev \
21 libsdl-dev libusb-dev log4c-dev orc-dev pkg-config portaudio-dev \
22 pygtk-dev python-cheetah python-lxml python-mako python-numpy \
23 python-six python-sphinx swig"
25 current_version()
26 {
27 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
28 sed "/$PACKAGE-[0-9]/!d;/tar/!d;/rc[0-9]/d;s|.*$PACKAGE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
29 }
31 # Rules to configure and make the package.
32 compile_rules()
33 {
34 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lpthread"
35 patch --input=$stuff/patches/float_array_to_int.patch \
36 $src/gr-blocks/lib/float_array_to_int.cc
37 patch --input=$stuff/patches/test_tag_variable_rate_ff_impl.patch \
38 $src/gr-blocks/lib/test_tag_variable_rate_ff_impl.cc
40 mkdir build
41 cd build
42 cmake .. \
43 -Wno-dev \
44 -DCMAKE_INSTALL_PREFIX=/usr &&
45 make -j 1 &&
46 sed -i 's,bin/ctest.*,& || true,' Makefile &&
47 make -j 1 test &&
48 make DESTDIR=$DESTDIR install
49 }
51 # Rules to gen a SliTaz package suitable for Tazpkg.
52 genpkg_rules()
53 {
54 mkdir -p $fs/usr/share
55 mkdir -p $fs/usr/lib
57 cp -a $install/etc $fs
58 cp -a $install/usr/bin $fs/usr
59 cp -a $install/usr/share/gnuradio $fs/usr/share
60 cp -a $install/usr/lib/*.so* $fs/usr/lib
61 cp -a $install/usr/lib/python* $fs/usr/lib
62 }