[Buildroot] [git commit branch/next] package/rtl_433: new package
Yann E. MORIN
yann.morin.1998 at free.fr
Sun Aug 1 14:20:51 UTC 2021
commit: https://git.buildroot.net/buildroot/commit/?id=4634e84978a3e64e9050021d209a41cd88a1ad16
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/next
rtl_433 (despite the name) is a generic data receiver, mainly for the
433.92 MHz, 868 MHz (SRD), 315 MHz, 345 MHz, and 915 MHz ISM bands.
https://github.com/merbanan/rtl_433
Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
[yann.morin.1998 at free.fr: forcibly disable building docs and tests]
Signed-off-by: Yann E. MORIN <yann.morin.1998 at free.fr>
---
DEVELOPERS | 1 +
package/Config.in | 1 +
package/rtl_433/Config.in | 16 ++++++++++++++++
package/rtl_433/rtl_433.hash | 4 ++++
package/rtl_433/rtl_433.mk | 32 ++++++++++++++++++++++++++++++++
5 files changed, 54 insertions(+)
diff --git a/DEVELOPERS b/DEVELOPERS
index e73f2dfd7a..1547ff123b 100644
--- a/DEVELOPERS
+++ b/DEVELOPERS
@@ -912,6 +912,7 @@ F: package/python-jedi/
F: package/python-parso/
F: package/python-yatl/
F: package/rocksdb/
+F: package/rtl_433/
F: package/rygel/
F: package/safeclib/
F: package/snort3/
diff --git a/package/Config.in b/package/Config.in
index 2598565234..046c04e994 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -2071,6 +2071,7 @@ menu "Miscellaneous"
source "package/proj/Config.in"
source "package/qemu/Config.in"
source "package/qpdf/Config.in"
+ source "package/rtl_433/Config.in"
source "package/shared-mime-info/Config.in"
source "package/sunwait/Config.in"
source "package/taskd/Config.in"
diff --git a/package/rtl_433/Config.in b/package/rtl_433/Config.in
new file mode 100644
index 0000000000..5664227c82
--- /dev/null
+++ b/package/rtl_433/Config.in
@@ -0,0 +1,16 @@
+config BR2_PACKAGE_RTL_433
+ bool "rtl_433"
+ depends on BR2_USE_MMU # fork()
+ depends on !BR2_STATIC_LIBS
+ depends on BR2_TOOLCHAIN_HAS_THREADS
+ select BR2_PACKAGE_LIBOPENSSL_ENABLE_PSK if BR2_PACKAGE_LIBOPENSSL
+ help
+ rtl_433 (despite the name) is a generic data receiver, mainly
+ for the 433.92 MHz, 868 MHz (SRD), 315 MHz, 345 MHz, and 915
+ MHz ISM bands.
+
+ https://github.com/merbanan/rtl_433
+
+comment "rtl_433 needs a toolchain w/ dynamic library, threads"
+ depends on BR2_USE_MMU
+ depends on BR2_STATIC_LIBS || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/rtl_433/rtl_433.hash b/package/rtl_433/rtl_433.hash
new file mode 100644
index 0000000000..9ace444b78
--- /dev/null
+++ b/package/rtl_433/rtl_433.hash
@@ -0,0 +1,4 @@
+# Locally calculated
+sha256 d8b87535b4e65264018771b6b288259d81137482fc938d01e0c03ac071c03bd5 rtl_433-21.05.tar.gz
+# License file, locally calculated
+sha256 ab15fd526bd8dd18a9e77ebc139656bf4d33e97fc7238cd11bf60e2b9b8666c6 COPYING
diff --git a/package/rtl_433/rtl_433.mk b/package/rtl_433/rtl_433.mk
new file mode 100644
index 0000000000..e6d28721fa
--- /dev/null
+++ b/package/rtl_433/rtl_433.mk
@@ -0,0 +1,32 @@
+################################################################################
+#
+# rtl_433
+#
+################################################################################
+
+RTL_433_VERSION = 21.05
+RTL_433_SITE = $(call github,merbanan,rtl_433,$(RTL_433_VERSION))
+RTL_433_LICENSE = GPL-2.0+
+RTL_433_LICENSE_FILES = COPYING
+
+RTL_433_CONF_OPTS = \
+ -DBUILD_DOCUMENTATION=OFF \
+ -DBUILD_TESTING=OFF \
+ -DBUILD_TESTING_ANALYZER=OFF \
+ -DENABLE_SOAPYSDR=OFF
+
+ifeq ($(BR2_PACKAGE_LIBRTLSDR),y)
+RTL_433_DEPENDENCIES += librtlsdr
+RTL_433_CONF_OPTS += -DENABLE_RTLSDR=ON
+else
+RTL_433_CONF_OPTS += -DENABLE_RTLSDR=OFF
+endif
+
+ifeq ($(BR2_PACKAGE_OPENSSL),y)
+RTL_433_DEPENDENCIES += openssl
+RTL_433_CONF_OPTS += -DENABLE_OPENSSL=ON
+else
+RTL_433_CONF_OPTS += -DENABLE_OPENSSL=OFF
+endif
+
+$(eval $(cmake-package))
More information about the buildroot
mailing list