wok-6.x rev 19213

Add uhd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Jun 14 18:27:53 2016 +0200 (2016-06-14)
parents ee9f62ea5d47
children 728e891f2504
files uhd-dev/receipt uhd/receipt
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/uhd-dev/receipt	Tue Jun 14 18:27:53 2016 +0200
     1.3 @@ -0,0 +1,21 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="uhd-dev"
     1.7 +VERSION="release_003_009_003"
     1.8 +CATEGORY="development"
     1.9 +SHORT_DESC="The USRP(tm) Hardware Driver, development files."
    1.10 +MAINTAINER="pascal.bellard@slitaz.org"
    1.11 +LICENSE="GPL2"
    1.12 +WEB_SITE="https://github.com/EttusResearch/uhd"
    1.13 +
    1.14 +WANTED="uhd"
    1.15 +DEPENDS="uhd pkg-config cmake"
    1.16 +
    1.17 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.18 +genpkg_rules()
    1.19 +{
    1.20 +	mkdir -p $fs/usr/lib
    1.21 +	cp -a $install/usr/lib/cmake $fs/usr/lib
    1.22 +	cp -a $install/usr/lib/pkgconfig $fs/usr/lib
    1.23 +	cp -a $install/usr/include $fs/usr
    1.24 +}
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/uhd/receipt	Tue Jun 14 18:27:53 2016 +0200
     2.3 @@ -0,0 +1,41 @@
     2.4 +# SliTaz package receipt.
     2.5 +
     2.6 +PACKAGE="uhd"
     2.7 +VERSION="release_003_009_003"
     2.8 +CATEGORY="network"
     2.9 +SHORT_DESC="The USRP(tm) Hardware Driver."
    2.10 +MAINTAINER="pascal.bellard@slitaz.org"
    2.11 +LICENSE="GPL2"
    2.12 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    2.13 +WEB_SITE="https://github.com/EttusResearch/uhd"
    2.14 +WGET_URL="$WEB_SITE/archive/$VERSION.tar.gz"
    2.15 +
    2.16 +DEPENDS="libboost-date-time libboost-filesystem libboost-program-options \
    2.17 +libboost-regex libboost-system libboost-test libboost-serialization \
    2.18 +libboost_thread libboost-tr1 udev python"
    2.19 +BUILD_DEPENDS="wget cmake python python-mako libboost-date-time-dev \
    2.20 +libboost-filesystem-dev libboost-program-options-dev libboost-regex-dev \
    2.21 +libboost-system-dev libboost-test-dev libboost-serialization-dev \
    2.22 +libboost-thread-dev libboost-tr1-dev libusb-dev udev-dev"
    2.23 +
    2.24 +# Rules to configure and make the package.
    2.25 +compile_rules()
    2.26 +{
    2.27 +	cd $src/host
    2.28 +	mkdir build
    2.29 +	cd build
    2.30 +	cmake .. -DENABLE_MANUAL=OFF -DENABLE_DOXYGEN=OFF \
    2.31 +		-DENABLE_MAN_PAGES=OFF -DENABLE_B200=ON -DENABLE_USB=ON \
    2.32 +		-DCMAKE_INSTALL_PREFIX=/usr
    2.33 +	make && make DESTDIR=$DESTDIR install
    2.34 +}
    2.35 +
    2.36 +# Rules to gen a SliTaz package suitable for Tazpkg.
    2.37 +genpkg_rules()
    2.38 +{
    2.39 +	mkdir -p $fs/usr/lib
    2.40 +	cp -a $install/usr/lib/*.so* $fs/usr/lib
    2.41 +	cp -a $install/usr/lib/uhd $fs/usr/lib
    2.42 +	cp -a $install/usr/bin $fs/usr
    2.43 +	cp -a $install/usr/share $fs/usr
    2.44 +}