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