You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

60 lines
1.4 KiB

  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.4
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  12. PKG_SOURCE_URL:=@KERNEL/linux/bluetooth/
  13. PKG_HASH:=518bf46e6bb3dc808a95e1eabad26fdebe8a099c1e781c27ed7fca6c2f4a54c9
  14. PKG_LICENSE:=LGPL-2.1+
  15. PKG_LICENSE_FILES:=COPYING.LIB
  16. PKG_MAINTAINER:=
  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. TARGET_CFLAGS += -flto
  32. TARGET_LDFLAGS += -flto
  33. define Build/InstallDev
  34. $(INSTALL_DIR) $(1)/usr/include/sbc
  35. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/include/sbc/sbc.h $(1)/usr/include/sbc/
  36. $(INSTALL_DIR) $(1)/usr/lib
  37. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsbc* $(1)/usr/lib/
  38. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  39. $(INSTALL_DATA) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/sbc.pc $(1)/usr/lib/pkgconfig/
  40. endef
  41. define Package/sbc/install
  42. $(INSTALL_DIR) $(1)/usr/bin
  43. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/sbc* $(1)/usr/bin/
  44. $(INSTALL_DIR) $(1)/usr/lib
  45. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libsbc.so* $(1)/usr/lib/
  46. endef
  47. $(eval $(call BuildPackage,sbc))