wok view uhd/receipt @ rev 23269

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