2 # Copyright (C) 2006-2016 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
://distfiles.gentoo.org
/distfiles
/
18 PKG_HASH
:=3cdc3a93a6427a26d8efab4ada2152e64dd89140d981f6ffa003e85be707aedf
19 PKG_MAINTAINER
:=Ted Hess
<thess@kitschensync.net
>, \
20 Peter Wagner
<tripolar@gmx.at
>
22 PKG_LICENSE
:=LGPLv2.1 GPLv2
23 PKG_LICENSE_FILES
:=COPYING aserver
/COPYING
28 PKG_CHECK_FORMAT_SECURITY
:=0
30 include $(INCLUDE_DIR
)/package.mk
32 define Package
/alsa-lib
35 TITLE
:=ALSA
(Advanced Linux Sound Architecture
) library
36 URL
:=http
://www.alsa-project.org
/
37 DEPENDS
:=@AUDIO_SUPPORT
+kmod-sound-core
+libpthread
+librt
40 define Package
/alsa-lib
/description
41 This is the library package for alsa
, needed by some userspace programs.
42 You must have enabled the ALSA support in the kernel.
45 define Package
/alsa-lib
/conffiles
49 TARGET_CFLAGS
+= $(FPIC
)
55 $(SOFT_FLOAT_CONFIG_OPTION
) \
58 define Build
/InstallDev
59 $(INSTALL_DIR
) $(1)/usr
/include/
61 $(PKG_INSTALL_DIR
)/usr
/include/alsa \
64 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
66 $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.
{la
,so
*} \
69 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/alsa.
pc \
70 $(1)/usr
/lib
/pkgconfig
/
72 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
74 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/alsa.m4 \
75 $(1)/usr
/share
/aclocal
/
78 define Package
/alsa-lib
/install
79 $(INSTALL_DIR
) $(1)/usr
/lib
81 $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.so.
* \
84 $(INSTALL_DIR
) $(1)/usr
/share
/alsa
/{cards
,pcm
}
86 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/alsa.conf \
89 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/pcm
/* \
90 $(1)/usr
/share
/alsa
/pcm
/
92 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/cards
/* \
93 $(1)/usr
/share
/alsa
/cards
/
96 $(eval
$(call BuildPackage
,alsa-lib
))