wok view uhd/receipt @ rev 25794
created recipe for exo-lang
author | Hans-G?nter Theisgen |
---|---|
date | Wed Oct 23 16:19:52 2024 +0100 (4 weeks ago) |
parents | fbe88431f963 |
children |
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 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - ${WGET_URL%/arch*}/releases 2>/dev/null | \
25 sed '/tag\//!d;s|.*tag/v*||;s|".*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 sed -i 's|native(|native_handle(|' host/lib/transport/*.cpp \
32 host/examples/*.cpp
33 sed -i 's|timeout \* 1000.0|long(&)|' host/lib/usrp/x300/x300_impl.cpp
34 sed -i 's|\(milliseconds\)\(.*\);|\1(long\2);|' \
35 host/examples/tx_samples_from_file.cpp
36 sed -i 's|\(:seconds\)\(.*\))|\1(long\2))|' \
37 host/examples/rx_samples_to_file.cpp
38 export LDFLAGS="$LDFLAGS -ltinfo"
39 cd $src/host
40 mkdir build
41 cd build
42 cmake .. -DENABLE_MANUAL=OFF -DENABLE_DOXYGEN=OFF \
43 -DENABLE_MAN_PAGES=OFF -DENABLE_B200=ON -DENABLE_USB=ON \
44 -DCMAKE_INSTALL_PREFIX=/usr
45 make && make DESTDIR=$DESTDIR install
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/usr/lib
52 cp -a $install/usr/lib/*.so* $fs/usr/lib
53 cp -a $install/usr/lib/uhd $fs/usr/lib
54 cp -a $install/usr/bin $fs/usr
55 cp -a $install/usr/share $fs/usr
56 }