[packages] rtl-sdr: Moved to github feed
Signed-off-by: Vasilis Tsiligiannis <acinonyx@openwrt.gr> git-svn-id: svn://svn.openwrt.org/openwrt/packages@41174 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
be7281bb02
commit
ebbc9031ac
@ -1,88 +0,0 @@
|
||||
#
|
||||
# Copyright (C) 2013 OpenWrt.org
|
||||
#
|
||||
# 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
|
||||
PKG_VERSION:=2013-06-12
|
||||
PKG_RELEASE:=$(PKG_SOURCE_VERSION)
|
||||
|
||||
PKG_SOURCE_PROTO:=git
|
||||
PKG_SOURCE_URL:=git://git.osmocom.org/rtl-sdr.git
|
||||
PKG_SOURCE_SUBDIR:=$(PKG_NAME)-$(PKG_VERSION)
|
||||
PKG_SOURCE_VERSION:=8c3a99c8f7a88d7d2a05845d4b20cfcdacac4054
|
||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION)-$(PKG_SOURCE_VERSION).tar.gz
|
||||
CMAKE_INSTALL:=1
|
||||
|
||||
PKG_LICENSE:=GPLv2
|
||||
PKG_LICENSE_FILES:=COPYING
|
||||
|
||||
PKG_MAINTAINER:=Vasilis Tsiligiannis <b_tsiligiannis@silverton.gr>
|
||||
|
||||
include $(INCLUDE_DIR)/package.mk
|
||||
include $(INCLUDE_DIR)/cmake.mk
|
||||
|
||||
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
|
||||
|
||||
define Package/rtl-sdr/install
|
||||
$(INSTALL_DIR) $(1)/usr/bin
|
||||
$(CP) $(PKG_INSTALL_DIR)/usr/bin/rtl_* $(1)/usr/bin/
|
||||
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))
|
Loading…
x
Reference in New Issue
Block a user