# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ DESCRIPTION="libpostproc library from ffmpeg" HOMEPAGE="http://ffmpeg.sourceforge.net/" FF_P=ffmpeg-${PV##*.} S=${WORKDIR}/${FF_P} # TODO: This should point to a more logical source. This just happens to # be somewhere we can get a fixed date ffmpeg snapshot SRC_URI="http://download.videolan.org/pub/videolan/vlc/0.7.1/contrib/${FF_P}.tar.bz2" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" RDEPEND="" DEPEND="${RDEPEND}" pkg_setup() { if `has_version "<=media-video/mplayer-1.0_pre3-r1"` ; then echo einfo "mplayer prior to version 1.0_pre3-r1 installs the" einfo "libpostproc library. You must upgrade or remove" einfo "mplayer in order to continue." die fi } src_compile() { local myconf # do ffmpeg configure to get ../config.mak ./configure ${myconf} \ --prefix=/usr || die "./configure failed." cd ${S}/libavcodec/libpostproc make || die "Failed to build libpostproc.a!" make SHARED_PP="yes" || die "Failed to build libpostproc.so!" } src_install() { # Install our libpostproc ... cd ${S}/libavcodec/libpostproc make prefix=${D}/usr \ install || die "Failed to install libpostproc.a!" make prefix=${D}/usr \ SHARED_PP="yes" \ install || die "Failed to install libpostproc.so!" cd ${S} # Some stuff like transcode can use this one. dolib ${S}/libavcodec/libpostproc/libpostproc.a preplib /usr }