diff options
author | Nick Hadaway <raker@gentoo.org> | 2003-07-17 14:18:38 +0000 |
---|---|---|
committer | Nick Hadaway <raker@gentoo.org> | 2003-07-17 14:18:38 +0000 |
commit | cdb5c5092a1b35cf3f09fb78399f0929f4d0377a (patch) | |
tree | 45c5fd2e13f16ee294c3c2c3dd5b4231b28efba6 | |
parent | New ebuild which depends on libmad/libid3tag and fixes the (diff) | |
download | gentoo-2-cdb5c5092a1b35cf3f09fb78399f0929f4d0377a.tar.gz gentoo-2-cdb5c5092a1b35cf3f09fb78399f0929f4d0377a.tar.bz2 gentoo-2-cdb5c5092a1b35cf3f09fb78399f0929f4d0377a.zip |
New ebuild which depends on media-libs/{libmad,libid3tag} and changes
$DEBUGUBILD to `use debug`
-rw-r--r-- | media-video/avifile/ChangeLog | 9 | ||||
-rw-r--r-- | media-video/avifile/Manifest | 18 | ||||
-rw-r--r-- | media-video/avifile/avifile-0.7.37.20030522-r2.ebuild | 172 | ||||
-rw-r--r-- | media-video/avifile/files/digest-avifile-0.7.37.20030522-r2 | 1 |
4 files changed, 191 insertions, 9 deletions
diff --git a/media-video/avifile/ChangeLog b/media-video/avifile/ChangeLog index 9050bd0a32e8..599a95184998 100644 --- a/media-video/avifile/ChangeLog +++ b/media-video/avifile/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for media-video/avifile # Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/avifile/ChangeLog,v 1.51 2003/07/08 22:14:51 mholzer Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/avifile/ChangeLog,v 1.52 2003/07/17 14:18:38 raker Exp $ + +*avifile-0.7.27.20030522-r2 (17 Jul 2003) + + 17 Jul 2003; Nick Hadaway <raker@gentoo.org> + avifile-0.7.27.20030522-r2.ebuild: + Changed from media-sound/mad to media-libs/{libmad,libid3tag} and + from $DEBUGBUILD to `use debug` *avifile-0.7.37.20030522-r1 (09 Jul 2003) diff --git a/media-video/avifile/Manifest b/media-video/avifile/Manifest index 51f88adb28b2..5f0f3fe3465e 100644 --- a/media-video/avifile/Manifest +++ b/media-video/avifile/Manifest @@ -1,12 +1,14 @@ -MD5 85b5b803b1b96c513d8171e2b91007ff ChangeLog 9519 -MD5 57d49dcece64d038049874257f89f20c avifile-0.7.15.20020816-r1.ebuild 2226 -MD5 a39c30fae967c6e1aa9e1550fdf32d33 avifile-0.7.32.20030219.ebuild 4101 +MD5 52d2f260f3c6b149b84acbf39a18474a avifile-0.7.37.20030522.ebuild 4282 MD5 88f6f30b27d42a87e62155463f77797c avifile-0.7.34.20030319.ebuild 4178 MD5 c9a928d42bbc570e593bff00167e47c8 avifile-0.7.37.20030522-r1.ebuild 4573 -MD5 52d2f260f3c6b149b84acbf39a18474a avifile-0.7.37.20030522.ebuild 4282 -MD5 f568371b0b1dd7cb7dfd933c551fddc9 files/digest-avifile-0.7.15.20020816-r1 73 -MD5 88eda2a3289907201d524c557bd8a753 files/digest-avifile-0.7.32.20030219 73 -MD5 081b0f05ada052539e0eb16ae2eb441d files/digest-avifile-0.7.34.20030319 73 -MD5 c1a25bfd2234206e97e7b744c39c0d06 files/digest-avifile-0.7.37.20030522 73 +MD5 a39c30fae967c6e1aa9e1550fdf32d33 avifile-0.7.32.20030219.ebuild 4101 +MD5 57d49dcece64d038049874257f89f20c avifile-0.7.15.20020816-r1.ebuild 2226 +MD5 2168f34a1f092726a2a4091f708b2863 ChangeLog 9750 +MD5 f2539ab5bb7dc2808ea37aece2a19ab4 avifile-0.7.37.20030522-r2.ebuild 4516 MD5 8390bf9de24635d667a5724c2cc0cbe9 files/avifile-0.7.37.20030522-divx.patch 11943 MD5 c1a25bfd2234206e97e7b744c39c0d06 files/digest-avifile-0.7.37.20030522-r1 73 +MD5 c1a25bfd2234206e97e7b744c39c0d06 files/digest-avifile-0.7.37.20030522-r2 73 +MD5 88eda2a3289907201d524c557bd8a753 files/digest-avifile-0.7.32.20030219 73 +MD5 c1a25bfd2234206e97e7b744c39c0d06 files/digest-avifile-0.7.37.20030522 73 +MD5 f568371b0b1dd7cb7dfd933c551fddc9 files/digest-avifile-0.7.15.20020816-r1 73 +MD5 081b0f05ada052539e0eb16ae2eb441d files/digest-avifile-0.7.34.20030319 73 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 index 000000000000..5e205c7a8e87 --- /dev/null +++ b/media-video/avifile/avifile-0.7.37.20030522-r2.ebuild @@ -0,0 +1,172 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# 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.1 2003/07/17 14:18:38 raker Exp $ + +IUSE="static truetype xv sdl dvd mmx sse 3dnow zlib oggvorbis X qt alsa esd debug" + +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" +SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tgz" +HOMEPAGE="http://avifile.sourceforge.net/" + +SLOT="0.7" +LICENSE="GPL-2" +KEYWORDS="~x86 ~sparc" + +DEPEND=">=media-libs/jpeg-6b + x86? ( >=media-libs/divx4linux-20020418 + >=media-libs/win32codecs-0.90 ) + >=media-video/ffmpeg-0.4 + media-libs/libmad + media-libs/libid3tag + >=media-libs/xvid-0.9.0 + >=media-sound/lame-3.90 + >=media-libs/audiofile-0.2.3 + >=sys-apps/sed-4 + truetype? ( >=media-libs/freetype-2.1 ) + xv? ( >=x11-base/xfree-4.2.1 ) + 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? ( >=x11-base/xfree-4.2.0 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 index 000000000000..decb06dd70e4 --- /dev/null +++ b/media-video/avifile/files/digest-avifile-0.7.37.20030522-r2 @@ -0,0 +1 @@ +MD5 074bd003318128e433dd96a64c80b776 avifile-0.7.37-20030522.tgz 2862210 |