45 lines
939 B
Bash
45 lines
939 B
Bash
# Copyright 1999-2011 Gentoo Foundation
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
# $Header: /var/cvsroot/gentoo-x86/media-libs/ffmpegsource/ffmpegsource-2.16.ebuild,v 1.1 2011/09/03 18:14:46 maksbotan Exp $
|
|
|
|
EAPI=4
|
|
|
|
inherit autotools
|
|
|
|
MY_P="ffms-${PV}-src"
|
|
DESCRIPTION="An FFmpeg based source library for easy frame accurate access"
|
|
HOMEPAGE="https://code.google.com/p/ffmpegsource/"
|
|
SRC_URI="https://ffmpegsource.googlecode.com/files/${MY_P}.tar.bz2"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64 ~x86"
|
|
IUSE="postproc static-libs"
|
|
|
|
RDEPEND="
|
|
sys-libs/zlib
|
|
virtual/ffmpeg
|
|
"
|
|
DEPEND="${RDEPEND}
|
|
dev-util/pkgconfig
|
|
"
|
|
|
|
S="${WORKDIR}/${MY_P}"
|
|
|
|
src_prepare() {
|
|
eautoreconf
|
|
}
|
|
|
|
src_configure() {
|
|
econf \
|
|
--docdir="${EPREFIX}/usr/share/doc/${PF}/html" \
|
|
$(use_enable postproc) \
|
|
$(use_enable static-libs static) \
|
|
--enable-shared
|
|
}
|
|
|
|
src_install() {
|
|
default
|
|
|
|
use static-libs || find "${D}" -name '*.la' -delete
|
|
}
|