[packages] babel: fix typo in initscript, bump release number
[packages.git] / libs / alsa-lib / Makefile
1 #
2 # Copyright (C) 2006 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.21a
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:=914685deb8c23cb4b940a4173cf8efe4
18
19 PKG_FIXUP:=libtool
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 ifeq ($(KERNEL),2.4)
25 DEPENDS_KMOD:=+kmod-alsa
26 else
27 DEPENDS_KMOD:=+kmod-sound-core
28 endif
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   DEPENDS:=@AUDIO_SUPPORT $(DEPENDS_KMOD)
36 endef
37
38 define Package/alsa-lib/description
39  This is the library package for alsa, needed by some userspace programs.
40  You must have enabled the ALSA support in the kernel.
41 endef
42
43 TARGET_CFLAGS += $(FPIC)
44
45 define Build/Configure
46         $(call Build/Configure/Default, \
47             --enable-static \
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,a,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))