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.

96 lines
2.3 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.8
  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:=3cdc3a93a6427a26d8efab4ada2152e64dd89140d981f6ffa003e85be707aedf
  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. 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))