xref: /OK3568_Linux_fs/buildroot/package/rtl_433/rtl_433.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# rtl_433
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunRTL_433_VERSION = 21.05
8*4882a593SmuzhiyunRTL_433_SITE = $(call github,merbanan,rtl_433,$(RTL_433_VERSION))
9*4882a593SmuzhiyunRTL_433_LICENSE = GPL-2.0+
10*4882a593SmuzhiyunRTL_433_LICENSE_FILES = COPYING
11*4882a593Smuzhiyun
12*4882a593Smuzhiyun# Force Release build to remove ASAN.
13*4882a593SmuzhiyunRTL_433_CONF_OPTS = \
14*4882a593Smuzhiyun	-DCMAKE_BUILD_TYPE=Release \
15*4882a593Smuzhiyun	-DBUILD_DOCUMENTATION=OFF \
16*4882a593Smuzhiyun	-DBUILD_TESTING=OFF \
17*4882a593Smuzhiyun	-DBUILD_TESTING_ANALYZER=OFF \
18*4882a593Smuzhiyun	-DENABLE_SOAPYSDR=OFF
19*4882a593Smuzhiyun
20*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBRTLSDR),y)
21*4882a593SmuzhiyunRTL_433_DEPENDENCIES += librtlsdr
22*4882a593SmuzhiyunRTL_433_CONF_OPTS += -DENABLE_RTLSDR=ON
23*4882a593Smuzhiyunelse
24*4882a593SmuzhiyunRTL_433_CONF_OPTS += -DENABLE_RTLSDR=OFF
25*4882a593Smuzhiyunendif
26*4882a593Smuzhiyun
27*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y)
28*4882a593SmuzhiyunRTL_433_DEPENDENCIES += openssl
29*4882a593SmuzhiyunRTL_433_CONF_OPTS += -DENABLE_OPENSSL=ON
30*4882a593Smuzhiyunelse
31*4882a593SmuzhiyunRTL_433_CONF_OPTS += -DENABLE_OPENSSL=OFF
32*4882a593Smuzhiyunendif
33*4882a593Smuzhiyun
34*4882a593Smuzhiyun$(eval $(cmake-package))
35