wok-6.x annotate uhd/receipt @ rev 21579

updated python-gevent (0.13.8 -> 1.4.0)
author Hans-G?nter Theisgen
date Sun May 19 16:11:22 2019 +0100 (2019-05-19)
parents e9d3c81466d5
children 5ea0ce1cecc0
rev   line source
pascal@19213 1 # SliTaz package receipt.
pascal@19213 2
pascal@19213 3 PACKAGE="uhd"
pascal@19213 4 VERSION="release_003_009_003"
pascal@19213 5 CATEGORY="network"
pascal@19213 6 SHORT_DESC="The USRP(tm) Hardware Driver."
pascal@19213 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@19213 8 LICENSE="GPL2"
pascal@19213 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@19213 10 WEB_SITE="https://github.com/EttusResearch/uhd"
pascal@19213 11 WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
pascal@19213 12
pascal@19213 13 DEPENDS="libboost-date-time libboost-filesystem libboost-program-options \
pascal@19213 14 libboost-regex libboost-system libboost-test libboost-serialization \
pascal@19676 15 libboost-thread libboost-tr1 udev python"
pascal@19213 16 BUILD_DEPENDS="wget cmake python python-mako libboost-date-time-dev \
pascal@19213 17 libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev \
pascal@19213 18 libboost-system-dev libboost-test-dev libboost-serialization-dev \
pascal@19213 19 libboost-thread-dev libboost-tr1-dev libusb-dev udev-dev"
pascal@19213 20
pascal@19213 21 # Rules to configure and make the package.
pascal@19213 22 compile_rules()
pascal@19213 23 {
pascal@21386 24 sed -i 's|native(|native_handle(|' host/lib/transport/*.cpp \
pascal@21386 25 host/examples/*.cpp
pascal@21386 26 sed -i 's|timeout \* 1000.0|long(&)|' host/lib/usrp/x300/x300_impl.cpp
pascal@21386 27 sed -i 's|\(milliseconds\)\(.*\);|\1(long\2);|' \
pascal@21386 28 host/examples/tx_samples_from_file.cpp
pascal@21386 29 sed -i 's|\(:seconds\)\(.*\))|\1(long\2))|' \
pascal@21386 30 host/examples/rx_samples_to_file.cpp
pascal@19708 31 export LDFLAGS="$LDFLAGS -ltinfo"
pascal@19213 32 cd $src/host
pascal@19213 33 mkdir build
pascal@19213 34 cd build
pascal@19213 35 cmake .. -DENABLE_MANUAL=OFF -DENABLE_DOXYGEN=OFF \
pascal@19213 36 -DENABLE_MAN_PAGES=OFF -DENABLE_B200=ON -DENABLE_USB=ON \
pascal@19213 37 -DCMAKE_INSTALL_PREFIX=/usr
pascal@19213 38 make && make DESTDIR=$DESTDIR install
pascal@19213 39 }
pascal@19213 40
pascal@19213 41 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@19213 42 genpkg_rules()
pascal@19213 43 {
pascal@19213 44 mkdir -p $fs/usr/lib
pascal@19213 45 cp -a $install/usr/lib/*.so* $fs/usr/lib
pascal@19213 46 cp -a $install/usr/lib/uhd $fs/usr/lib
pascal@19213 47 cp -a $install/usr/bin $fs/usr
pascal@19213 48 cp -a $install/usr/share $fs/usr
pascal@19213 49 }