File ffmpeg-ma.spec of Package ffmpeg-ma

# Copyright (c) 2020
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.

# norootforbuild

Name:           ffmpeg-ma
Version:        20201025git
Release:        1
Summary:        FFmpeg binary with patches from
Group:          Productivity/Multimedia/Other
License:        GPL-3.0-or-later
Source0:        ffmpeg-ma-%{version}.tar.bz2
Prefix:         %{_prefix}
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:  gcc
BuildRequires:  pkgconfig
BuildRequires:  automake
BuildRequires:  autoconf
BuildRequires:  zlib-devel
FFmpeg binary with patches from

%setup -q -n sources


# build
pushd yasm
    ./configure --prefix="$(pwd)/output"
    %__make install
pushd freetype
    ./configure --prefix="$(pwd)/output" --without-zlib --without-bzip2 --without-png --without-harfbuzz --enable-static --disable-shared CFLAGS=-fPIC
    %__make install

./configure --enable-gpl --enable-version3 --enable-static --disable-shared --enable-debug --disable-ffplay --disable-ffprobe --disable-doc --extra-cflags=-Ifreetype/include --extra-libs=freetype/output/lib/libfreetype.a --x86asmexe=yasm/output/bin/yasm

%__install -D -m 0755 ffmpeg_g %{buildroot}/%{_bindir}/ffmpeg-ma

[ -d "%{buildroot}" -a "%{buildroot}" != "" ] && %__rm -rf "%{buildroot}"