Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. #
  2. # Copyright (C) 2015 OpenWrt.org
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=sbc
  9. PKG_VERSION:=1.3
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=https://www.kernel.org/pub/linux/bluetooth/
  13. PKG_MD5SUM:=2d8b7841f2c11ab287718d562f2b981c
  14. PKG_LICENSE:=LGPL-2.1+
  15. PKG_LICENSE_FILES:=COPYING.LIB
  16. PKG_MAINTAINER:=Dirk Neukirchen <dirkneukirchen@web.de>
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. include $(INCLUDE_DIR)/package.mk
  20. define Package/sbc
  21. SECTION:=libs
  22. CATEGORY:=Libraries
  23. TITLE:=sbc encoding library
  24. DEPENDS:=+libsndfile
  25. URL:=http://www.bluez.org
  26. endef
  27. define Package/sbc/description
  28. Low Complexity Subband Coding for bluetooth audio profiles encoding and decoding.
  29. Needed for A2DP support.
  30. endef
  31. define Build/InstallDev
  32. $(INSTALL_DIR) $(1)/usr/include/sbc
  33. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/sbc/sbc.h $(1)/usr/include/sbc/
  34. $(INSTALL_DIR) $(1)/usr/lib
  35. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsbc* $(1)/usr/lib/
  36. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  37. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sbc.pc $(1)/usr/lib/pkgconfig/
  38. endef
  39. define Package/sbc/install
  40. $(INSTALL_DIR) $(1)/usr/bin
  41. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sbc* $(1)/usr/bin/
  42. $(INSTALL_DIR) $(1)/usr/lib
  43. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsbc.so* $(1)/usr/lib/
  44. endef
  45. $(eval $(call BuildPackage,sbc))