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.

93 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2006-2014 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.0.27.2
  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://alsa.cybermirror.org/lib/
  14. PKG_MD5SUM:=69129a7c37697f81ac092335e9fa452b
  15. PKG_LICENSE:=LGPLv2.1 GPLv2
  16. PKG_LICENSE_FILE:=COPYING aserver/COPYING
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_USE_MIPS16:=0
  20. PKG_CHECK_FORMAT_SECURITY:=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. MAINTAINER:=Peter Wagner <tripolar@gmx.at>
  28. DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
  29. endef
  30. define Package/alsa-lib/description
  31. This is the library package for alsa, needed by some userspace programs.
  32. You must have enabled the ALSA support in the kernel.
  33. endef
  34. TARGET_CFLAGS += $(FPIC)
  35. define Build/Configure
  36. $(call Build/Configure/Default, \
  37. --disable-python \
  38. --disable-debug \
  39. --without-debug \
  40. $(SOFT_FLOAT_CONFIG_OPTION) \
  41. --with-versioned=no \
  42. )
  43. endef
  44. define Build/InstallDev
  45. $(INSTALL_DIR) $(1)/usr/include/
  46. $(CP) \
  47. $(PKG_INSTALL_DIR)/usr/include/alsa \
  48. $(1)/usr/include/
  49. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  50. $(CP) \
  51. $(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
  52. $(1)/usr/lib/
  53. $(INSTALL_DATA) \
  54. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
  55. $(1)/usr/lib/pkgconfig/
  56. $(INSTALL_DIR) $(1)/usr/share/aclocal
  57. $(INSTALL_DATA) \
  58. $(PKG_INSTALL_DIR)/usr/share/aclocal/alsa.m4 \
  59. $(1)/usr/share/aclocal/
  60. endef
  61. define Package/alsa-lib/install
  62. $(INSTALL_DIR) $(1)/usr/lib
  63. $(CP) \
  64. $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
  65. $(1)/usr/lib/
  66. $(INSTALL_DIR) $(1)/usr/share/alsa/{cards,pcm}
  67. $(INSTALL_DATA) \
  68. $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
  69. $(1)/usr/share/alsa/
  70. $(INSTALL_DATA) \
  71. $(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
  72. $(1)/usr/share/alsa/pcm/
  73. $(CP) \
  74. $(PKG_INSTALL_DIR)/usr/share/alsa/cards/* \
  75. $(1)/usr/share/alsa/cards/
  76. endef
  77. $(eval $(call BuildPackage,alsa-lib))