From 644591cddb37c8b93642ce6f74f8b96e7d692d30 Mon Sep 17 00:00:00 2001 From: David Spencer Date: Sat, 30 May 2015 07:11:36 +0100 Subject: multimedia/ffmpeg2theora: Patched to fix building with -current. Signed-off-by: David Spencer --- multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild | 3 +++ multimedia/ffmpeg2theora/link-libm.patch | 16 ++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 multimedia/ffmpeg2theora/link-libm.patch diff --git a/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild b/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild index aae5c080f85e6..f2efde2012ea5 100644 --- a/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild +++ b/multimedia/ffmpeg2theora/ffmpeg2theora.SlackBuild @@ -73,6 +73,9 @@ for diff in $CWD/patches/*.diff; do echo $diff patch -p1 < $diff done +# Fix underlinking on -current +# thanks to Debian https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=768674 +patch -p1 < $CWD/link-libm.patch scons install APPEND_CCFLAGS="$SLKCFLAGS" prefix=/usr destdir=$PKG diff --git a/multimedia/ffmpeg2theora/link-libm.patch b/multimedia/ffmpeg2theora/link-libm.patch new file mode 100644 index 0000000000000..326889be08a29 --- /dev/null +++ b/multimedia/ffmpeg2theora/link-libm.patch @@ -0,0 +1,16 @@ +Description: Link libm for ceil +Author: Sebastian Ramacher +Last-Update: 2014-11-09 +Bug-Debian: https://bugs.debian.org/768674 + +--- ffmpeg2theora-0.29.0~git+20140316.orig/SConstruct ++++ ffmpeg2theora-0.29.0~git+20140316/SConstruct +@@ -221,6 +221,8 @@ if not env.GetOption('clean'): + env.Append(LIBS=['m']) + elif env['static']: + env.Append(LIBS=['m', 'dl']) ++ else: ++ env.Append(LIBS=['m']) + + + env = conf.Finish() -- cgit v1.2.3