1 ###############################################################################
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2013 IPFire Team <info@ipfire.org> #
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. #
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. #
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/>. #
19 ###############################################################################
21 ###############################################################################
23 ###############################################################################
32 VERSUFIX = ipfire$(KCFG)
34 THISAPP = alsa-lib-$(VER)
35 DL_FILE = $(THISAPP).tar.bz2
36 DL_FROM = $(URL_IPFIRE)
37 DIR_APP = $(DIR_SRC)/$(THISAPP)
43 TARGET = $(DIR_INFO)/$(THISAPP)
45 ###############################################################################
47 ###############################################################################
49 objects = $(DL_FILE) alsa-utils-$(UVER).tar.bz2 alsa-firmware-$(FVER).tar.bz2
51 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
52 alsa-utils-$(UVER).tar.bz2 = $(DL_FROM)/alsa-utils-$(UVER).tar.bz2
53 alsa-firmware-$(FVER).tar.bz2 = $(DL_FROM)/alsa-firmware-$(FVER).tar.bz2
55 $(DL_FILE)_MD5 = 17102aaab10e9d4b19f6b02937bab015
56 alsa-utils-$(UVER).tar.bz2_MD5 = 3d81357b997744a139881ef72bc6921a
57 alsa-firmware-$(FVER).tar.bz2_MD5 = b373b350d5151dd7d64db2fc12936b04
61 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
63 download :$(patsubst %,$(DIR_DL)/%,$(objects))
65 md5 : $(subst %,%_MD5,$(objects))
70 ###############################################################################
71 # Downloading, checking, md5sum
72 ###############################################################################
74 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
77 $(patsubst %,$(DIR_DL)/%,$(objects)) :
80 $(subst %,%_MD5,$(objects)) :
83 ###############################################################################
84 # Installation Details
85 ###############################################################################
87 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
89 @rm -rf $(DIR_SRC)/alsa*
90 cd $(DIR_SRC) && tar jxf $(DIR_DL)/$(DL_FILE)
91 cd $(DIR_APP) && ./configure
92 cd $(DIR_APP) && make $(MAKETUNING) $(EXTRA_MAKE)
93 cd $(DIR_APP) && make install
94 cd $(DIR_SRC) && tar xfj $(DIR_DL)/alsa-utils-$(UVER).tar.bz2
95 cd $(DIR_SRC)/alsa-utils-$(UVER) && ./configure --disable-xmlto
96 cd $(DIR_SRC)/alsa-utils-$(UVER) && make $(MAKETUNING) $(EXTRA_MAKE)
97 cd $(DIR_SRC)/alsa-utils-$(UVER) && make install
98 cd $(DIR_SRC) && tar xfj $(DIR_DL)/alsa-firmware-$(FVER).tar.bz2
99 cd $(DIR_SRC)/alsa-firmware-$(FVER) && ./configure
100 cd $(DIR_SRC)/alsa-firmware-$(FVER) && make $(MAKETUNING) $(EXTRA_MAKE)
101 cd $(DIR_SRC)/alsa-firmware-$(FVER) && make install
102 @rm -rf $(DIR_SRC)/alsa*