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.

91 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.0
  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:=69515ca73c3c4a212ef45160dea846c1
  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. CONFIGURE_ARGS+= \
  37. --disable-python \
  38. --disable-debug \
  39. --without-debug \
  40. $(SOFT_FLOAT_CONFIG_OPTION) \
  41. --with-versioned=no
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include/
  44. $(CP) \
  45. $(PKG_INSTALL_DIR)/usr/include/alsa \
  46. $(1)/usr/include/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  48. $(CP) \
  49. $(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
  50. $(1)/usr/lib/
  51. $(INSTALL_DATA) \
  52. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
  53. $(1)/usr/lib/pkgconfig/
  54. $(INSTALL_DIR) $(1)/usr/share/aclocal
  55. $(INSTALL_DATA) \
  56. $(PKG_INSTALL_DIR)/usr/share/aclocal/alsa.m4 \
  57. $(1)/usr/share/aclocal/
  58. endef
  59. define Package/alsa-lib/install
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) \
  62. $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
  63. $(1)/usr/lib/
  64. $(INSTALL_DIR) $(1)/usr/share/alsa/{cards,pcm}
  65. $(INSTALL_DATA) \
  66. $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
  67. $(1)/usr/share/alsa/
  68. $(INSTALL_DATA) \
  69. $(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
  70. $(1)/usr/share/alsa/pcm/
  71. $(CP) \
  72. $(PKG_INSTALL_DIR)/usr/share/alsa/cards/* \
  73. $(1)/usr/share/alsa/cards/
  74. endef
  75. $(eval $(call BuildPackage,alsa-lib))