You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
1.4 KiB

  1. #
  2. # Copyright (C) 2017 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. include $(TOPDIR)/rules.mk
  7. PKG_NAME:=rtl_433
  8. PKG_VERSION:=20.11
  9. PKG_RELEASE:=2
  10. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  11. PKG_SOURCE_URL:=https://codeload.github.com/merbanan/rtl_433/tar.gz/$(PKG_VERSION)?
  12. PKG_HASH:=12a5cb7a733ba352467522c704d5b685aa6137582dc18aaa444d4891c29ee839
  13. PKG_MAINTAINER:=Jasper Scholte <NightNL@outlook.com>
  14. PKG_LICENSE:=GPL-2.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. include $(INCLUDE_DIR)/package.mk
  17. include $(INCLUDE_DIR)/cmake.mk
  18. define Package/rtl_433
  19. TITLE:=Realtek RTL2832 based 433.92MHz generic data receiver
  20. SECTION:=utils
  21. CATEGORY:=Utilities
  22. DEPENDS:=+librtlsdr +rtl-sdr +libtool-bin
  23. URL:=https://github.com/merbanan/rtl_433
  24. endef
  25. define Package/rtl-sdr/description
  26. rtl_433 turns your Realtek RTL2832 based DVB dongle into a 433.92MHz generic data receiver.
  27. endef
  28. CMAKE_OPTIONS += -DENABLE_SOAPYSDR=NO
  29. define Build/InstallDev
  30. $(INSTALL_DIR) $(1)/usr/include
  31. $(CP) $(PKG_INSTALL_DIR)/usr/include/rtl_433.h $(1)/usr/include
  32. $(CP) $(PKG_INSTALL_DIR)/usr/include/rtl_433_devices.h $(1)/usr/include
  33. endef
  34. define Package/rtl_433/install
  35. $(INSTALL_DIR) $(1)/etc/rtl_433
  36. $(CP) $(PKG_INSTALL_DIR)/usr/etc/rtl_433/*.conf $(1)/etc/rtl_433
  37. $(INSTALL_DIR) $(1)/usr/bin
  38. $(CP) $(PKG_INSTALL_DIR)/usr/bin/rtl_433 $(1)/usr/bin
  39. endef
  40. $(eval $(call BuildPackage,rtl_433))