2014-06-12 22:53:38 +02:00
|
|
|
#
|
2015-07-03 19:37:51 +02:00
|
|
|
# Copyright (C) 2015 OpenWrt.org
|
2014-06-12 22:53:38 +02:00
|
|
|
#
|
|
|
|
# This is free software, licensed under the GNU General Public License v2.
|
|
|
|
# See /LICENSE for more information.
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
|
|
|
|
|
|
|
PKG_NAME:=rtl-sdr
|
2024-02-17 09:57:08 +01:00
|
|
|
PKG_VERSION:=2.0.1
|
|
|
|
PKG_RELEASE:=1
|
2014-06-12 22:53:38 +02:00
|
|
|
|
2023-01-14 22:53:30 +01:00
|
|
|
PKG_SOURCE_PROTO:=git
|
2024-02-17 09:57:08 +01:00
|
|
|
PKG_SOURCE_VERSION:=v2.0.1
|
2023-01-14 22:53:30 +01:00
|
|
|
PKG_SOURCE_URL:=https://gitea.osmocom.org/sdr/rtl-sdr
|
2024-04-06 12:47:54 +02:00
|
|
|
PKG_MIRROR_HASH:=731dfdf5ae70b3155b942c829467113a61590da90b643852ed82b73aae982094
|
2014-06-12 22:53:38 +02:00
|
|
|
|
|
|
|
PKG_MAINTAINER:=Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
|
2023-01-14 22:53:30 +01:00
|
|
|
PKG_LICENSE:=GPL-2.0-or-later
|
|
|
|
PKG_LICENSE_FILES:=COPYING
|
2014-06-12 22:53:38 +02:00
|
|
|
|
|
|
|
include $(INCLUDE_DIR)/package.mk
|
2021-06-11 01:27:06 +02:00
|
|
|
include $(INCLUDE_DIR)/cmake.mk
|
2014-06-12 22:53:38 +02:00
|
|
|
|
|
|
|
define Package/rtl-sdr/Default
|
|
|
|
TITLE:=Software Defined Radio with Realtek RTL2832U
|
|
|
|
URL:=http://sdr.osmocom.org/trac/wiki/rtl-sdr
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rtl-sdr/Default/description
|
|
|
|
rtl-sdr allows DVB-T dongles based on the Realtek RTL2832U to be used as
|
|
|
|
an inexpensive SDR.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rtl-sdr
|
|
|
|
$(call Package/rtl-sdr/Default)
|
|
|
|
SECTION:=utils
|
|
|
|
CATEGORY:=Utilities
|
|
|
|
DEPENDS:=+librt +libpthread +librtlsdr
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/rtl-sdr/description
|
|
|
|
$(call Package/rtl-sdr/Default/description)
|
|
|
|
|
|
|
|
This package contains the utilities and daemons.
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/librtlsdr
|
|
|
|
$(call Package/rtl-sdr/Default)
|
|
|
|
TITLE+= shared library
|
|
|
|
SECTION:=libs
|
|
|
|
CATEGORY:=Libraries
|
|
|
|
TITLE+= library
|
|
|
|
DEPENDS:=+libusb-1.0
|
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/librtlsdr/description
|
|
|
|
$(call Package/rtl-sdr/Default/description)
|
|
|
|
|
|
|
|
This package contains the librtlsdr shared library.
|
|
|
|
endef
|
|
|
|
|
|
|
|
TARGET_CFLAGS += $(FPIC)
|
|
|
|
|
|
|
|
define Build/InstallDev
|
|
|
|
$(INSTALL_DIR) $(1)/usr/include
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librtlsdr.so* $(1)/usr/lib/
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib/pkgconfig
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/librtlsdr.pc $(1)/usr/lib/pkgconfig/
|
|
|
|
endef
|
|
|
|
|
2020-05-08 23:43:57 +02:00
|
|
|
define Package/rtl-sdr/conffiles
|
|
|
|
/etc/config/rtl_tcp
|
|
|
|
endef
|
|
|
|
|
2014-06-12 22:53:38 +02:00
|
|
|
define Package/rtl-sdr/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/bin
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/bin/rtl_* $(1)/usr/bin/
|
2016-01-25 20:11:02 +01:00
|
|
|
$(INSTALL_DIR) $(1)/etc/init.d
|
|
|
|
$(INSTALL_BIN) files/rtl_tcp.init $(1)/etc/init.d/rtl_tcp
|
|
|
|
$(INSTALL_DIR) $(1)/etc/config
|
|
|
|
$(INSTALL_CONF) files/rtl_tcp.config $(1)/etc/config/rtl_tcp
|
2014-06-12 22:53:38 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define Package/librtlsdr/install
|
|
|
|
$(INSTALL_DIR) $(1)/usr/lib
|
|
|
|
$(CP) $(PKG_INSTALL_DIR)/usr/lib/librtlsdr.so* $(1)/usr/lib/
|
|
|
|
endef
|
|
|
|
|
|
|
|
$(eval $(call BuildPackage,rtl-sdr))
|
|
|
|
$(eval $(call BuildPackage,librtlsdr))
|