wok-6.x view uhd/receipt @ rev 25345
updated tar and tar-lang (1.32 -> 1.34)
author | Hans-G?nter Theisgen |
---|---|
date | Mon Jul 25 07:58:01 2022 +0100 (2022-07-25) |
parents | 002dece9cd28 |
children | fbe88431f963 |
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 current_version()
22 {
23 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
24 sed '/archive.*tar/!d;s|.*/\(.*\).tar.*|\1|;q'
25 }
27 # Rules to configure and make the package.
28 compile_rules()
29 {
30 sed -i 's|native(|native_handle(|' host/lib/transport/*.cpp \
31 host/examples/*.cpp
32 sed -i 's|timeout \* 1000.0|long(&)|' host/lib/usrp/x300/x300_impl.cpp
33 sed -i 's|\(milliseconds\)\(.*\);|\1(long\2);|' \
34 host/examples/tx_samples_from_file.cpp
35 sed -i 's|\(:seconds\)\(.*\))|\1(long\2))|' \
36 host/examples/rx_samples_to_file.cpp
37 export LDFLAGS="$LDFLAGS -ltinfo"
38 cd $src/host
39 mkdir build
40 cd build
41 cmake .. -DENABLE_MANUAL=OFF -DENABLE_DOXYGEN=OFF \
42 -DENABLE_MAN_PAGES=OFF -DENABLE_B200=ON -DENABLE_USB=ON \
43 -DCMAKE_INSTALL_PREFIX=/usr
44 make && make DESTDIR=$DESTDIR install
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/lib
51 cp -a $install/usr/lib/*.so* $fs/usr/lib
52 cp -a $install/usr/lib/uhd $fs/usr/lib
53 cp -a $install/usr/bin $fs/usr
54 cp -a $install/usr/share $fs/usr
55 }