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
:=91bb870c14d1c7c269213285eeed874fa3d28112077db061a3af8010d0885b76
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 TARGET_CFLAGS
+= $(FPIC
)
51 $(SOFT_FLOAT_CONFIG_OPTION
) \
54 define Build
/InstallDev
55 $(INSTALL_DIR
) $(1)/usr
/include/
57 $(PKG_INSTALL_DIR
)/usr
/include/alsa \
60 $(INSTALL_DIR
) $(1)/usr
/lib
/pkgconfig
62 $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.
{la
,so
*} \
65 $(PKG_INSTALL_DIR
)/usr
/lib
/pkgconfig
/alsa.
pc \
66 $(1)/usr
/lib
/pkgconfig
/
68 $(INSTALL_DIR
) $(1)/usr
/share
/aclocal
70 $(PKG_INSTALL_DIR
)/usr
/share
/aclocal
/alsa.m4 \
71 $(1)/usr
/share
/aclocal
/
74 define Package
/alsa-lib
/install
75 $(INSTALL_DIR
) $(1)/usr
/lib
77 $(PKG_INSTALL_DIR
)/usr
/lib
/libasound.so.
* \
80 $(INSTALL_DIR
) $(1)/usr
/share
/alsa
/{cards
,pcm
}
82 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/alsa.conf \
85 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/pcm
/* \
86 $(1)/usr
/share
/alsa
/pcm
/
88 $(PKG_INSTALL_DIR
)/usr
/share
/alsa
/cards
/* \
89 $(1)/usr
/share
/alsa
/cards
/
92 $(eval
$(call BuildPackage
,alsa-lib
))