summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-tv/nvrec/nvrec-0.1_pre20030316.ebuild')
-rw-r--r--media-tv/nvrec/nvrec-0.1_pre20030316.ebuild80
1 files changed, 80 insertions, 0 deletions
diff --git a/media-tv/nvrec/nvrec-0.1_pre20030316.ebuild b/media-tv/nvrec/nvrec-0.1_pre20030316.ebuild
new file mode 100644
index 000000000000..c17e84ba6262
--- /dev/null
+++ b/media-tv/nvrec/nvrec-0.1_pre20030316.ebuild
@@ -0,0 +1,80 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-tv/nvrec/nvrec-0.1_pre20030316.ebuild,v 1.1 2003/06/18 12:16:54 seemant Exp $
+
+inherit eutils
+
+MY_VER="20030316"
+DESCRIPTION="High quality video capture for Linux"
+HOMEPAGE="http://${PN}.sourceforge.net/"
+SRC_URI="http://${PN}.sourceforge.net/downloads/${PN}-${MY_VER}.tar.gz
+ mirror://sourceforge/ffmpeg/ffmpeg-0.4.6.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86"
+IUSE="avi quicktime sdl oggvorbis"
+
+DEPEND="dev-lang/perl
+ >=sys-devel/automake-1.6.1
+ >=sys-devel/autoconf-2.53
+ avi? ( media-video/avifile )
+ quicktime? ( media-libs/libquicktime )
+ sdl? ( media-libs/libsdl )
+ sdl? ( media-sound/mad )
+ media-libs/divx4linux
+ media-sound/lame
+ media-video/ffmpeg"
+RDEPEND="avi? ( media-video/avifile )
+ quicktime? ( media-libs/libquicktime )
+ sdl? ( media-libs/libsdl )
+ sdl? ( media-sound/mad )
+ media-libs/divx4linux
+ media-sound/lame"
+
+S=${WORKDIR}/${PN}-${MY_VER}
+
+src_unpack() {
+ if nm /usr/lib/libquicktime.so | grep -q png; then
+ die "It looks like you have installed quicktime4linux after installing libquicktime. NVrec can't be installed, see bug #20705 for why."
+ fi
+
+ local ffversion
+ ffversion="ffmpeg-0.4.6-r1"
+ ffP="ffmpeg-0.4.6"
+ export ffversion
+ bash ${FILESDIR}/get_ffmpeg_functions.sh > ${T}/funcs.sh
+ source ${T}/funcs.sh
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${MY_VER}.patch
+ ffS=${WORKDIR}/${ffP}
+ cd ${ffS}
+ epatch ${PORTDIR}/media-video/ffmpeg/files/${ffP}-Makefiles.diff
+ cd ${WORKDIR}
+ ln -s ${ffP} ffmpeg
+}
+
+src_compile() {
+ cd ${ffS}
+ ffmpeg_src_compile
+ cd ${S}
+ ./bootstrap
+ local myconf
+ myconf="$(use_with avi avifile)"
+ myconf="${myconf} $(use_with quicktime)"
+ myconf="${myconf} $(use_with sdl sdl) $(use_with sdl mad)"
+ econf || die "configure failed"
+ # ugly ugly ugly... but no configure option there
+ use oggvorbis && ( sed < Makefile > Makefile.new -e \
+ 's/\(^.*LDADD = .*\)/\1 -lvorbis -lvorbisenc/' && \
+ mv Makefile.new Makefile)
+ emake || die "make failed"
+}
+
+src_install() {
+ einstall || die "install failed"
+ insinto /etc
+ doins etc/nvrec.conf
+ dodoc AUTHORS CREDITS ChangeLog FAQ KNOWN_BUGS README README.FIRST STATUS
+}