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
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/alsa-lib
27 TITLE
:=ALSA
(Advanced Linux Sound Architecture
) library
28 URL
:=http
://www.alsa-project.org
/
29 DEPENDS
:=@AUDIO_SUPPORT
+kmod-sound-core
+libpthread
+librt
32 define Package
/alsa-lib
/description
33 This is the library package for alsa
, needed by some userspace programs.
34 You must have enabled the ALSA support in the kernel.
37 TARGET_CFLAGS
+= $(FPIC
)
39 define Build
/Configure
40 $(call Build
/Configure
/Default
, \
45 $(SOFT_FLOAT_CONFIG_OPTION
) \
50 define Build
/InstallDev
51 $(INSTALL_DIR
) $(1)/usr
/include/
53 $(PKG_INSTALL_DIR
)/usr
/include/alsa \
56 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
58 $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.
{la
,a
,so
*} \
61 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/alsa.
pc \
62 $(1)/usr
/lib
/pkgconfig
/
64 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
66 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/alsa.m4 \
67 $(1)/usr
/share
/aclocal
/
70 define Package
/alsa-lib
/install
71 $(INSTALL_DIR
) $(1)/usr
/lib
73 $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.so.
* \
76 $(INSTALL_DIR
) $(1)/usr
/share
/alsa
/{cards
,pcm
}
78 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/alsa.conf \
81 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/pcm
/* \
82 $(1)/usr
/share
/alsa
/pcm
/
84 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/cards
/* \
85 $(1)/usr
/share
/alsa
/cards
/
88 $(eval
$(call BuildPackage
,alsa-lib
))