be2050e56b4f13404ac2487f66ea8d808e0e6381
[packages.git] / libs / alsa-lib / Makefile
1 #
2 # Copyright (C) 2006-2010 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.27.2
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:=69129a7c37697f81ac092335e9fa452b
18
19 PKG_LICENSE:=LGPLv2.1 GPLv2
20 PKG_LICENSE_FILE:=COPYING aserver/COPYING
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_USE_MIPS16:=0
25
26 include $(INCLUDE_DIR)/package.mk
27
28 define Package/alsa-lib
29   SECTION:=libs
30   CATEGORY:=Libraries
31   TITLE:=ALSA (Advanced Linux Sound Architecture) library
32   URL:=http://www.alsa-project.org/
33   DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
34 endef
35
36 define Package/alsa-lib/description
37  This is the library package for alsa, needed by some userspace programs.
38  You must have enabled the ALSA support in the kernel.
39 endef
40
41 TARGET_CFLAGS += $(FPIC)
42
43 define Build/Configure
44         $(call Build/Configure/Default, \
45                 --disable-python \
46                 --disable-debug \
47                 --without-debug \
48                 $(SOFT_FLOAT_CONFIG_OPTION) \
49                 --with-versioned=no \
50         )
51 endef
52
53 define Build/InstallDev
54         $(INSTALL_DIR) $(1)/usr/include/
55         $(CP) \
56                 $(PKG_INSTALL_DIR)/usr/include/alsa \
57                 $(1)/usr/include/
58
59         $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
60         $(CP) \
61                 $(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
62                 $(1)/usr/lib/
63         $(INSTALL_DATA) \
64                 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
65                 $(1)/usr/lib/pkgconfig/
66
67         $(INSTALL_DIR) $(1)/usr/share/aclocal
68         $(INSTALL_DATA) \
69                 $(PKG_INSTALL_DIR)/usr/share/aclocal/alsa.m4 \
70                 $(1)/usr/share/aclocal/
71 endef
72
73 define Package/alsa-lib/install
74         $(INSTALL_DIR) $(1)/usr/lib
75         $(CP) \
76                 $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
77                 $(1)/usr/lib/
78
79         $(INSTALL_DIR) $(1)/usr/share/alsa/{cards,pcm}
80         $(INSTALL_DATA) \
81                 $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
82                 $(1)/usr/share/alsa/
83         $(INSTALL_DATA) \
84                 $(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
85                 $(1)/usr/share/alsa/pcm/
86         $(CP) \
87                 $(PKG_INSTALL_DIR)/usr/share/alsa/cards/* \
88                 $(1)/usr/share/alsa/cards/
89 endef
90
91 $(eval $(call BuildPackage,alsa-lib))