Added avifile-0.7.37-20030522-r2.ebuild back to unbreak swftools and mjpegtools deps.
authorChris White <chriswhite@gentoo.org>
Tue, 30 Nov 2004 20:00:50 +0000 (20:00 +0000)
committerChris White <chriswhite@gentoo.org>
Tue, 30 Nov 2004 20:00:50 +0000 (20:00 +0000)
media-video/avifile/ChangeLog
media-video/avifile/Manifest
media-video/avifile/avifile-0.7.37.20030522-r2.ebuild [new file with mode: 0644]
media-video/avifile/files/digest-avifile-0.7.37.20030522-r2 [new file with mode: 0644]

index c2a3114e13a3203c515426ef978a5b03717f625e..4969784c3a8988b2bffd19b7a54b2f76441060c6 100644 (file)
@@ -1,6 +1,13 @@
 # ChangeLog for media-video/avifile
 # Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/avifile/ChangeLog,v 1.85 2004/11/30 05:43:41 chriswhite Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/avifile/ChangeLog,v 1.86 2004/11/30 20:00:50 chriswhite Exp $
+
+*avifile-0.7.37.20030522-r2 (01 Dec 2004)
+
+  01 Dec 2004; Chris White <chriswhite@gentoo.org>
+  +avifile-0.7.37.20030522-r2.ebuild, avifile-0.7.41.20041001-r1.ebuild:
+  Added avifile-0.7.37-20030522-r2.ebuild back to unbreak swftools and
+  mjpegtools deps.
 
   30 Nov 2004; Chris White <chriswhite@gentoo.org>
   -avifile-0.7.32.20030219.ebuild, -avifile-0.7.37.20030522-r2.ebuild,
index 8b352a0fa63e7fe6d10c6e734713c42d56c5a81b..36a3eb9e80ac15970508a4a99852510339fa0fe1 100644 (file)
@@ -1,7 +1,8 @@
 -----BEGIN PGP SIGNED MESSAGE-----
 Hash: SHA1
 
-MD5 8c4ababe95f9d585e38bd578171ac8af ChangeLog 14994
+MD5 0d2598b6c8574754bc997fff2f9189a0 ChangeLog 15252
+MD5 1d3631b1ad62370f492ec32aa6762425 avifile-0.7.37.20030522-r2.ebuild 4434
 MD5 b80546f1e5f52f38abec15e91478e999 avifile-0.7.38.20030710-r1.ebuild 4008
 MD5 8a616e9640f57a62152d26753245b610 avifile-0.7.41.20041001-r1.ebuild 4591
 MD5 76b95bd390c69f39e5e7b028b3ff69a5 metadata.xml 272
@@ -13,6 +14,7 @@ MD5 37a0170a523a26fd8a8c576c498b3641 files/avifile-0.7.41.20041001-gcc2.patch 10
 MD5 d0f665d4394d9d9a59c9a5dadeb09882 files/avifile-0.7.41.20041001-sparc.patch 1262
 MD5 69d7c84947a5ea083f25e43fdacc126e files/avifile-gcc34.patch 5795
 MD5 f2e5938361909893d37d1ce0b80fdbfc files/avifile-x86-gcc34.patch 5247
+MD5 c1a25bfd2234206e97e7b744c39c0d06 files/digest-avifile-0.7.37.20030522-r2 73
 MD5 21e60c1838b04fa1990fe5538569ac4b files/digest-avifile-0.7.38.20030710-r1 71
 MD5 f19f862b147fa314ed83d4b78e661a5d files/digest-avifile-0.7.41.20041001-r1 71
 MD5 5c7a3ea4957036aa1da3db9880a3ed34 files/flvenc-patch 558
@@ -20,7 +22,7 @@ MD5 c5840e80e1a70f6b5ce25679e53f2dcb files/throw.patch 7396
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG v1.2.6 (GNU/Linux)
 
-iD8DBQFBrAixFdQwWVoAgN4RAgXKAJwJIv+4xgj3ajsV6sToW5CS/QzCbwCdEbQn
-G7yU+//ldaHREI3voPUOhsA=
-=8ZEY
+iD8DBQFBrNGXFdQwWVoAgN4RAjMDAKDN3UI/c3L4MfIa8ItmM+/EmYyNKwCfSMc3
+L8a8tNIkfywBI2WE3v8wXNM=
+=/DdT
 -----END PGP SIGNATURE-----
diff --git a/media-video/avifile/avifile-0.7.37.20030522-r2.ebuild b/media-video/avifile/avifile-0.7.37.20030522-r2.ebuild
new file mode 100644 (file)
index 0000000..73aeee5
--- /dev/null
@@ -0,0 +1,173 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/avifile/avifile-0.7.37.20030522-r2.ebuild,v 1.15 2004/11/30 20:00:50 chriswhite Exp $
+
+inherit eutils
+
+MAJ_PV=${PV:0:3}
+MIN_PV=${PV:3:3}
+MY_P="${P/.200/-200}"
+MY_S="${PN}${MAJ_PV}-${MAJ_PV}${MIN_PV}"
+S="${WORKDIR}/${MY_S}"
+
+DESCRIPTION="Library for AVI-Files"
+HOMEPAGE="http://avifile.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz"
+RESTRICT="nomirror"
+
+LICENSE="GPL-2"
+SLOT="0.7"
+KEYWORDS="~x86 ~sparc alpha ia64"
+IUSE="3dnow X alsa avi debug dvd esd mmx oggvorbis qt sdl sse static truetype xv zlib"
+
+DEPEND=">=media-libs/jpeg-6b
+       x86? ( >=media-libs/divx4linux-20020418
+               >=media-libs/win32codecs-0.90 )
+       >=media-video/ffmpeg-0.4
+       >=media-libs/xvid-0.9.0
+       >=media-sound/lame-3.90
+       >=media-libs/audiofile-0.2.3
+       >=sys-apps/sed-4
+       >=media-sound/madplay-0.14.2b
+       truetype? ( >=media-libs/freetype-2.1 )
+       xv? ( virtual/x11 )
+       sdl? ( >=media-libs/libsdl-1.2.2 )
+       dvd? ( >=media-libs/a52dec-0.7 )
+       zlib? ( >=sys-libs/zlib-1.1.3 )
+       oggvorbis? ( >=media-libs/libvorbis-1.0 )
+       X? ( virtual/x11 virtual/xft )
+       qt? ( >=x11-libs/qt-3.0.3 )
+       alsa? ( >=media-libs/alsa-lib-0.9.0_rc2 )
+       esd? ( >=media-sound/esound-0.2.28 )"
+
+src_unpack() {
+       unpack ${A}
+       use qt || sed -i 's/qt[a-z]*//g' ${S}/samples/Makefile.am
+       #Fixing divx 2003 API
+       if has_version  '>=media-libs/divx4linux-20030428'
+       then
+               einfo "DivX 20030428 found"
+               cd ${S}
+               epatch ${FILESDIR}/${P}-divx.patch
+       else
+               einfo "Old DivX Api found"
+       fi
+}
+
+src_compile() {
+       local myconf="--enable-oss"
+       local kdepre=""
+
+       use static \
+               && myconf="${myconf} --enable-static" \
+               || myconf="${myconf} --disable-static"
+
+       use truetype \
+               && myconf="${myconf} --enable-freetype2" \
+               || myconf="${myconf} --disable-freetype2"
+
+       use xv \
+               && myconf="${myconf} --enable-xv" \
+               || myconf="${myconf} --disable-xv"
+
+       if [ "$XINERAMA" = "NO" ]; then
+               myconf="${myconf} --disable-xinerama"
+       fi
+
+       if [ "$DPMS" = "NO" ]; then
+               myconf="${myconf} --disable-dpms"
+       fi
+
+       use sdl \
+               && myconf="${myconf} --enable-sdl" \
+               || myconf="${myconf} --disable-sdl --disable-sdltest"
+
+       if [ "$V4L" = "NO" ]; then
+               myconf="${myconf} --disable-v4l"
+       fi
+
+       if [ "$SUN" = "NO" ]; then
+               myconf="${myconf} --disable-sunaudio"
+       fi
+
+       use dvd \
+               && myconf="${myconf} --enable-a52 --enable-ffmpeg-a52" \
+               || myconf="${myconf} --disable-a52 --disable-ffmpeg-a52"
+
+       if [ "$SBLIVE" = "NO" ]; then
+               myconf="${myconf} --disable-ac3passthrough"
+       fi
+
+       use debug \
+               && myconf="${myconf} --enable-loader-out" \
+               || myconf="${myconf} --enable-quiet"
+
+       ( use mmx || use sse || use 3dnow ) && myconf="${myconf} --enable-x86opt"
+
+       use zlib \
+               && myconf="${myconf} --enable-libz" \
+               || myconf="${myconf} --disable-libz"
+
+       use oggvorbis \
+               && myconf="${myconf} --enable-vorbis" \
+               || myconf="${myconf} --disable-vorbis --disable-oggtest --disable-vorbistest"
+
+       if [ "$MGA" = "NO" ]; then
+               myconf="${myconf} --disable-mga"
+       fi
+
+       if [ "$DMALLOC" = "YES" ]; then
+               myconf="${myconf} --with-dmallocth"
+       fi
+
+       use X \
+               && myconf="${myconf} --with-x --enable-xft" \
+               || myconf="${myconf} --without-x --disable-xft"
+
+       use qt \
+               && myconf="${myconf} --with-qt-prefix=${QTDIR}" \
+               || myconf="${myconf} --without-qt"
+
+       # Rather not use custom ones here .. build should set as high as
+       # safe by itself.
+       unset CFLAGS CXXFLAGS LDFLAGS CC CXX
+
+       # Make sure we include freetype2 headers before freetype1 headers, else Xft2
+       # borks, bug #11941.
+       export C_INCLUDE_PATH="${C_INCLUDE_PATH}:/usr/include/freetype2"
+       export CPLUS_INCLUDE_PATH="${CPLUS_INCLUDE_PATH}:/usr/include/freetype2"
+
+       # Fix qt detection
+       cp configure configure.orig
+       sed -e "s:extern \"C\" void exit(int);:/* extern \"C\" void exit(int); */:" \
+               < configure.orig > configure
+
+       econf \
+               --enable-samples \
+               --disable-vidix \
+               --with-fpic \
+               --with-gnu-ld \
+               --enable-lame-bin \
+               ${myconf} || die
+       emake || die
+}
+
+src_install() {
+       dodir /usr/lib /usr/bin
+       use avi && dodir /usr/lib/win32
+
+       einstall || die
+
+       cd ${S}
+       dodoc COPYING README INSTALL
+       cd doc
+       dodoc CREDITS EXCEPTIONS FreeBSD LICENSING TODO
+       dodoc VIDEO-PERFORMANCE WARNINGS KNOWN_BUGS
+}
+
+pkg_postinst() {
+       einfo "In order to use certain video modes, you must be root"
+       einfo "chmod +s /usr/bin/aviplay to suid root"
+       einfo "As this is considered a security risk on multiuser"
+       einfo "systems, this is not done by default"
+}
diff --git a/media-video/avifile/files/digest-avifile-0.7.37.20030522-r2 b/media-video/avifile/files/digest-avifile-0.7.37.20030522-r2
new file mode 100644 (file)
index 0000000..decb06d
--- /dev/null
@@ -0,0 +1 @@
+MD5 074bd003318128e433dd96a64c80b776 avifile-0.7.37-20030522.tgz 2862210