summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorMuflone2015-06-13 18:22:07 +0200
committerMuflone2015-06-13 18:22:07 +0200
commit123d94dcda9f0db8af89bb1c0320ada8de0d02c0 (patch)
tree9751845ed330ec1880016100f4a11582e3cfd517
downloadaur-123d94dcda9f0db8af89bb1c0320ada8de0d02c0.tar.gz
Initial commit
-rw-r--r--.SRCINFO36
-rw-r--r--PKGBUILD77
-rw-r--r--freetype2.patch24
3 files changed, 137 insertions, 0 deletions
diff --git a/.SRCINFO b/.SRCINFO
new file mode 100644
index 00000000000..4422b356076
--- /dev/null
+++ b/.SRCINFO
@@ -0,0 +1,36 @@
+pkgbase = ffmpeg-compat-54
+ pkgdesc = Compatibility package for ffmpeg to provide versions 54 of libavcodec, libavdevice and libavformat, not anymore provided by the ffmpeg package
+ pkgver = 1.2.1
+ pkgrel = 1
+ url = http://ffmpeg.org/
+ arch = i686
+ arch = x86_64
+ license = GPL
+ makedepends = yasm
+ makedepends = libass
+ depends = gsm
+ depends = lame
+ depends = opencore-amr
+ depends = openjpeg
+ depends = opus
+ depends = rtmpdump
+ depends = libvpx
+ depends = schroedinger
+ depends = speex
+ depends = v4l-utils
+ depends = xvidcore
+ depends = libpulse
+ depends = libx264
+ depends = libtheora
+ depends = libbluray
+ depends = libmodplug
+ depends = sdl
+ depends = jack
+ depends = libavutil-52
+ source = http://ffmpeg.org/releases/ffmpeg-1.2.1.tar.bz2
+ source = freetype2.patch
+ sha256sums = 0302375c3a64e9c2facfa7cbeb1aa333a39fdf6bbacda228cd48e04bf9ee32ca
+ sha256sums = 03e7e303f864e04ad1cae1af82c0179e111f9ef580634c72a315f22589a6d2ea
+
+pkgname = ffmpeg-compat-54
+
diff --git a/PKGBUILD b/PKGBUILD
new file mode 100644
index 00000000000..caad052ec56
--- /dev/null
+++ b/PKGBUILD
@@ -0,0 +1,77 @@
+# Maintainer: Muflone http://www.muflone.com/contacts/english/
+
+pkgname=ffmpeg-compat-54
+pkgver=1.2.1
+pkgrel=1
+pkgdesc="Compatibility package for ffmpeg to provide versions 54 of libavcodec, libavdevice and libavformat, not anymore provided by the ffmpeg package"
+arch=('i686' 'x86_64')
+url="http://ffmpeg.org/"
+license=('GPL')
+depends=('gsm' 'lame' 'opencore-amr' 'openjpeg' 'opus' 'rtmpdump' 'libvpx'
+ 'schroedinger' 'speex' 'v4l-utils' 'xvidcore' 'libpulse' 'libx264'
+ 'libtheora' 'libbluray' 'libmodplug' 'sdl' 'jack' 'libavutil-52')
+makedepends=('yasm' 'libass')
+source=("http://ffmpeg.org/releases/ffmpeg-${pkgver}.tar.bz2"
+ "freetype2.patch")
+sha256sums=('0302375c3a64e9c2facfa7cbeb1aa333a39fdf6bbacda228cd48e04bf9ee32ca'
+ '03e7e303f864e04ad1cae1af82c0179e111f9ef580634c72a315f22589a6d2ea')
+
+prepare() {
+ cd "ffmpeg-${pkgver}"
+ patch -p1 -i "${srcdir}/freetype2.patch"
+}
+
+build() {
+ cd "ffmpeg-${pkgver}"
+ ./configure \
+ --prefix=/usr \
+ --incdir="/usr/include" \
+ --shlibdir="/usr/lib" \
+ --libdir="/usr/lib" \
+ --disable-debug \
+ --disable-static \
+ --enable-dxva2 \
+ --disable-fontconfig \
+ --enable-gpl \
+ --enable-libass \
+ --enable-libbluray \
+ --enable-libfreetype \
+ --enable-libgsm \
+ --enable-libmodplug \
+ --enable-libmp3lame \
+ --enable-libopencore_amrnb \
+ --enable-libopencore_amrwb \
+ --enable-libopenjpeg \
+ --enable-libopus \
+ --enable-libpulse \
+ --enable-librtmp \
+ --enable-libschroedinger \
+ --enable-libspeex \
+ --enable-libtheora \
+ --enable-libv4l2 \
+ --enable-libvorbis \
+ --enable-libvpx \
+ --enable-libx264 \
+ --enable-libxvid \
+ --enable-runtime-cpudetect \
+ --enable-shared \
+ --enable-vdpau \
+ --enable-version3 \
+ --enable-x11grab \
+ --disable-doc \
+ --disable-programs \
+ --disable-avresample \
+ --disable-avfilter \
+ --disable-postproc \
+ --disable-swresample \
+ --disable-swscale
+ make
+}
+
+package() {
+ cd "ffmpeg-${pkgver}"
+ make DESTDIR="${pkgdir}" install-libs
+ cd "${pkgdir}/usr/lib"
+ rm -f *.so libavutil.*
+}
+
diff --git a/freetype2.patch b/freetype2.patch
new file mode 100644
index 00000000000..564a8b47455
--- /dev/null
+++ b/freetype2.patch
@@ -0,0 +1,24 @@
+diff -ru3 ffmpeg-1.2.1/configure ffmpeg-1.2.1-p/configure
+--- ffmpeg-1.2.1/configure 2013-05-10 02:16:22.000000000 +0200
++++ ffmpeg-1.2.1-p/configure 2014-01-05 12:17:12.004338758 +0100
+@@ -3903,7 +3903,7 @@
+ enabled libfdk_aac && require libfdk_aac fdk-aac/aacenc_lib.h aacEncOpen -lfdk-aac
+ flite_libs="-lflite_cmu_time_awb -lflite_cmu_us_awb -lflite_cmu_us_kal -lflite_cmu_us_kal16 -lflite_cmu_us_rms -lflite_cmu_us_slt -lflite_usenglish -lflite_cmulex -lflite"
+ enabled libflite && require2 libflite "flite/flite.h" flite_init $flite_libs
+-enabled libfreetype && require_pkg_config freetype2 "ft2build.h freetype/freetype.h" FT_Init_FreeType
++enabled libfreetype && require_pkg_config freetype2 "ft2build.h freetype2/freetype.h" FT_Init_FreeType
+ enabled libgsm && { for gsm_hdr in "gsm.h" "gsm/gsm.h"; do
+ check_lib "${gsm_hdr}" gsm_create -lgsm && break;
+ done || die "ERROR: libgsm not found"; }
+diff -ru3 ffmpeg-1.2.1/libavfilter/vf_drawtext.c ffmpeg-1.2.1-p/libavfilter/vf_drawtext.c
+--- ffmpeg-1.2.1/libavfilter/vf_drawtext.c 2013-05-10 02:16:06.000000000 +0200
++++ ffmpeg-1.2.1-p/libavfilter/vf_drawtext.c 2014-01-05 12:18:33.674284457 +0100
+@@ -48,7 +48,7 @@
+ #include "video.h"
+
+ #include <ft2build.h>
+-#include <freetype/config/ftheader.h>
++#include <freetype2/config/ftheader.h>
+ #include FT_FREETYPE_H
+ #include FT_GLYPH_H
+ #if CONFIG_FONTCONFIG