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.

95 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2006-2016 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:=alsa-lib
  9. PKG_VERSION:=1.1.9
  10. PKG_RELEASE:=1
  11. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
  12. PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/ \
  13. http://distfiles.gentoo.org/distfiles/
  14. PKG_HASH:=488373aef5396682f3a411a6d064ae0ad196b9c96269d0bb912fbdeec94b994b
  15. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \
  16. Peter Wagner <tripolar@gmx.at>
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. PKG_USE_MIPS16:=0
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/alsa-lib
  23. SECTION:=libs
  24. CATEGORY:=Libraries
  25. TITLE:=ALSA (Advanced Linux Sound Architecture) library
  26. URL:=http://www.alsa-project.org/
  27. DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
  28. LICENSE:=LGPLv2.1-or-later
  29. LICENSE_FILES:=COPYING
  30. endef
  31. define Package/alsa-lib/description
  32. This is the library package for alsa, needed by some userspace programs.
  33. You must have enabled the ALSA support in the kernel.
  34. endef
  35. define Package/alsa-lib/conffiles
  36. /etc/asound.conf
  37. endef
  38. TARGET_CFLAGS += $(FPIC)
  39. CONFIGURE_ARGS+= \
  40. --disable-python \
  41. --disable-debug \
  42. --without-debug \
  43. $(SOFT_FLOAT_CONFIG_OPTION) \
  44. --with-versioned=no
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include/
  47. $(CP) \
  48. $(PKG_INSTALL_DIR)/usr/include/alsa \
  49. $(1)/usr/include/
  50. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  51. $(CP) \
  52. $(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
  53. $(1)/usr/lib/
  54. $(INSTALL_DATA) \
  55. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
  56. $(1)/usr/lib/pkgconfig/
  57. $(INSTALL_DIR) $(1)/usr/share/aclocal
  58. $(INSTALL_DATA) \
  59. $(PKG_INSTALL_DIR)/usr/share/aclocal/alsa.m4 \
  60. $(1)/usr/share/aclocal/
  61. endef
  62. define Package/alsa-lib/install
  63. $(INSTALL_DIR) $(1)/usr/lib
  64. $(CP) \
  65. $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
  66. $(1)/usr/lib/
  67. $(INSTALL_DIR) $(1)/usr/share/alsa/{cards,pcm}
  68. $(INSTALL_DATA) \
  69. $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
  70. $(1)/usr/share/alsa/
  71. $(INSTALL_DATA) \
  72. $(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
  73. $(1)/usr/share/alsa/pcm/
  74. $(CP) \
  75. $(PKG_INSTALL_DIR)/usr/share/alsa/cards/* \
  76. $(1)/usr/share/alsa/cards/
  77. endef
  78. $(eval $(call BuildPackage,alsa-lib))