2 # Copyright (C) 2006-2010 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
:=69129a7c37697f81ac092335e9fa452b
19 PKG_LICENSE
:=LGPLv2.1 GPLv2
20 PKG_LICENSE_FILE
:=COPYING aserver
/COPYING
26 include $(INCLUDE_DIR
)/package.mk
28 define Package
/alsa-lib
31 TITLE
:=ALSA
(Advanced Linux Sound Architecture
) library
32 URL
:=http
://www.alsa-project.org
/
33 DEPENDS
:=@AUDIO_SUPPORT
+kmod-sound-core
+libpthread
+librt
36 define Package
/alsa-lib
/description
37 This is the library package for alsa
, needed by some userspace programs.
38 You must have enabled the ALSA support in the kernel.
41 TARGET_CFLAGS
+= $(FPIC
)
43 define Build
/Configure
44 $(call Build
/Configure
/Default
, \
48 $(SOFT_FLOAT_CONFIG_OPTION
) \
53 define Build
/InstallDev
54 $(INSTALL_DIR
) $(1)/usr
/include/
56 $(PKG_INSTALL_DIR
)/usr
/include/alsa \
59 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
61 $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.
{la
,so
*} \
64 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/alsa.
pc \
65 $(1)/usr
/lib
/pkgconfig
/
67 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
69 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/alsa.m4 \
70 $(1)/usr
/share
/aclocal
/
73 define Package
/alsa-lib
/install
74 $(INSTALL_DIR
) $(1)/usr
/lib
76 $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.so.
* \
79 $(INSTALL_DIR
) $(1)/usr
/share
/alsa
/{cards
,pcm
}
81 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/alsa.conf \
84 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/pcm
/* \
85 $(1)/usr
/share
/alsa
/pcm
/
87 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/cards
/* \
88 $(1)/usr
/share
/alsa
/cards
/
91 $(eval
$(call BuildPackage
,alsa-lib
))