summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-video/avifile/ChangeLog9
-rw-r--r--media-video/avifile/Manifest24
-rw-r--r--media-video/avifile/avifile-0.7.41.20041001-r2.ebuild149
-rw-r--r--media-video/avifile/files/digest-avifile-0.7.41.20041001-r21
4 files changed, 171 insertions, 12 deletions
diff --git a/media-video/avifile/ChangeLog b/media-video/avifile/ChangeLog
index d8f28c154133..384742c1a402 100644
--- a/media-video/avifile/ChangeLog
+++ b/media-video/avifile/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for media-video/avifile
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/media-video/avifile/ChangeLog,v 1.90 2005/01/20 10:07:51 cryos Exp $
+# $Header: /var/cvsroot/gentoo-x86/media-video/avifile/ChangeLog,v 1.91 2005/01/29 15:49:36 luckyduck Exp $
+
+*avifile-0.7.41.20041001-r2 (29 Jan 2005)
+
+ 29 Jan 2005; Jan Brinkmann <luckyduck@gentoo.org>
+ +avifile-0.7.41.20041001-r2.ebuild:
+ various cleanups which were suggested by Diego Pettenò
+ <dgp85@users.sourceforge.net>, fixes bug #72182. thanks a lot, Diego.
20 Jan 2005; Marcus Hanwell <cryos@gentoo.org>
avifile-0.7.41.20041001-r1.ebuild:
diff --git a/media-video/avifile/Manifest b/media-video/avifile/Manifest
index 0b4e8cc1a0bb..39f9f9855265 100644
--- a/media-video/avifile/Manifest
+++ b/media-video/avifile/Manifest
@@ -1,22 +1,24 @@
-MD5 0e2ba85c7cc6b3a8025d463cca177cf4 ChangeLog 15944
-MD5 8c3a2328a001e71870d1188127c9b393 avifile-0.7.32.20030219.ebuild 4060
-MD5 639830d768edbd341409ffca5ec3801a avifile-0.7.37.20030522-r2.ebuild 4429
+MD5 53a790a10a653aee0a443f84bd518819 avifile-0.7.41.20041001-r2.ebuild 4674
MD5 ead70f1fd6fc60afbc07ad1ea49576a7 avifile-0.7.38.20030710-r1.ebuild 4005
+MD5 8c3a2328a001e71870d1188127c9b393 avifile-0.7.32.20030219.ebuild 4060
MD5 557e8e3e48f82dd70ddb17fc3b87706a avifile-0.7.41.20041001.ebuild 3947
-MD5 76b95bd390c69f39e5e7b028b3ff69a5 metadata.xml 272
MD5 b92737cb5a3fdd94afa2351562754d6e avifile-0.7.41.20041001-r1.ebuild 4593
+MD5 9ddec8501a8d47e00c3e85bb40f1d191 ChangeLog 16212
+MD5 76b95bd390c69f39e5e7b028b3ff69a5 metadata.xml 272
+MD5 639830d768edbd341409ffca5ec3801a avifile-0.7.37.20030522-r2.ebuild 4429
MD5 8390bf9de24635d667a5724c2cc0cbe9 files/avifile-0.7.37.20030522-divx.patch 11943
-MD5 624ac61f6a4fb9ed9700a7496f2827cb files/avifile-0.7.38.20030710-amd64.patch 466
-MD5 88eda2a3289907201d524c557bd8a753 files/digest-avifile-0.7.32.20030219 73
MD5 c1a25bfd2234206e97e7b744c39c0d06 files/digest-avifile-0.7.37.20030522-r2 73
-MD5 5c7a3ea4957036aa1da3db9880a3ed34 files/flvenc-patch 558
+MD5 88eda2a3289907201d524c557bd8a753 files/digest-avifile-0.7.32.20030219 73
MD5 7a55e6cb72df715c9b822505d5b4b8b0 files/avifile-0.7.38.20030710-2.6.patch 2038
-MD5 769b5c63369a3c1bc5b74abe591731fd files/avifile-0.7.38.20030710-sparc.patch 998
-MD5 69d7c84947a5ea083f25e43fdacc126e files/avifile-gcc34.patch 5795
-MD5 f2e5938361909893d37d1ce0b80fdbfc files/avifile-x86-gcc34.patch 5247
+MD5 624ac61f6a4fb9ed9700a7496f2827cb files/avifile-0.7.38.20030710-amd64.patch 466
MD5 21e60c1838b04fa1990fe5538569ac4b files/digest-avifile-0.7.38.20030710-r1 71
+MD5 c5840e80e1a70f6b5ce25679e53f2dcb files/throw.patch 7396
+MD5 5c7a3ea4957036aa1da3db9880a3ed34 files/flvenc-patch 558
+MD5 f2e5938361909893d37d1ce0b80fdbfc files/avifile-x86-gcc34.patch 5247
MD5 d0f665d4394d9d9a59c9a5dadeb09882 files/avifile-0.7.41.20041001-sparc.patch 1262
+MD5 769b5c63369a3c1bc5b74abe591731fd files/avifile-0.7.38.20030710-sparc.patch 998
MD5 f19f862b147fa314ed83d4b78e661a5d files/digest-avifile-0.7.41.20041001 71
-MD5 c5840e80e1a70f6b5ce25679e53f2dcb files/throw.patch 7396
MD5 37a0170a523a26fd8a8c576c498b3641 files/avifile-0.7.41.20041001-gcc2.patch 1006
+MD5 69d7c84947a5ea083f25e43fdacc126e files/avifile-gcc34.patch 5795
MD5 f19f862b147fa314ed83d4b78e661a5d files/digest-avifile-0.7.41.20041001-r1 71
+MD5 f19f862b147fa314ed83d4b78e661a5d files/digest-avifile-0.7.41.20041001-r2 71
diff --git a/media-video/avifile/avifile-0.7.41.20041001-r2.ebuild b/media-video/avifile/avifile-0.7.41.20041001-r2.ebuild
new file mode 100644
index 000000000000..0a91e3715075
--- /dev/null
+++ b/media-video/avifile/avifile-0.7.41.20041001-r2.ebuild
@@ -0,0 +1,149 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/media-video/avifile/avifile-0.7.41.20041001-r2.ebuild,v 1.1 2005/01/29 15:49:36 luckyduck Exp $
+
+inherit eutils flag-o-matic
+
+MAJ_PV=${PV:0:3}
+MIN_PV=${PV:0:6}
+MY_P="${PN}-${MAJ_PV}-${MIN_PV}"
+S="${WORKDIR}/${MY_P}"
+
+DESCRIPTION="Library for AVI-Files"
+HOMEPAGE="http://avifile.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0.7"
+
+#-sparc: 0.7.41 - dsputil_init_vis undefined - eradicator
+KEYWORDS="~alpha ~amd64 ~arm ~ia64 ~mips -sparc ~x86"
+IUSE="3dnow X alsa avi debug divx4linux dmalloc dpms dvd encode esd mad matrox
+mmx oggvorbis oss pic qt sblive sdl sse static truetype v4l vidix xinerama xv xvid zlib"
+
+DEPEND="alsa? ( >=media-libs/alsa-lib-0.9.0_rc2 )
+ avi? ( !alpha? ( !arm? ( !ia64? ( !mips? ( >=media-libs/win32codecs-0.90 ) ) ) ) )
+ divx4linux? ( x86? ( >=media-libs/divx4linux-20030428 ) )
+ dmalloc? ( !arm? ( !mips? ( dev-libs/dmalloc ) ) )
+ dvd? ( >=media-libs/a52dec-0.7 )
+ encode? ( >=media-sound/lame-3.90 )
+ esd? ( >=media-sound/esound-0.2.28 )
+ mad? ( media-libs/libmad )
+ oggvorbis? ( >=media-libs/libvorbis-1.0 )
+ qt? ( >=x11-libs/qt-3.0.3 )
+ sdl? ( >=media-libs/libsdl-1.2.2 )
+ truetype? ( >=media-libs/freetype-2.1 )
+ xv? ( virtual/x11 )
+ xvid? ( =media-libs/xvid-1* )
+ X? ( virtual/x11 virtual/xft )
+ zlib? ( >=sys-libs/zlib-1.1.3 )
+ >=media-libs/audiofile-0.2.3
+ >=media-libs/jpeg-6b
+ >=media-video/ffmpeg-0.4
+ >=sys-apps/sed-4
+ >=sys-devel/patch-2.5.9"
+
+src_unpack() {
+ unpack ${A}
+ use qt || sed -i 's/qt[a-z]*//g' ${S}/samples/Makefile.am
+
+ # make sure pkgconfig file is correct #53183
+ cd ${S}
+ epatch ${FILESDIR}/throw.patch
+ epatch ${FILESDIR}/${PN}-${PV}-gcc2.patch
+ use sparc && epatch ${FILESDIR}/${P}-sparc.patch
+ rm -f avifile.pc
+ sed -i "/^includedir=/s:avifile$:avifile-${PV:0:3}:" avifile.pc.in \
+ || die "sed failed (avifile.pc.in)"
+ sed -e "s:| sed s/-g//::" -i configure || die "sed failed (-g)"
+ # Fix qt detection
+ sed -i \
+ -e "s:extern \"C\" void exit(int);:/* extern \"C\" void exit(int); */:" \
+ configure || die "sed failed (qt detection)"
+ # Fix hardcoded Xrender linking, bug #68899
+ if ! use X; then
+ sed -e 's/-lXrender//g' -i lib/video/Makefile.* \
+ || die "sed failed (Xrender)"
+ fi
+ # adding CFLAGS by default which exists only for x86 is no good idea
+ # but I can't get it through gcc 3.4.3 without omit-frame-pointer
+ find . -name "Makefile.in" | while read file; do
+ sed -e "s/^AM_CFLAGS = .*/AM_CFLAGS = -fomit-frame-pointer/" -i $file
+ done
+}
+
+src_compile() {
+ local myconf=""
+ local kdepre=""
+
+ use sparc \
+ && myconf="${myconf} --enable-sunaudio" \
+ || myconf="${myconf} --disable-sunaudio"
+
+ use debug \
+ && myconf="${myconf} --enable-loader-out" \
+ || myconf="${myconf} --enable-quiet"
+
+ ( use mmx || use sse || use 3dnow ) && myconf="${myconf} --enable-x86opt"
+
+ use encode \
+ && myconf="${myconf} --disable-lame --enable-lamebin" \
+ || myconf="${myconf} --enable-lame --disable-lamebin"
+
+ # 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"
+
+ filter-flags "-momit-leaf-frame-pointer"
+
+ export FFMPEG_CFLAGS="${CFLAGS}"
+
+ econf \
+ `use_enable avi win32` \
+ `use_with dmalloc dmallocth` \
+ `use_enable dvd a52` `use_enable dvd ffmpeg-a52` \
+ `use_enable dpms` \
+ `use_enable mad` `use_enable libmad` \
+ `use_enable matrox mga` \
+ `use_enable oggvorbis vorbis` `use_enable oggvorbis oggtest` `use_enable oggvorbis vorbistest` \
+ `use_enable oss` \
+ `use_with pic fpic` `use_enable pic fpic` \
+ `use_with qt` \
+ `use_enable sblive ac3passthrough` \
+ `use_enable sdl` `use_enable sdl sdltest` \
+ `use_enable static` \
+ `use_enable truetype freetype2` \
+ `use_enable v4l` \
+ `use_enable vidix` \
+ `use_with X x` `use_enable X xft` \
+ `use_enable xv` \
+ `use_enable xvid xvid4` --disable-xvid \
+ `use_enable zlib libz` \
+ ${myconf} \
+ || die
+ emake || die
+}
+
+src_install() {
+ use avi && dodir /usr/$(get_libdir)/win32
+
+ make DESTDIR="${D}" install || die
+
+ dodoc README INSTALL
+ cd doc
+ dodoc CREDITS EXCEPTIONS TODO VIDEO-PERFORMANCE WARNINGS KNOWN_BUGS
+}
+
+src_test() {
+ ewarn "Testing disabled for this ebuild."
+}
+
+pkg_postinst() {
+ if use qt; then # else no aviplay built
+ 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"
+ fi
+}
diff --git a/media-video/avifile/files/digest-avifile-0.7.41.20041001-r2 b/media-video/avifile/files/digest-avifile-0.7.41.20041001-r2
new file mode 100644
index 000000000000..019a69ee1a1c
--- /dev/null
+++ b/media-video/avifile/files/digest-avifile-0.7.41.20041001-r2
@@ -0,0 +1 @@
+MD5 a08911965d81a02ded95ddb95f63e1cf avifile-0.7-0.7.41.tar.gz 3498203