alsa-lib: update to 1.1.8
[feed/packages.git] / libs / alsa-lib / Makefile
1 #
2 # Copyright (C) 2006-2016 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=alsa-lib
11 PKG_VERSION:=1.1.8
12 PKG_RELEASE:=1
13
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/
17
18 PKG_HASH:=3cdc3a93a6427a26d8efab4ada2152e64dd89140d981f6ffa003e85be707aedf
19 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \
20 Peter Wagner <tripolar@gmx.at>
21
22 PKG_LICENSE:=LGPLv2.1 GPLv2
23 PKG_LICENSE_FILES:=COPYING aserver/COPYING
24
25 PKG_FIXUP:=autoreconf
26 PKG_INSTALL:=1
27 PKG_USE_MIPS16:=0
28 PKG_CHECK_FORMAT_SECURITY:=0
29
30 include $(INCLUDE_DIR)/package.mk
31
32 define Package/alsa-lib
33 SECTION:=libs
34 CATEGORY:=Libraries
35 TITLE:=ALSA (Advanced Linux Sound Architecture) library
36 URL:=http://www.alsa-project.org/
37 DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
38 endef
39
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.
43 endef
44
45 define Package/alsa-lib/conffiles
46 /etc/asound.conf
47 endef
48
49 TARGET_CFLAGS += $(FPIC)
50
51 CONFIGURE_ARGS+= \
52 --disable-python \
53 --disable-debug \
54 --without-debug \
55 $(SOFT_FLOAT_CONFIG_OPTION) \
56 --with-versioned=no
57
58 define Build/InstallDev
59 $(INSTALL_DIR) $(1)/usr/include/
60 $(CP) \
61 $(PKG_INSTALL_DIR)/usr/include/alsa \
62 $(1)/usr/include/
63
64 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
65 $(CP) \
66 $(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
67 $(1)/usr/lib/
68 $(INSTALL_DATA) \
69 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
70 $(1)/usr/lib/pkgconfig/
71
72 $(INSTALL_DIR) $(1)/usr/share/aclocal
73 $(INSTALL_DATA) \
74 $(PKG_INSTALL_DIR)/usr/share/aclocal/alsa.m4 \
75 $(1)/usr/share/aclocal/
76 endef
77
78 define Package/alsa-lib/install
79 $(INSTALL_DIR) $(1)/usr/lib
80 $(CP) \
81 $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
82 $(1)/usr/lib/
83
84 $(INSTALL_DIR) $(1)/usr/share/alsa/{cards,pcm}
85 $(INSTALL_DATA) \
86 $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
87 $(1)/usr/share/alsa/
88 $(INSTALL_DATA) \
89 $(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
90 $(1)/usr/share/alsa/pcm/
91 $(CP) \
92 $(PKG_INSTALL_DIR)/usr/share/alsa/cards/* \
93 $(1)/usr/share/alsa/cards/
94 endef
95
96 $(eval $(call BuildPackage,alsa-lib))