librtlsdr.mk 964 B

123456789101112131415161718192021222324252627282930313233
  1. ################################################################################
  2. #
  3. # librtlsdr
  4. #
  5. ################################################################################
  6. LIBRTLSDR_VERSION = ed0317e6a58c098874ac58b769cf2e609c18d9a5
  7. LIBRTLSDR_SITE = $(call github,steve-m,librtlsdr,$(LIBRTLSDR_VERSION))
  8. LIBRTLSDR_LICENSE = GPL-2.0+
  9. LIBRTLSDR_LICENSE_FILES = COPYING
  10. LIBRTLSDR_INSTALL_STAGING = YES
  11. # From git
  12. LIBRTLSDR_AUTORECONF = YES
  13. LIBRTLSDR_DEPENDENCIES = host-pkgconf libusb
  14. LIBRTLSDR_INSTALL_TARGET_OPTS = DESTDIR=$(TARGET_DIR) install
  15. ifeq ($(BR2_PACKAGE_HAS_UDEV),y)
  16. LIBRTLSDR_INSTALL_TARGET_OPTS += install-udev-rules
  17. endif
  18. ifeq ($(BR2_PACKAGE_LIBRTLSDR_DETACH_DRIVER),y)
  19. LIBRTLSDR_CONF_OPTS += --enable-driver-detach
  20. else
  21. LIBRTLSDR_CONF_OPTS += --disable-driver-detach
  22. endif
  23. ifeq ($(BR2_PACKAGE_LIBRTLSDR_ZEROCOPY),y)
  24. LIBRTLSDR_CONF_OPTS += --enable-zerocopy
  25. else
  26. LIBRTLSDR_CONF_OPTS += --disable-zerocopy
  27. endif
  28. $(eval $(autotools-package))