2 # Copyright (C) 2006-2015 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
:=de67e0eca72474d6b1121037dafe1024
18 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>, \
19 Peter Wagner
<tripolar@gmx.at
>
21 PKG_LICENSE
:=LGPLv2.1 GPLv2
22 PKG_LICENSE_FILES
:=COPYING aserver
/COPYING
27 PKG_CHECK_FORMAT_SECURITY
:=0
29 include $(INCLUDE_DIR
)/package.mk
31 define Package
/alsa-lib
34 TITLE
:=ALSA
(Advanced Linux Sound Architecture
) library
35 URL
:=http
://www.alsa-project.org
/
36 DEPENDS
:=@AUDIO_SUPPORT
+kmod-sound-core
+libpthread
+librt
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
, \
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
,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
))