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.

94 lines
2.2 KiB

  1. #
  2. # Copyright (C) 2006-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:=alsa-lib
  9. PKG_VERSION:=1.0.29
  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:=de67e0eca72474d6b1121037dafe1024
  15. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \
  16. Peter Wagner <tripolar@gmx.at>
  17. PKG_LICENSE:=LGPLv2.1 GPLv2
  18. PKG_LICENSE_FILES:=COPYING aserver/COPYING
  19. PKG_FIXUP:=autoreconf
  20. PKG_INSTALL:=1
  21. PKG_USE_MIPS16:=0
  22. PKG_CHECK_FORMAT_SECURITY:=0
  23. include $(INCLUDE_DIR)/package.mk
  24. define Package/alsa-lib
  25. SECTION:=libs
  26. CATEGORY:=Libraries
  27. TITLE:=ALSA (Advanced Linux Sound Architecture) library
  28. URL:=http://www.alsa-project.org/
  29. DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
  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. TARGET_CFLAGS += $(FPIC)
  36. define Build/Configure
  37. $(call Build/Configure/Default, \
  38. --disable-python \
  39. --disable-debug \
  40. --without-debug \
  41. $(SOFT_FLOAT_CONFIG_OPTION) \
  42. --with-versioned=no \
  43. )
  44. endef
  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))