]> git.ipfire.org Git - ipfire-2.x.git/blob - lfs/alsa
suricata: Change midstream policy to "pass-flow"
[ipfire-2.x.git] / lfs / alsa
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
5 # #
6 # This program is free software: you can redistribute it and/or modify #
7 # it under the terms of the GNU General Public License as published by #
8 # the Free Software Foundation, either version 3 of the License, or #
9 # (at your option) any later version. #
10 # #
11 # This program is distributed in the hope that it will be useful, #
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of #
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the #
14 # GNU General Public License for more details. #
15 # #
16 # You should have received a copy of the GNU General Public License #
17 # along with this program. If not, see <http://www.gnu.org/licenses/>. #
18 # #
19 ###############################################################################
20
21 ###############################################################################
22 # Definitions
23 ###############################################################################
24
25 include Config
26
27 SUMMARY = Advanced Linux Sound Architecture
28
29 VER = 1.2.10
30 UVER = 1.2.10
31 CVER = 1.2.10
32 FVER = 1.2.4
33
34 VERSUFIX = ipfire$(KCFG)
35
36 THISAPP = alsa-lib-$(VER)
37 DL_FILE = $(THISAPP).tar.bz2
38 DL_FROM = $(URL_IPFIRE)
39 DIR_APP = $(DIR_SRC)/$(THISAPP)
40 PROG = alsa
41 PAK_VER = 20
42
43 DEPS =
44
45 SERVICES =
46
47 TARGET = $(DIR_INFO)/$(THISAPP)
48
49 ###############################################################################
50 # Top-level Rules
51 ###############################################################################
52
53 objects = $(DL_FILE) alsa-utils-$(UVER).tar.bz2 alsa-firmware-$(FVER).tar.bz2 alsa-ucm-conf-$(CVER).tar.bz2
54
55
56 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
57 alsa-utils-$(UVER).tar.bz2 = $(DL_FROM)/alsa-utils-$(UVER).tar.bz2
58 alsa-firmware-$(FVER).tar.bz2 = $(DL_FROM)/alsa-firmware-$(FVER).tar.bz2
59 alsa-ucm-conf-$(CVER).tar.bz2 = $(DL_FROM)/alsa-ucm-conf-$(CVER).tar.bz2
60
61 $(DL_FILE)_BLAKE2 = b2e4f8431e61f5bb56b2b5d124e67d5a68bbca3c647bebfa93f5e5ff092ec9ef3f6cb6315801fcd93e21151784814ff238d357313b8b44f32d4e7c9ee565388f
62 alsa-utils-$(UVER).tar.bz2_BLAKE2 = 077b4ad090c1ab40dd4fa22db01ae2a080ca849a5564dfe612654993297c80bd3584541c7e68aaad56c4c05538ba0de449e4677b1c4a9dfe56d8e11706c4ca35
63 alsa-firmware-$(FVER).tar.bz2_BLAKE2 = 0f844f6cc4859b72635f24d347b4c790469aee39aa60d9addb2c168dcf06b48e7e3cbba26ff21c7e1f5aa355641eec7ab934cb09bfac8ca116a6ac6a7db9d548
64 alsa-ucm-conf-$(CVER).tar.bz2_BLAKE2 = 215842f1f59c2dea5e3f3fe880dc49d6263998746a50c2591b8a9786ead3afae2c713e179ff6e8caa518b3a8516a1b031872c1fad2a17fbd3afbb0390a803693
65
66 install : $(TARGET)
67
68 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
69
70 download :$(patsubst %,$(DIR_DL)/%,$(objects))
71
72 b2 : $(subst %,%_BLAKE2,$(objects))
73
74 dist:
75 @$(PAK)
76
77 ###############################################################################
78 # Downloading, checking, b2sum
79 ###############################################################################
80
81 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
82 @$(CHECK)
83
84 $(patsubst %,$(DIR_DL)/%,$(objects)) :
85 @$(LOAD)
86
87 $(subst %,%_BLAKE2,$(objects)) :
88 @$(B2SUM)
89
90 ###############################################################################
91 # Installation Details
92 ###############################################################################
93
94 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
95 @$(PREBUILD)
96 @rm -rf $(DIR_SRC)/alsa*
97 cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
98 cd $(DIR_APP) && tar xfj $(DIR_DL)/alsa-utils-$(UVER).tar.bz2
99 cd $(DIR_APP) && tar xfj $(DIR_DL)/alsa-firmware-$(FVER).tar.bz2
100 $(UPDATE_AUTOMAKE)
101 cd $(DIR_APP) && ./configure
102 cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
103 cd $(DIR_APP) && make install
104 cd $(DIR_APP)/alsa-utils-$(UVER) && ./configure --disable-xmlto
105 cd $(DIR_APP)/alsa-utils-$(UVER) && make $(MAKETUNING) $(EXTRA_MAKE)
106 cd $(DIR_APP)/alsa-utils-$(UVER) && make install
107 cd $(DIR_APP)/alsa-firmware-$(FVER) && ./configure
108 cd $(DIR_APP)/alsa-firmware-$(FVER) && make $(MAKETUNING) $(EXTRA_MAKE)
109 cd $(DIR_APP)/alsa-firmware-$(FVER) && make install
110 cd $(DIR_APP) && tar xfj $(DIR_DL)/alsa-ucm-conf-$(CVER).tar.bz2 \
111 -C /usr/share/alsa --strip-components=1 --wildcards "*/ucm2"
112 # install initscript
113 $(call INSTALL_INITSCRIPTS,alsa)
114 # install backup include file
115 install -v -m 644 ${DIR_SRC}/config/backup/includes/alsa \
116 /var/ipfire/backup/addons/includes/alsa
117 @rm -rf $(DIR_SRC)/alsa*
118 @$(POSTBUILD)