2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
8 include $(TOPDIR)/rules.mk
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/ \
16 http://alsa.cybermirror.org/lib/
17 PKG_MD5SUM:=914685deb8c23cb4b940a4173cf8efe4
22 include $(INCLUDE_DIR)/package.mk
25 DEPENDS_KMOD:=+kmod-alsa
27 DEPENDS_KMOD:=+kmod-sound-core
30 define Package/alsa-lib
33 TITLE:=ALSA (Advanced Linux Sound Architecture) library
34 URL:=http://www.alsa-project.org/
35 DEPENDS:=@AUDIO_SUPPORT $(DEPENDS_KMOD)
38 define Package/alsa-lib/description
39 This is the library package for alsa, needed by some userspace programs.
40 You must have enabled the ALSA support in the kernel.
43 TARGET_CFLAGS += $(FPIC)
45 define Build/Configure
46 $(call Build/Configure/Default, \
51 $(SOFT_FLOAT_CONFIG_OPTION) \
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include/
59 $(PKG_INSTALL_DIR)/usr/include/alsa \
62 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
64 $(PKG_INSTALL_DIR)/usr/lib/libasound.{la,a,so*} \
67 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
68 $(1)/usr/lib/pkgconfig/
70 $(INSTALL_DIR) $(1)/usr/share/aclocal
72 $(PKG_INSTALL_DIR)/usr/share/aclocal/alsa.m4 \
73 $(1)/usr/share/aclocal/
76 define Package/alsa-lib/install
77 $(INSTALL_DIR) $(1)/usr/lib
79 $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
82 $(INSTALL_DIR) $(1)/usr/share/alsa/{cards,pcm}
84 $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
87 $(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
88 $(1)/usr/share/alsa/pcm/
90 $(PKG_INSTALL_DIR)/usr/share/alsa/cards/* \
91 $(1)/usr/share/alsa/cards/
94 $(eval $(call BuildPackage,alsa-lib))