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.

121 lines
2.9 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.2.3.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://distfiles.gentoo.org/distfiles/
  14. PKG_HASH:=e81fc5b7afcaee8c9fd7f64a1e3043e88d62e9ad2c4cff55f578df6b0a9abe15
  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:=LGPL-2.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/aserver
  36. SECTION:=sound
  37. CATEGORY:=Sound
  38. TITLE:=ALSA (Advanced Linux Sound Architecture) server
  39. URL:=http://www.alsa-project.org/
  40. DEPENDS:=+alsa-lib
  41. LICENSE:=GPL-2.0-or-later
  42. LICENSE_FILES:=aserver/COPYING
  43. endef
  44. define Package/aserver/description
  45. This is the aserver application for ALSA.
  46. endef
  47. define Package/alsa-lib/conffiles
  48. /etc/asound.conf
  49. endef
  50. TARGET_CFLAGS += $(FPIC)
  51. CONFIGURE_ARGS+= \
  52. --disable-python \
  53. --disable-debug \
  54. --without-debug \
  55. --without-versioned \
  56. $(SOFT_FLOAT_CONFIG_OPTION)
  57. define Build/InstallDev
  58. $(INSTALL_DIR) $(1)/usr/include/
  59. $(CP) \
  60. $(PKG_INSTALL_DIR)/usr/include/alsa \
  61. $(1)/usr/include/
  62. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  63. $(CP) \
  64. $(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
  65. $(1)/usr/lib/
  66. $(CP) \
  67. $(PKG_INSTALL_DIR)/usr/lib/libatopology.{la,so*} \
  68. $(1)/usr/lib/
  69. $(INSTALL_DATA) \
  70. $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
  71. $(1)/usr/lib/pkgconfig/
  72. $(INSTALL_DIR) $(1)/usr/share/aclocal
  73. $(INSTALL_DATA) \
  74. $(PKG_INSTALL_DIR)/usr/share/aclocal/alsa.m4 \
  75. $(1)/usr/share/aclocal/
  76. endef
  77. define Package/alsa-lib/install
  78. $(INSTALL_DIR) $(1)/usr/lib
  79. $(CP) \
  80. $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
  81. $(1)/usr/lib/
  82. $(CP) \
  83. $(PKG_INSTALL_DIR)/usr/lib/libatopology.so.* \
  84. $(1)/usr/lib/
  85. $(INSTALL_DIR) $(1)/usr/share/alsa/{cards,pcm}
  86. $(INSTALL_DATA) \
  87. $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
  88. $(1)/usr/share/alsa/
  89. $(INSTALL_DATA) \
  90. $(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
  91. $(1)/usr/share/alsa/pcm/
  92. $(CP) \
  93. $(PKG_INSTALL_DIR)/usr/share/alsa/cards/* \
  94. $(1)/usr/share/alsa/cards/
  95. endef
  96. define Package/aserver/install
  97. $(INSTALL_DIR) $(1)/usr/bin
  98. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aserver $(1)/usr/bin
  99. endef
  100. $(eval $(call BuildPackage,alsa-lib))
  101. $(eval $(call BuildPackage,aserver))