diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-16 16:24:15 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2010-08-16 16:24:15 +0000 |
commit | 9f0610349f0b31d6a5ccfcb2827b54111314460f (patch) | |
tree | 25d511eca5d7f1d0c9475adf10b2e73ebe34b3ba /main/recordmydesktop | |
parent | 4653e1fb3db3b0c6132ffdb56880443f1915786f (diff) | |
download | aports-9f0610349f0b31d6a5ccfcb2827b54111314460f.tar.bz2 aports-9f0610349f0b31d6a5ccfcb2827b54111314460f.tar.xz |
main/recordmydesktop: moved from testing
Diffstat (limited to 'main/recordmydesktop')
-rw-r--r-- | main/recordmydesktop/APKBUILD | 37 | ||||
-rw-r--r-- | main/recordmydesktop/recordmydesktop-bitrate.patch | 50 | ||||
-rw-r--r-- | main/recordmydesktop/shmstr-to-shmproto.patch | 20 |
3 files changed, 107 insertions, 0 deletions
diff --git a/main/recordmydesktop/APKBUILD b/main/recordmydesktop/APKBUILD new file mode 100644 index 0000000000..838292f627 --- /dev/null +++ b/main/recordmydesktop/APKBUILD @@ -0,0 +1,37 @@ +# Maintainer: Natanael Copa <ncopa@alpinelinux.org> +pkgname=recordmydesktop +pkgver=0.3.8.1 +pkgrel=0 +pkgdesc="Produces a OGG encapsulated Theora/Vorbis recording of your desktop" +url="http://recordmydesktop.sourceforge.net" +license="GPL" +depends="" +makedepends="alsa-lib-dev zlib-dev libvorbis-dev libxdamage-dev libxext-dev + libtheora-dev libsm-dev" +subpackages="$pkgname-doc" +source="http://downloads.sourceforge.net/recordmydesktop/recordmydesktop-$pkgver.tar.gz + shmstr-to-shmproto.patch + recordmydesktop-bitrate.patch" + +_builddir="$srcdir"/$pkgname-$pkgver +prepare() { + cd "$_builddir" + patch -p0 < $srcdir/shmstr-to-shmproto.patch + patch -p1 < $srcdir/recordmydesktop-bitrate.patch +} + +build() { + cd "$_builddir" + ./configure --prefix=/usr \ + --disable-jack \ + || return 1 +} + +package() { + cd "$_builddir" + make DESTDIR="$pkgdir" install || return 1 +} + +md5sums="6998b165540598965499bd99d8aa0eef recordmydesktop-0.3.8.1.tar.gz +211a1773f223b3f281520aa1056395e6 shmstr-to-shmproto.patch +b0794a769efd287e9e8c5fb8c3299b35 recordmydesktop-bitrate.patch" diff --git a/main/recordmydesktop/recordmydesktop-bitrate.patch b/main/recordmydesktop/recordmydesktop-bitrate.patch new file mode 100644 index 0000000000..9b014486af --- /dev/null +++ b/main/recordmydesktop/recordmydesktop-bitrate.patch @@ -0,0 +1,50 @@ +diff -ru recordmydesktop-0.3.8.1.old/src/rmd_initialize_data.c recordmydesktop-0.3.8.1/src/rmd_initialize_data.c +--- recordmydesktop-0.3.8.1.old/src/rmd_initialize_data.c 2009-11-25 10:05:58.708779029 -0500 ++++ recordmydesktop-0.3.8.1/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; + +diff -ru recordmydesktop-0.3.8.1.old/src/rmd_parseargs.c recordmydesktop-0.3.8.1/src/rmd_parseargs.c +--- recordmydesktop-0.3.8.1.old/src/rmd_parseargs.c 2009-11-25 10:06:07.409777969 -0500 ++++ recordmydesktop-0.3.8.1/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<argc){ + int num=atoi(argv[i+1]); +- if((num>=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/main/recordmydesktop/shmstr-to-shmproto.patch b/main/recordmydesktop/shmstr-to-shmproto.patch new file mode 100644 index 0000000000..6fc446e9a8 --- /dev/null +++ b/main/recordmydesktop/shmstr-to-shmproto.patch @@ -0,0 +1,20 @@ +--- 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 <X11/Xlib.h> + #include <X11/Xlibint.h> +-#include <X11/extensions/shmstr.h> ++#include <X11/extensions/shmproto.h> + #include <X11/extensions/XShm.h> + + +--- 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 <X11/Xlibint.h> +-#include <X11/extensions/shmstr.h> ++#include <X11/extensions/shmproto.h> + #include <X11/extensions/XShm.h> |