]> git.ipfire.org Git - ipfire-2.x.git/blob - lfs/ffmpeg
Merge branch 'next' into temp-c165-development
[ipfire-2.x.git] / lfs / ffmpeg
1 ###############################################################################
2 # #
3 # IPFire.org - A linux based firewall #
4 # Copyright (C) 2007-2021 IPFire Team <info@ipfire.org> #
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
27 SUMMARY = Library for working with various multimedia formats
28
29 VER = 4.4
30
31 THISAPP = ffmpeg-$(VER)
32 DL_FILE = $(THISAPP).tar.bz2
33 DL_FROM = $(URL_IPFIRE)
34 DIR_APP = $(DIR_SRC)/$(THISAPP)
35 TARGET = $(DIR_INFO)/$(THISAPP)
36 PROG = ffmpeg
37 PAK_VER = 13
38
39 DEPS = sdl2 lame libvorbis xvid
40
41 SERVICES =
42
43 ifeq "$(BUILD_ARCH)" "armv6l"
44 LDFLAGS += -latomic
45 endif
46
47 ifeq "$(BUILD_ARCH)" "riscv64"
48 LDFLAGS += -latomic
49 endif
50
51 ###############################################################################
52 # Top-level Rules
53 ###############################################################################
54
55 objects = $(DL_FILE)
56
57 $(DL_FILE) = $(DL_FROM)/$(DL_FILE)
58
59 $(DL_FILE)_MD5 = aa46d2168f30becd4fd3b22d2e8a91ec
60
61 install : $(TARGET)
62
63 check : $(patsubst %,$(DIR_CHK)/%,$(objects))
64
65 download :$(patsubst %,$(DIR_DL)/%,$(objects))
66
67 md5 : $(subst %,%_MD5,$(objects))
68
69 dist:
70 @$(PAK)
71
72 ###############################################################################
73 # Downloading, checking, md5sum
74 ###############################################################################
75
76 $(patsubst %,$(DIR_CHK)/%,$(objects)) :
77 @$(CHECK)
78
79 $(patsubst %,$(DIR_DL)/%,$(objects)) :
80 @$(LOAD)
81
82 $(subst %,%_MD5,$(objects)) :
83 @$(MD5)
84
85 ###############################################################################
86 # Installation Details
87 ###############################################################################
88
89 $(TARGET) : $(patsubst %,$(DIR_DL)/%,$(objects))
90 @$(PREBUILD)
91 @rm -rf $(DIR_APP) && cd $(DIR_SRC) && tar axf $(DIR_DL)/$(DL_FILE)
92
93 cd $(DIR_APP) && \
94 CFLAGS="$(CFLAGS)" \
95 LDFLAGS="$(LDFLAGS)" \
96 ./configure \
97 --prefix=/usr \
98 --enable-shared \
99 --disable-static \
100 --enable-gpl \
101 --enable-version3 \
102 --enable-avfilter \
103 --enable-avresample
104
105 cd $(DIR_APP) && make $(MAKETUNING)
106 cd $(DIR_APP) && make install
107 @rm -rf $(DIR_APP)
108 @$(POSTBUILD)