slang: revert parallelized build
[ipfire-2.x.git] / lfs / opus
CommitLineData
a7775d4d
JS
1###############################################################################
2# #
3# IPFire.org - A linux based firewall #
eee037b8 4# Copyright (C) 2007-2018 IPFire Team <info@ipfire.org> #
a7775d4d
JS
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
25include Config
26
4a9e4a91 27VER = 1.2.1
a7775d4d
JS
28
29THISAPP = opus-$(VER)
30DL_FILE = $(THISAPP).tar.gz
31DL_FROM = $(URL_IPFIRE)
32DIR_APP = $(DIR_SRC)/$(THISAPP)
33TARGET = $(DIR_INFO)/$(THISAPP)
34PROG = opus
4a9e4a91 35PAK_VER = 2
a7775d4d
JS
36
37DEPS = ""
38
39###############################################################################
40# Top-level Rules
41###############################################################################
42
43objects = $(DL_FILE)
44
45$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
46
4a9e4a91 47$(DL_FILE)_MD5 = 54bc867f13066407bc7b95be1fede090
a7775d4d
JS
48
49install : $(TARGET)
50check : $(patsubst %,$(DIR_CHK)/%,$(objects))
a9d0172b 51
a7775d4d 52download :$(patsubst %,$(DIR_DL)/%,$(objects))
a9d0172b 53
a7775d4d 54md5 : $(subst %,%_MD5,$(objects))
a9d0172b
MT
55
56dist:
a7775d4d 57 $(PAK)
a9d0172b 58
a7775d4d
JS
59###############################################################################
60# Downloading, checking, md5sum
61###############################################################################
a9d0172b 62
a7775d4d
JS
63$(patsubst %,$(DIR_CHK)/%,$(objects)) :
64 @$(CHECK)
a9d0172b 65
a7775d4d
JS
66$(patsubst %,$(DIR_DL)/%,$(objects)) :
67 @$(LOAD)
68
69$(subst %,%_MD5,$(objects)) :
70 @$(MD5)
a9d0172b 71
a7775d4d
JS
72###############################################################################
73# Installation Details
74###############################################################################
a9d0172b 75
a7775d4d
JS
76$(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
77 @$(PREBUILD)
a9d0172b 78 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar zxf $(DIR_DL)/$(DL_FILE)
a7775d4d 79 cd $(DIR_APP) && ./configure --prefix=/usr --libdir=/usr/lib
20f79e19 80 cd $(DIR_APP) && make $(MAKETUNING)
a7775d4d
JS
81 cd $(DIR_APP) && make install
82 @rm -rf $(DIR_APP)
83 @$(POSTBUILD)