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
/
18 PKG_MD5SUM
:=6e9080ba1faa5d3739d14dd76c62d8dc
23 include $(INCLUDE_DIR
)/package.mk
26 DEPENDS_KMOD
:=+kmod-alsa
28 DEPENDS_KMOD
:=+kmod-sound-core
31 define Package
/alsa-lib
34 TITLE
:=ALSA
(Advanced Linux Sound Architecture
) library
35 URL
:=http
://www.alsa-project.org
/
36 DEPENDS
:=@USB_SUPPORT
$(DEPENDS_KMOD
)
39 define Package
/alsa-lib
/description
40 This is the library package for alsa
, needed by some userspace programs.
41 You must have enabled the ALSA support in the kernel.
44 TARGET_CFLAGS
+= $(FPIC
)
46 define Build
/Configure
47 $(call Build
/Configure
/Default
, \
52 $(SOFT_FLOAT_CONFIG_OPTION
) \
57 define Build
/InstallDev
58 $(INSTALL_DIR
) $(1)/usr
/include/
60 $(PKG_INSTALL_DIR
)/usr
/include/alsa \
63 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
65 $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.
{la
,a
,so
*} \
68 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/alsa.
pc \
69 $(1)/usr
/lib
/pkgconfig
/
71 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
73 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/alsa.m4 \
74 $(1)/usr
/share
/aclocal
/
77 define Package
/alsa-lib
/install
78 $(INSTALL_DIR
) $(1)/usr
/lib
80 $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.so.
* \
83 $(INSTALL_DIR
) $(1)/usr
/share
/alsa
/{cards
,pcm
}
85 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/alsa.conf \
88 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/pcm
/* \
89 $(1)/usr
/share
/alsa
/pcm
/
91 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/cards
/* \
92 $(1)/usr
/share
/alsa
/cards
/
95 $(eval
$(call BuildPackage
,alsa-lib
))