Root/alsa-lib/Makefile

Source at commit 1b3135c created 7 years 10 months ago.
By Xiangfu Liu, new package: SDL-widgets: a GUI toolkit on top of the SDL libraries
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=alsa-lib
11PKG_VERSION:=1.0.24.1
12PKG_RELEASE:=1
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15PKG_SOURCE_URL:=ftp://ftp.alsa-project.org/pub/lib/ \
16        http://alsa.cybermirror.org/lib/
17PKG_MD5SUM:=7cc05f25e1d5b65da8fb3fdcd540f226
18
19PKG_FIXUP:=libtool
20PKG_INSTALL:=1
21
22include $(INCLUDE_DIR)/package.mk
23
24ifeq ($(KERNEL),2.4)
25DEPENDS_KMOD:=+kmod-alsa
26else
27DEPENDS_KMOD:=+kmod-sound-core
28endif
29
30define 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
36endef
37
38define 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.
41endef
42
43TARGET_CFLAGS += $(FPIC)
44
45define 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    )
54endef
55
56define 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/
74endef
75
76define 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/
92endef
93
94$(eval $(call BuildPackage,alsa-lib))
95

Archive Download this file



interactive