]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/alsa
suricata: Change midstream policy to "pass-flow"
[people/pmueller/ipfire-2.x.git] / lfs / alsa
CommitLineData
bc8ca5e4 1###############################################################################
bc8ca5e4 2# #
70df8302 3# IPFire.org - A linux based firewall #
40d24dcd 4# Copyright (C) 2007-2023 IPFire Team <info@ipfire.org> #
70df8302
MT
5# #
6# This program is free software: you can redistribute it and/or modify #
bc8ca5e4 7# it under the terms of the GNU General Public License as published by #
70df8302 8# the Free Software Foundation, either version 3 of the License, or #
bc8ca5e4
MT
9# (at your option) any later version. #
10# #
70df8302 11# This program is distributed in the hope that it will be useful, #
bc8ca5e4
MT
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 #
70df8302 17# along with this program. If not, see <http://www.gnu.org/licenses/>. #
bc8ca5e4
MT
18# #
19###############################################################################
20
21###############################################################################
22# Definitions
23###############################################################################
24
25include Config
26
f15707c7 27SUMMARY = Advanced Linux Sound Architecture
2b2e03ed 28
270a3c53
AB
29VER = 1.2.10
30UVER = 1.2.10
31CVER = 1.2.10
ae367b9c 32FVER = 1.2.4
bc8ca5e4 33
fdf0c7c1
AF
34VERSUFIX = ipfire$(KCFG)
35
bc8ca5e4
MT
36THISAPP = alsa-lib-$(VER)
37DL_FILE = $(THISAPP).tar.bz2
38DL_FROM = $(URL_IPFIRE)
39DIR_APP = $(DIR_SRC)/$(THISAPP)
bc8ca5e4 40PROG = alsa
d3b2b046 41PAK_VER = 20
bc8ca5e4 42
2dc2a278 43DEPS =
bc8ca5e4 44
d83b6fc6 45SERVICES =
f15707c7 46
1c547336 47TARGET = $(DIR_INFO)/$(THISAPP)
2b2e03ed 48
bc8ca5e4
MT
49###############################################################################
50# Top-level Rules
51###############################################################################
52
cfd5dbf1
AF
53objects = $(DL_FILE) alsa-utils-$(UVER).tar.bz2 alsa-firmware-$(FVER).tar.bz2 alsa-ucm-conf-$(CVER).tar.bz2
54
bc8ca5e4
MT
55
56$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
a8a3fbc0
AF
57alsa-utils-$(UVER).tar.bz2 = $(DL_FROM)/alsa-utils-$(UVER).tar.bz2
58alsa-firmware-$(FVER).tar.bz2 = $(DL_FROM)/alsa-firmware-$(FVER).tar.bz2
cfd5dbf1 59alsa-ucm-conf-$(CVER).tar.bz2 = $(DL_FROM)/alsa-ucm-conf-$(CVER).tar.bz2
bc8ca5e4 60
270a3c53
AB
61$(DL_FILE)_BLAKE2 = b2e4f8431e61f5bb56b2b5d124e67d5a68bbca3c647bebfa93f5e5ff092ec9ef3f6cb6315801fcd93e21151784814ff238d357313b8b44f32d4e7c9ee565388f
62alsa-utils-$(UVER).tar.bz2_BLAKE2 = 077b4ad090c1ab40dd4fa22db01ae2a080ca849a5564dfe612654993297c80bd3584541c7e68aaad56c4c05538ba0de449e4677b1c4a9dfe56d8e11706c4ca35
9a7e4d85 63alsa-firmware-$(FVER).tar.bz2_BLAKE2 = 0f844f6cc4859b72635f24d347b4c790469aee39aa60d9addb2c168dcf06b48e7e3cbba26ff21c7e1f5aa355641eec7ab934cb09bfac8ca116a6ac6a7db9d548
270a3c53 64alsa-ucm-conf-$(CVER).tar.bz2_BLAKE2 = 215842f1f59c2dea5e3f3fe880dc49d6263998746a50c2591b8a9786ead3afae2c713e179ff6e8caa518b3a8516a1b031872c1fad2a17fbd3afbb0390a803693
bc8ca5e4
MT
65
66install : $(TARGET)
67
68check : $(patsubst %,$(DIR_CHK)/%,$(objects))
69
70download :$(patsubst %,$(DIR_DL)/%,$(objects))
71
9a7e4d85 72b2 : $(subst %,%_BLAKE2,$(objects))
bc8ca5e4 73
66c36198 74dist:
bc8ca5e4
MT
75 @$(PAK)
76
77###############################################################################
9a7e4d85 78# Downloading, checking, b2sum
bc8ca5e4
MT
79###############################################################################
80
81$(patsubst %,$(DIR_CHK)/%,$(objects)) :
82 @$(CHECK)
83
84$(patsubst %,$(DIR_DL)/%,$(objects)) :
85 @$(LOAD)
86
9a7e4d85
PM
87$(subst %,%_BLAKE2,$(objects)) :
88 @$(B2SUM)
bc8ca5e4
MT
89
90###############################################################################
91# Installation Details
92###############################################################################
93
94$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
95 @$(PREBUILD)
4ef84d05 96 @rm -rf $(DIR_SRC)/alsa*
4ef84d05 97 cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
71156719
MT
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)
68f7ce8f 101 cd $(DIR_APP) && ./configure
fcc53523 102 cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
bc8ca5e4 103 cd $(DIR_APP) && make install
71156719
MT
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
cfd5dbf1
AF
110 cd $(DIR_APP) && tar xfj $(DIR_DL)/alsa-ucm-conf-$(CVER).tar.bz2 \
111 -C /usr/share/alsa --strip-components=1 --wildcards "*/ucm2"
38888b3d 112 # install initscript
d83b6fc6
AB
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
bc8ca5e4
MT
117 @rm -rf $(DIR_SRC)/alsa*
118 @$(POSTBUILD)