]> git.ipfire.org Git - people/pmueller/ipfire-2.x.git/blame - lfs/ffmpeg
fetchmail: Update to version 6.4.34
[people/pmueller/ipfire-2.x.git] / lfs / ffmpeg
CommitLineData
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
25include Config
26
f15707c7
RR
27SUMMARY = Library for working with various multimedia formats
28
b69b3818 29VER = 4.4
63bc6600 30
8714488c 31THISAPP = ffmpeg-$(VER)
63bc6600 32DL_FILE = $(THISAPP).tar.bz2
4dab22a1
AF
33DL_FROM = $(URL_IPFIRE)
34DIR_APP = $(DIR_SRC)/$(THISAPP)
35TARGET = $(DIR_INFO)/$(THISAPP)
36PROG = ffmpeg
fd0e08fe 37PAK_VER = 13
4dab22a1 38
fd0e08fe 39DEPS = sdl2 lame libvorbis xvid
4dab22a1 40
f15707c7
RR
41SERVICES =
42
aafdd71b 43ifeq "$(BUILD_ARCH)" "armv6l"
be28aade
MT
44 LDFLAGS += -latomic
45endif
46
47ifeq "$(BUILD_ARCH)" "riscv64"
48 LDFLAGS += -latomic
49endif
50
4dab22a1
AF
51###############################################################################
52# Top-level Rules
53###############################################################################
54
55objects = $(DL_FILE)
56
57$(DL_FILE) = $(DL_FROM)/$(DL_FILE)
58
9a7e4d85 59$(DL_FILE)_BLAKE2 = a8dc007e260896228789d27339402e846cd21758e02c7a8d66a745ced2d1bbef4aa9c18c9b7cefef004b5ffa3fc859e2a2474c957bdf9ff27e82cec72ed4a5bf
4dab22a1
AF
60
61install : $(TARGET)
62
63check : $(patsubst %,$(DIR_CHK)/%,$(objects))
64
65download :$(patsubst %,$(DIR_DL)/%,$(objects))
66
9a7e4d85 67b2 : $(subst %,%_BLAKE2,$(objects))
4dab22a1 68
66c36198 69dist:
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)