diff options
Diffstat (limited to 'media-video/recordmydesktop')
5 files changed, 132 insertions, 0 deletions
diff --git a/media-video/recordmydesktop/Manifest b/media-video/recordmydesktop/Manifest new file mode 100644 index 000000000000..fe0530386b5d --- /dev/null +++ b/media-video/recordmydesktop/Manifest @@ -0,0 +1 @@ +DIST recordmydesktop-0.3.8.1.tar.gz 198732 SHA256 33a2e208186ae78e2db2a27b0f5047b50fb7819c47fe15483b0765200b9d738c diff --git a/media-video/recordmydesktop/files/0.3.8.1-fix-libjack-check.patch b/media-video/recordmydesktop/files/0.3.8.1-fix-libjack-check.patch new file mode 100644 index 000000000000..cb8a3b473484 --- /dev/null +++ b/media-video/recordmydesktop/files/0.3.8.1-fix-libjack-check.patch @@ -0,0 +1,14 @@ +--- trunk/recordmydesktop/configure.ac 2008/12/13 17:46:41 584 ++++ trunk/recordmydesktop/configure.ac 2009/01/10 11:35:06 587 +@@ -95,7 +95,10 @@ + AC_MSG_ERROR([Can't find libpthread])) + + if test x$jack = xtrue ; then +-AC_CHECK_LIB([jack],[jack_activate],jack_lib_found=true,) ++AC_CHECK_LIB([jack],[jack_activate], ++ [LIBS="$LIBS -ljack" ++ AC_DEFINE([HAVE_LIBJACK], [1], [Define to 1 if you have libjack.]) ++ jack_lib_found=true]) + fi + + if test x$oss = xfalse; then diff --git a/media-video/recordmydesktop/files/0.3.8.1-fix_new_theora.patch b/media-video/recordmydesktop/files/0.3.8.1-fix_new_theora.patch new file mode 100644 index 000000000000..dfa829778963 --- /dev/null +++ b/media-video/recordmydesktop/files/0.3.8.1-fix_new_theora.patch @@ -0,0 +1,48 @@ +--- recordmydesktop-0.3.8.1.old/src/rmd_initialize_data.c 2009-11-25 10:05:58.708779029 -0500 ++++ recordmydesktop-0.3.8.1.old/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; + +--- recordmydesktop-0.3.8.1.old/src/rmd_parseargs.c 2009-11-25 10:06:07.409777969 -0500 ++++ recordmydesktop-0.3.8.1.old/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/media-video/recordmydesktop/metadata.xml b/media-video/recordmydesktop/metadata.xml new file mode 100644 index 000000000000..7856fb20cfe0 --- /dev/null +++ b/media-video/recordmydesktop/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>video</herd> + <maintainer> + <email>media-video@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">recordmydesktop</remote-id> + </upstream> +</pkgmetadata> diff --git a/media-video/recordmydesktop/recordmydesktop-0.3.8.1-r4.ebuild b/media-video/recordmydesktop/recordmydesktop-0.3.8.1-r4.ebuild new file mode 100644 index 000000000000..54c31b7da8f5 --- /dev/null +++ b/media-video/recordmydesktop/recordmydesktop-0.3.8.1-r4.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=2 + +inherit eutils autotools + +DESCRIPTION="A desktop session recorder producing Ogg video/audio files" +HOMEPAGE="http://recordmydesktop.sourceforge.net/" +SRC_URI="mirror://sourceforge/recordmydesktop/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="amd64 ppc ppc64 x86" +IUSE="alsa jack" + +RDEPEND="sys-libs/zlib + x11-libs/libXext + x11-libs/libXfixes + x11-libs/libXdamage + media-libs/libvorbis + media-libs/libogg + media-libs/libtheora[encode] + x11-libs/libICE + x11-libs/libSM + alsa? ( media-libs/alsa-lib ) + jack? ( media-sound/jack-audio-connection-kit )" +DEPEND="${RDEPEND} + x11-proto/xextproto" + +src_prepare() { + if has_version ">=x11-proto/xextproto-7.1.1"; then + sed -i \ + -e 's:shmstr.h:shmproto.h:g' \ + src/rmd_{getzpixmap.c,update_image.c} || die + fi + + # fix weird Framerates with new libtheora + epatch "${FILESDIR}/${PV}-fix_new_theora.patch" + + # fix check for jack support + epatch "${FILESDIR}/${PV}-fix-libjack-check.patch" + + eautoreconf +} + +src_configure() { + econf \ + --enable-dependency-tracking \ + $(use_enable !alsa oss) \ + $(use_enable jack) +} + +src_install() { + emake DESTDIR="${D}" install || die + dodoc AUTHORS ChangeLog README || die +} |