liburcu: Update to 0.8.6
[feed/packages.git] / libs / alsa-lib / Makefile
1 #
2 # Copyright (C) 2006-2014 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.0.28
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://alsa.cybermirror.org/lib/
17 PKG_MD5SUM:=c9e21b88a2b3e6e12ea7ba0f3b271fc3
18 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
19
20 PKG_LICENSE:=LGPLv2.1 GPLv2
21 PKG_LICENSE_FILE:=COPYING aserver/COPYING
22
23 PKG_FIXUP:=autoreconf
24 PKG_INSTALL:=1
25 PKG_USE_MIPS16:=0
26 PKG_CHECK_FORMAT_SECURITY:=0
27
28 include $(INCLUDE_DIR)/package.mk
29
30 define Package/alsa-lib
31 SECTION:=libs
32 CATEGORY:=Libraries
33 TITLE:=ALSA (Advanced Linux Sound Architecture) library
34 URL:=http://www.alsa-project.org/
35 MAINTAINER:=Peter Wagner <tripolar@gmx.at>
36 DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
37 endef
38
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.
42 endef
43
44 TARGET_CFLAGS += $(FPIC)
45
46 define Build/Configure
47 $(call Build/Configure/Default, \
48 --disable-python \
49 --disable-debug \
50 --without-debug \
51 $(SOFT_FLOAT_CONFIG_OPTION) \
52 --with-versioned=no \
53 )
54 endef
55
56 define Build/InstallDev
57 $(INSTALL_DIR) $(1)/usr/include/
58 $(CP) \
59 $(PKG_INSTALL_DIR)/usr/include/alsa \
60 $(1)/usr/include/
61
62 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
63 $(CP) \
64 $(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
65 $(1)/usr/lib/
66 $(INSTALL_DATA) \
67 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
68 $(1)/usr/lib/pkgconfig/
69
70 $(INSTALL_DIR) $(1)/usr/share/aclocal
71 $(INSTALL_DATA) \
72 $(PKG_INSTALL_DIR)/usr/share/aclocal/alsa.m4 \
73 $(1)/usr/share/aclocal/
74 endef
75
76 define Package/alsa-lib/install
77 $(INSTALL_DIR) $(1)/usr/lib
78 $(CP) \
79 $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
80 $(1)/usr/lib/
81
82 $(INSTALL_DIR) $(1)/usr/share/alsa/{cards,pcm}
83 $(INSTALL_DATA) \
84 $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
85 $(1)/usr/share/alsa/
86 $(INSTALL_DATA) \
87 $(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
88 $(1)/usr/share/alsa/pcm/
89 $(CP) \
90 $(PKG_INSTALL_DIR)/usr/share/alsa/cards/* \
91 $(1)/usr/share/alsa/cards/
92 endef
93
94 $(eval $(call BuildPackage,alsa-lib))