]>
Commit | Line | Data |
---|---|---|
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 | ||
25 | include Config | |
26 | ||
f15707c7 | 27 | SUMMARY = Advanced Linux Sound Architecture |
2b2e03ed | 28 | |
cfd5dbf1 AF |
29 | VER = 1.2.9 |
30 | UVER = 1.2.9 | |
31 | CVER = 1.2.9 | |
ae367b9c | 32 | FVER = 1.2.4 |
bc8ca5e4 | 33 | |
fdf0c7c1 AF |
34 | VERSUFIX = ipfire$(KCFG) |
35 | ||
bc8ca5e4 MT |
36 | THISAPP = alsa-lib-$(VER) |
37 | DL_FILE = $(THISAPP).tar.bz2 | |
38 | DL_FROM = $(URL_IPFIRE) | |
39 | DIR_APP = $(DIR_SRC)/$(THISAPP) | |
bc8ca5e4 | 40 | PROG = alsa |
cfd5dbf1 | 41 | PAK_VER = 17 |
bc8ca5e4 | 42 | |
2dc2a278 | 43 | DEPS = |
bc8ca5e4 | 44 | |
d83b6fc6 | 45 | SERVICES = |
f15707c7 | 46 | |
1c547336 | 47 | TARGET = $(DIR_INFO)/$(THISAPP) |
2b2e03ed | 48 | |
bc8ca5e4 MT |
49 | ############################################################################### |
50 | # Top-level Rules | |
51 | ############################################################################### | |
52 | ||
cfd5dbf1 AF |
53 | objects = $(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 |
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 | |
cfd5dbf1 | 59 | alsa-ucm-conf-$(CVER).tar.bz2 = $(DL_FROM)/alsa-ucm-conf-$(CVER).tar.bz2 |
bc8ca5e4 | 60 | |
cfd5dbf1 AF |
61 | $(DL_FILE)_BLAKE2 = ec0c6966802196016679652292a579c6301cce33a2e887fce79cdb80629b6df047269787445cf0645e6cf43d3d2aae8fa57ddad5ab79fc254ee65a0ed695f449 |
62 | alsa-utils-$(UVER).tar.bz2_BLAKE2 = 9d75f63c7ff8b0d7ee835a1ad8fc242dee9b59770b1ad0ff9cd233caf50ac844323fb2ebb8e649f03a0a30a161ec72cba472ac79e390c3f0eb6e2a184d8f576c | |
9a7e4d85 | 63 | alsa-firmware-$(FVER).tar.bz2_BLAKE2 = 0f844f6cc4859b72635f24d347b4c790469aee39aa60d9addb2c168dcf06b48e7e3cbba26ff21c7e1f5aa355641eec7ab934cb09bfac8ca116a6ac6a7db9d548 |
cfd5dbf1 | 64 | alsa-ucm-conf-$(CVER).tar.bz2_BLAKE2 = fe71790aa8658ab12378baa55f95a03aaebd3eb0aef2535b65b89884de6cb404a75b44fd238d2089e0a005ca81720f3c44d1912452908e97aa75fcda513908cf |
bc8ca5e4 MT |
65 | |
66 | install : $(TARGET) | |
67 | ||
68 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
69 | ||
70 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
71 | ||
9a7e4d85 | 72 | b2 : $(subst %,%_BLAKE2,$(objects)) |
bc8ca5e4 | 73 | |
66c36198 | 74 | dist: |
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) |