diff options
author | Tim Harder <radhermit@gentoo.org> | 2011-02-01 12:37:40 +0000 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2011-02-01 12:37:40 +0000 |
commit | de18077fcc1d9bfd0855b86b74aae58141374f94 (patch) | |
tree | 2c7ebe94553ebbe1b590aec982807e7d783905ab /media-libs | |
parent | sys-kernel/genkernel: Update manifest for bug #353344 (diff) | |
download | gentoo-2-de18077fcc1d9bfd0855b86b74aae58141374f94.tar.gz gentoo-2-de18077fcc1d9bfd0855b86b74aae58141374f94.tar.bz2 gentoo-2-de18077fcc1d9bfd0855b86b74aae58141374f94.zip |
Update live ebuild for bug #352033 thanks to Nikoli. Update dependencies and add static-libs, utils, and xine USE flags. Allow for building and installing BD-J support.
(Portage version: 2.2.0_alpha19/cvs/Linux x86_64)
Diffstat (limited to 'media-libs')
-rw-r--r-- | media-libs/libbluray/ChangeLog | 10 | ||||
-rw-r--r-- | media-libs/libbluray/libbluray-9999.ebuild | 72 | ||||
-rw-r--r-- | media-libs/libbluray/metadata.xml | 3 |
3 files changed, 69 insertions, 16 deletions
diff --git a/media-libs/libbluray/ChangeLog b/media-libs/libbluray/ChangeLog index 780100d5b178..23dfeefff46c 100644 --- a/media-libs/libbluray/ChangeLog +++ b/media-libs/libbluray/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-libs/libbluray -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/ChangeLog,v 1.1 2010/07/17 02:55:14 beandog Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/ChangeLog,v 1.2 2011/02/01 12:37:40 radhermit Exp $ + + 01 Feb 2011; Tim Harder <radhermit@gentoo.org> libbluray-9999.ebuild, + metadata.xml: + Update live ebuild for bug #352033 thanks to Nikoli. Update dependencies and + add static-libs, utils, and xine USE flags. Allow for building and installing + BD-J support. *libbluray-9999 (17 Jul 2010) diff --git a/media-libs/libbluray/libbluray-9999.ebuild b/media-libs/libbluray/libbluray-9999.ebuild index f793020d8513..77541319491d 100644 --- a/media-libs/libbluray/libbluray-9999.ebuild +++ b/media-libs/libbluray/libbluray-9999.ebuild @@ -1,40 +1,84 @@ -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/libbluray-9999.ebuild,v 1.1 2010/07/17 02:55:14 beandog Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/libbluray-9999.ebuild,v 1.2 2011/02/01 12:37:40 radhermit Exp $ EAPI=2 -inherit autotools git +inherit autotools java-pkg-opt-2 git flag-o-matic EGIT_REPO_URI="git://git.videolan.org/libbluray.git" DESCRIPTION="Blu-ray playback libraries" -HOMEPAGE="http://www.videolan.org/ http://git.videolan.org/?p=libbluray.git;a=summary" +HOMEPAGE="http://www.videolan.org/developers/libbluray.html" LICENSE="GPL-2" SLOT="0" KEYWORDS="" -IUSE="aacs java" +IUSE="aacs java static-libs utils xine" -RDEPEND="aacs? ( media-video/aacskeys )" -DEPEND="java? ( virtual/jdk )" +COMMON_DEPEND="dev-libs/libxml2 + xine? ( media-libs/xine-lib )" +RDEPEND="${COMMON_DEPEND} + aacs? ( media-video/aacskeys ) + java? ( >=virtual/jre-1.6 )" +DEPEND="${COMMON_DEPEND} + java? ( >=virtual/jdk-1.6 ) + dev-util/pkgconfig" src_prepare() { use java && export JDK_HOME="$(java-config -g JAVA_HOME)" eautoreconf + + java-pkg-opt-2_src_prepare } src_configure() { local myconf="" - use java && myconf="--with-jdk=${JDK_HOME}" - econf $myconf + if use java; then + export JAVACFLAGS="$(java-pkg_javac-args)" + append-cflags "$(java-pkg_get-jni-cflags)" + myconf="--with-jdk=${JDK_HOME}" + fi + + econf \ + $(use_enable java bdjava) \ + $(use_enable static-libs static) \ + $(use_enable utils static) \ + $(use_enable utils examples) \ + $myconf +} + +src_compile() { + emake || die + + if use xine; then + cd player_wrappers/xine || die + emake || die + fi } src_install() { emake DESTDIR="${D}" install || die - dodoc doc/README README.txt TODO.txt - cd "${S}"/src/examples/ - dobin clpi_dump index_dump mobj_dump mpls_dump sound_dump - cd "${S}"/src/examples/.libs/ - dobin bdsplice libbluray_test list_titles + + dodoc doc/README README.txt TODO.txt || die + + if use utils; then + cd src/examples/ + dobin clpi_dump index_dump mobj_dump mpls_dump sound_dump || die + cd .libs/ + dobin bd_info bdsplice hdmv_test libbluray_test list_titles || die + if use java; then + dobin bdj_test || die + fi + fi + + if use java; then + java-pkg_dojar "${S}/src/.libs/${PN}.jar" + fi + + if use xine; then + cd "${S}"/player_wrappers/xine || die + emake DESTDIR="${D}" install || die + newdoc HOWTO README.xine + fi } diff --git a/media-libs/libbluray/metadata.xml b/media-libs/libbluray/metadata.xml index 9608a1da6ca8..95d6be376805 100644 --- a/media-libs/libbluray/metadata.xml +++ b/media-libs/libbluray/metadata.xml @@ -8,5 +8,8 @@ </maintainer> <use> <flag name="aacs">Add support for decryption of AACS</flag> + <flag name="java">Add support for BD-J</flag> + <flag name="utils">Install command-line utilities and examples</flag> + <flag name="xine">Build Blu-ray input plugin for Xine</flag> </use> </pkgmetadata> |