]>
Commit | Line | Data |
---|---|---|
4dab22a1 AF |
1 | ############################################################################### |
2 | # # | |
3 | # IPFire.org - A linux based firewall # | |
aafdd71b | 4 | # Copyright (C) 2007-2021 IPFire Team <info@ipfire.org> # |
4dab22a1 AF |
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 | ||
f15707c7 RR |
27 | SUMMARY = Library for working with various multimedia formats |
28 | ||
b69b3818 | 29 | VER = 4.4 |
63bc6600 | 30 | |
8714488c | 31 | THISAPP = ffmpeg-$(VER) |
63bc6600 | 32 | DL_FILE = $(THISAPP).tar.bz2 |
4dab22a1 AF |
33 | DL_FROM = $(URL_IPFIRE) |
34 | DIR_APP = $(DIR_SRC)/$(THISAPP) | |
35 | TARGET = $(DIR_INFO)/$(THISAPP) | |
36 | PROG = ffmpeg | |
fd0e08fe | 37 | PAK_VER = 13 |
4dab22a1 | 38 | |
fd0e08fe | 39 | DEPS = sdl2 lame libvorbis xvid |
4dab22a1 | 40 | |
f15707c7 RR |
41 | SERVICES = |
42 | ||
aafdd71b | 43 | ifeq "$(BUILD_ARCH)" "armv6l" |
be28aade MT |
44 | LDFLAGS += -latomic |
45 | endif | |
46 | ||
47 | ifeq "$(BUILD_ARCH)" "riscv64" | |
48 | LDFLAGS += -latomic | |
49 | endif | |
50 | ||
4dab22a1 AF |
51 | ############################################################################### |
52 | # Top-level Rules | |
53 | ############################################################################### | |
54 | ||
55 | objects = $(DL_FILE) | |
56 | ||
57 | $(DL_FILE) = $(DL_FROM)/$(DL_FILE) | |
58 | ||
9a7e4d85 | 59 | $(DL_FILE)_BLAKE2 = a8dc007e260896228789d27339402e846cd21758e02c7a8d66a745ced2d1bbef4aa9c18c9b7cefef004b5ffa3fc859e2a2474c957bdf9ff27e82cec72ed4a5bf |
4dab22a1 AF |
60 | |
61 | install : $(TARGET) | |
62 | ||
63 | check : $(patsubst %,$(DIR_CHK)/%,$(objects)) | |
64 | ||
65 | download :$(patsubst %,$(DIR_DL)/%,$(objects)) | |
66 | ||
9a7e4d85 | 67 | b2 : $(subst %,%_BLAKE2,$(objects)) |
4dab22a1 | 68 | |
66c36198 | 69 | dist: |
4dab22a1 AF |
70 | @$(PAK) |
71 | ||
72 | ############################################################################### | |
9a7e4d85 | 73 | # Downloading, checking, b2sum |
4dab22a1 AF |
74 | ############################################################################### |
75 | ||
76 | $(patsubst %,$(DIR_CHK)/%,$(objects)) : | |
77 | @$(CHECK) | |
78 | ||
79 | $(patsubst %,$(DIR_DL)/%,$(objects)) : | |
80 | @$(LOAD) | |
81 | ||
9a7e4d85 PM |
82 | $(subst %,%_BLAKE2,$(objects)) : |
83 | @$(B2SUM) | |
4dab22a1 AF |
84 | |
85 | ############################################################################### | |
86 | # Installation Details | |
87 | ############################################################################### | |
88 | ||
89 | $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects)) | |
90 | @$(PREBUILD) | |
8714488c | 91 | @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE) |
ee11df68 | 92 | |
d73709d8 MT |
93 | cd $(DIR_APP) && \ |
94 | CFLAGS="$(CFLAGS)" \ | |
95 | LDFLAGS="$(LDFLAGS)" \ | |
96 | ./configure \ | |
63bc6600 MT |
97 | --prefix=/usr \ |
98 | --enable-shared \ | |
268cdcd5 | 99 | --disable-static \ |
63bc6600 MT |
100 | --enable-gpl \ |
101 | --enable-version3 \ | |
102 | --enable-avfilter \ | |
103 | --enable-avresample | |
8f6e4eaf | 104 | |
63bc6600 | 105 | cd $(DIR_APP) && make $(MAKETUNING) |
8714488c | 106 | cd $(DIR_APP) && make install |
1eec8480 | 107 | @rm -rf $(DIR_APP) |
4dab22a1 | 108 | @$(POSTBUILD) |