2 # Copyright (C) 2015 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
7 include $(TOPDIR
)/rules.mk
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
14 PKG_SOURCE_URL
:=https
://git.osmocom.org
/rtl-sdr
/snapshot
15 PKG_HASH
:=ee10a76fe0c6601102367d4cdf5c26271e9442d0491aa8df27e5a9bf639cff7c
21 PKG_LICENSE_FILES
:=COPYING
23 PKG_MAINTAINER
:=Vasilis Tsiligiannis
<b_tsiligiannis@silverton.gr
>
25 include $(INCLUDE_DIR
)/package.mk
26 include $(INCLUDE_DIR
)/cmake.mk
28 define Package
/rtl-sdr
/Default
29 TITLE
:=Software Defined Radio with Realtek RTL2832U
30 URL
:=http
://sdr.osmocom.org
/trac
/wiki
/rtl-sdr
33 define Package
/rtl-sdr
/Default
/description
34 rtl-sdr allows DVB-T dongles based on the Realtek RTL2832U to be used
as
38 define Package
/rtl-sdr
39 $(call Package
/rtl-sdr
/Default
)
42 DEPENDS
:=+librt
+libpthread
+librtlsdr
45 define Package
/rtl-sdr
/description
46 $(call Package
/rtl-sdr
/Default
/description
)
48 This package contains the utilities and daemons.
51 define Package
/librtlsdr
52 $(call Package
/rtl-sdr
/Default
)
53 TITLE
+= shared library
60 define Package
/librtlsdr
/description
61 $(call Package
/rtl-sdr
/Default
/description
)
63 This package contains the librtlsdr shared library.
66 TARGET_CFLAGS
+= $(FPIC
)
68 define Build
/InstallDev
69 $(INSTALL_DIR
) $(1)/usr
/include
70 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include/
71 $(INSTALL_DIR
) $(1)/usr
/lib
72 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/librtlsdr.so
* $(1)/usr
/lib
/
73 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
74 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/librtlsdr.
pc $(1)/usr
/lib
/pkgconfig
/
77 define Package
/rtl-sdr
/install
78 $(INSTALL_DIR
) $(1)/usr
/bin
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/bin
/rtl_
* $(1)/usr
/bin
/
80 $(INSTALL_DIR
) $(1)/etc
/init.d
81 $(INSTALL_BIN
) files
/rtl_tcp.init
$(1)/etc
/init.d
/rtl_tcp
82 $(INSTALL_DIR
) $(1)/etc
/config
83 $(INSTALL_CONF
) files
/rtl_tcp.config
$(1)/etc
/config
/rtl_tcp
86 define Package
/librtlsdr
/install
87 $(INSTALL_DIR
) $(1)/usr
/lib
88 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/librtlsdr.so
* $(1)/usr
/lib
/
91 $(eval
$(call BuildPackage
,rtl-sdr
))
92 $(eval
$(call BuildPackage
,librtlsdr
))