frr: add support for BGP MD5 authentication
[feed/packages.git] / libs / alsa-lib / Makefile
1 #
2 # Copyright (C) 2006-2016 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.2.11
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
15 PKG_SOURCE_URL:=https://www.alsa-project.org/files/pub/lib/ \
16 https://distfiles.gentoo.org/distfiles/
17 PKG_HASH:=9f3f2f69b995f9ad37359072fbc69a3a88bfba081fc83e9be30e14662795bb4d
18
19 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>, \
20 Peter Wagner <tripolar@gmx.at>
21
22 PKG_FIXUP:=autoreconf
23 PKG_INSTALL:=1
24 PKG_BUILD_PARALLEL:=1
25 PKG_BUILD_FLAGS:=no-mips16 no-lto
26
27 include $(INCLUDE_DIR)/package.mk
28
29 define Package/alsa-lib
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=ALSA (Advanced Linux Sound Architecture) library
33 URL:=https://www.alsa-project.org/
34 DEPENDS:=@AUDIO_SUPPORT +kmod-sound-core +libpthread +librt
35 LICENSE:=LGPL-2.1-or-later
36 LICENSE_FILES:=COPYING
37 endef
38
39 define Package/alsa-lib/description
40 This is the library package for alsa, needed by some userspace programs.
41 You must have enabled the ALSA support in the kernel.
42 endef
43
44 define Package/aserver
45 SECTION:=sound
46 CATEGORY:=Sound
47 TITLE:=ALSA (Advanced Linux Sound Architecture) server
48 URL:=https://www.alsa-project.org/
49 DEPENDS:=+alsa-lib
50 LICENSE:=GPL-2.0-or-later
51 LICENSE_FILES:=aserver/COPYING
52 endef
53
54 define Package/aserver/description
55 This is the aserver application for ALSA.
56 endef
57
58 define Package/alsa-lib/conffiles
59 /etc/asound.conf
60 endef
61
62 TARGET_CFLAGS += $(FPIC)
63
64 CONFIGURE_ARGS+= \
65 --disable-python \
66 --disable-debug \
67 --without-debug \
68 --without-versioned \
69 $(SOFT_FLOAT_CONFIG_OPTION)
70
71 define Build/InstallDev
72 $(INSTALL_DIR) $(1)/usr/include/
73 $(CP) \
74 $(PKG_INSTALL_DIR)/usr/include/alsa \
75 $(1)/usr/include/
76
77 $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
78 $(CP) \
79 $(PKG_INSTALL_DIR)/usr/lib/libasound.{la,so*} \
80 $(1)/usr/lib/
81 $(CP) \
82 $(PKG_INSTALL_DIR)/usr/lib/libatopology.{la,so*} \
83 $(1)/usr/lib/
84 $(INSTALL_DATA) \
85 $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/alsa.pc \
86 $(1)/usr/lib/pkgconfig/
87
88 $(INSTALL_DIR) $(1)/usr/share/aclocal
89 $(INSTALL_DATA) \
90 $(PKG_INSTALL_DIR)/usr/share/aclocal/alsa.m4 \
91 $(1)/usr/share/aclocal/
92 endef
93
94 define Package/alsa-lib/install
95 $(INSTALL_DIR) $(1)/usr/lib
96 $(CP) \
97 $(PKG_INSTALL_DIR)/usr/lib/libasound.so.* \
98 $(1)/usr/lib/
99 $(CP) \
100 $(PKG_INSTALL_DIR)/usr/lib/libatopology.so.* \
101 $(1)/usr/lib/
102
103 $(INSTALL_DIR) $(1)/usr/share/alsa/{cards,ctl,pcm}
104 $(INSTALL_DATA) \
105 $(PKG_INSTALL_DIR)/usr/share/alsa/alsa.conf \
106 $(1)/usr/share/alsa/
107 $(INSTALL_DATA) \
108 $(PKG_INSTALL_DIR)/usr/share/alsa/ctl/* \
109 $(1)/usr/share/alsa/ctl/
110 $(INSTALL_DATA) \
111 $(PKG_INSTALL_DIR)/usr/share/alsa/pcm/* \
112 $(1)/usr/share/alsa/pcm/
113 $(CP) \
114 $(PKG_INSTALL_DIR)/usr/share/alsa/cards/* \
115 $(1)/usr/share/alsa/cards/
116 endef
117
118 define Package/aserver/install
119 $(INSTALL_DIR) $(1)/usr/bin
120 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/aserver $(1)/usr/bin
121 endef
122
123 $(eval $(call BuildPackage,alsa-lib))
124 $(eval $(call BuildPackage,aserver))