Makefile 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. # This file is part of the OpenADK project. OpenADK is copyrighted
  2. # material, please see the LICENCE file in the top-level directory.
  3. include $(ADK_TOPDIR)/rules.mk
  4. PKG_NAME:= crda
  5. PKG_VERSION:= 1.1.3
  6. PKG_RELEASE:= 1
  7. PKG_HASH:= aa8a7fe92f0765986c421a5b6768a185375ac210393df0605ee132f6754825f0
  8. PKG_DESCR:= central regulatory domain agent for wireless networks
  9. PKG_SECTION:= net/wifi
  10. PKG_DEPENDS:= libnl
  11. PKG_BUILDDEP:= libnl
  12. PKG_URL:= http://wireless.kernel.org/en/developers/Regulatory
  13. PKG_SITES:= http://linuxwireless.org/download/crda/
  14. PKG_CFLINE_CRDA:= depends on ADK_BROKEN
  15. DISTFILES:= $(PKG_NAME)-$(PKG_VERSION).tar.bz2
  16. PKG_FLAVOURS_CRDA:= WITH_UDEV
  17. PKGFD_WITH_UDEV:= install shipped udev rules
  18. PKGFS_WITH_UDEV:= udev
  19. PKGFB_WITH_UDEV:= eudev
  20. PKG_CHOICES_CRDA:= WITH_LIBRESSL WITH_OPENSSL WITH_GCRYPT
  21. PKGCD_WITH_OPENSSL:= ssl support via openssl library
  22. PKGCB_WITH_OPENSSL:= openssl
  23. PKGCS_WITH_OPENSSL:= libopenssl
  24. PKGCD_WITH_LIBRESSL:= ssl support via libressl library
  25. PKGCB_WITH_LIBRESSL:= libressl
  26. PKGCS_WITH_LIBRESSL:= libressl
  27. PKGCD_WITH_GCRYPT:= ssl support via gcrypt library
  28. PKGCB_WITH_GCRYPT:= libgcrypt
  29. PKGCS_WITH_GCRYPT:= libgcrypt
  30. include $(ADK_TOPDIR)/mk/package.mk
  31. $(eval $(call PKG_template,CRDA,crda,$(PKG_VERSION)-$(PKG_RELEASE),$(PKG_DEPENDS),$(PKG_DESCR),$(PKG_SECTION)))
  32. CONFIG_STYLE:= manual
  33. ALL_TARGET:= all_noverify
  34. ifneq ($(ADK_PACKAGE_CRDA_WITH_OPENSSL),)
  35. XAKE_FLAGS+= USE_OPENSSL=1
  36. endif
  37. crda-install:
  38. $(INSTALL_DIR) $(IDIR_CRDA)/usr/sbin
  39. $(INSTALL_BIN) $(WRKINST)/sbin/{crda,regdbdump} \
  40. $(IDIR_CRDA)/usr/sbin
  41. ifneq ($(ADK_PACKAGE_CRDA_WITH_UDEV),)
  42. $(INSTALL_DIR) $(IDIR_CRDA)/lib/udev/rules.d
  43. $(INSTALL_DATA) $(WRKINST)/lib/udev/rules.d/85-regulatory.rules \
  44. $(IDIR_CRDA)/lib/udev/rules.d
  45. endif
  46. include $(ADK_TOPDIR)/mk/pkg-bottom.mk