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
:=7cc05f25e1d5b65da8fb3fdcd540f226
19 PKG_LICENSE
:=LGPLv2.1 GPLv2
20 PKG_LICENSE_FILE
:=COPYING aserver
/COPYING
25 include $(INCLUDE_DIR
)/package.mk
27 define Package
/alsa-lib
30 TITLE
:=ALSA
(Advanced Linux Sound Architecture
) library
31 URL
:=http
://www.alsa-project.org
/
32 DEPENDS
:=@AUDIO_SUPPORT
+kmod-sound-core
+libpthread
+librt
35 define Package
/alsa-lib
/description
36 This is the library package for alsa
, needed by some userspace programs.
37 You must have enabled the ALSA support in the kernel.
40 TARGET_CFLAGS
+= $(FPIC
)
42 define Build
/Configure
43 $(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
,a
,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
))