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