[packages] licensing: Licensing metadata added to many packages
[openwrt/svn-archive/archive.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_LICENSE:=LGPLv2.1 GPLv2
20 PKG_LICENSE_FILE:=COPYING aserver/COPYING
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/alsa-lib
28 SECTION:=libs
29 CATEGORY:=Libraries
30 TITLE:=ALSA (Advanced Linux Sound Architecture) library
31 URL:=http://www.alsa-project.org/
32 DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
33 endef
34
35 define Package/alsa-lib/description
36 This is the library package for alsa, needed by some userspace programs.
37 You must have enabled the ALSA support in the kernel.
38 endef
39
40 TARGET_CFLAGS += $(FPIC)
41
42 define Build/Configure
43 $(call Build/Configure/Default, \
44 --enable-static \
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,a,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))