From bf09caec83ee263e6974c06e43a2311faf035c43 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 1 Apr 2014 09:11:28 +0200 Subject: [PATCH] New package: recordmydesktop-0.3.8.1. --- .../patches/sane-theora-defaults.patch | 51 +++++++++++++++++++ .../patches/shmstr-to-shmproto.patch | 24 +++++++++ srcpkgs/recordmydesktop/template | 13 +++++ 3 files changed, 88 insertions(+) create mode 100644 srcpkgs/recordmydesktop/patches/sane-theora-defaults.patch create mode 100644 srcpkgs/recordmydesktop/patches/shmstr-to-shmproto.patch create mode 100644 srcpkgs/recordmydesktop/template diff --git a/srcpkgs/recordmydesktop/patches/sane-theora-defaults.patch b/srcpkgs/recordmydesktop/patches/sane-theora-defaults.patch new file mode 100644 index 00000000000..2ad85796d6e --- /dev/null +++ b/srcpkgs/recordmydesktop/patches/sane-theora-defaults.patch @@ -0,0 +1,51 @@ +# Use sane theora defaults +# https://bugzilla.redhat.com/show_bug.cgi?id=525155 + +--- src/rmd_initialize_data.c 2009-11-25 10:05:58.708779029 -0500 ++++ src/rmd_initialize_data.c 2009-11-25 09:28:07.629507987 -0500 +@@ -224,7 +224,7 @@ + args->channels = 1; + args->frequency = 22050; + args->buffsize = 4096; +- args->v_bitrate = 45000; ++ args->v_bitrate = 0; + args->v_quality = 63; + args->s_quality = 10; + +--- src/rmd_parseargs.c 2009-11-25 10:06:07.409777969 -0500 ++++ src/rmd_parseargs.c 2009-11-25 09:39:32.786757292 -0500 +@@ -104,10 +104,10 @@ + "Encoding Options\n" + "\t--on-the-fly-encoding\tEncode the audio-video data, while recording.\n" + "\t--v_quality n\t\tA number from 0 to 63 for" +- " desired encoded video quality(default 63).\n" ++ " desired encoded video quality(default 63).\n\t (set quality to zero for bitrate controlled usage)\n" + +- "\t--v_bitrate n\t\tA number from 45000 to 2000000" +- " for desired encoded video bitrate(default 45000).\n" ++ "\t--v_bitrate n\t\tA number from 0 to 200000000" ++ " for desired encoded video bitrate(default 0 = not rate controlled).\n" + + "\t--s_quality n\t\tDesired audio quality(-1 to 10).\n\n" + +@@ -327,17 +327,17 @@ + strcmp(argv[i], "-v_bitrate") == 0) { + if(i+1=45000)&&(num<=2000000)) ++ if((num>=0)&&(num<=200000000)) + arg_return->v_bitrate=num; + else{ + fprintf(stderr,"Argument Usage:" +- " --v_bitrate n(number 45000-2000000)\n"); ++ " --v_bitrate n(number 0-200000000)\n"); + return FALSE; + } + } + else{ + fprintf(stderr,"Argument Usage:" +- " --v_bitrate n(number 45000-2000000)\n"); ++ " --v_bitrate n(number 0-200000000)\n"); + return FALSE; + } + i++; diff --git a/srcpkgs/recordmydesktop/patches/shmstr-to-shmproto.patch b/srcpkgs/recordmydesktop/patches/shmstr-to-shmproto.patch new file mode 100644 index 00000000000..88ea7e468d3 --- /dev/null +++ b/srcpkgs/recordmydesktop/patches/shmstr-to-shmproto.patch @@ -0,0 +1,24 @@ +# from gentoo: http://bugs.gentoo.org/attachment.cgi?id=209904 +# 2010-01-15: Bug with proposed fix already upstream: +# http://sourceforge.net/tracker/?func=detail&aid=2889699&group_id=172357&atid=861428 + +--- src/rmd_getzpixmap.c 2008-12-13 17:04:10.000000000 +0100 ++++ src/rmd_getzpixmap.c 2009-11-11 11:30:18.000000000 +0100 +@@ -32,7 +32,7 @@ + + #include + #include +-#include ++#include + #include + + +--- src/rmd_update_image.c 2008-12-13 17:20:49.000000000 +0100 ++++ src/rmd_update_image.c 2009-11-11 11:30:34.000000000 +0100 +@@ -32,7 +32,7 @@ + #include "rmd_types.h" + + #include +-#include ++#include + #include diff --git a/srcpkgs/recordmydesktop/template b/srcpkgs/recordmydesktop/template new file mode 100644 index 00000000000..7b8f02abbc8 --- /dev/null +++ b/srcpkgs/recordmydesktop/template @@ -0,0 +1,13 @@ +# Template file for 'recordmydesktop' +pkgname=recordmydesktop +version=0.3.8.1 +revision=1 +build_style=gnu-configure +hostmakedepends="pkg-config" +makedepends="zlib-devel alsa-lib-devel libvorbis-devel libtheora-devel libXext-devel libXdamage-devel libSM-devel" +short_desc="A X11 desktop session recorder" +maintainer="Juan RP " +license="GPL-2" +homepage="http://recordmydesktop.sourceforge.net/about.php" +distfiles="${SOURCEFORGE_SITE}/$pkgname/$pkgname-$version.tar.gz" +checksum=33a2e208186ae78e2db2a27b0f5047b50fb7819c47fe15483b0765200b9d738c