Lines 1-93
Link Here
|
1 |
# Copyright 1999-2011 Gentoo Foundation |
1 |
# Copyright 1999-2011 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/libbluray-0.0.1_pre20110210.ebuild,v 1.1 2011/02/10 08:01:53 radhermit Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-libs/libbluray/libbluray-0.0.1_pre20110210.ebuild,v 1.1 2011/02/10 08:01:53 radhermit Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
|
6 |
|
7 |
inherit autotools java-pkg-opt-2 flag-o-matic |
7 |
inherit autotools java-pkg-opt-2 flag-o-matic |
8 |
|
8 |
|
9 |
DESCRIPTION="Blu-ray playback libraries" |
9 |
DESCRIPTION="Blu-ray playback libraries" |
10 |
HOMEPAGE="http://www.videolan.org/developers/libbluray.html" |
10 |
HOMEPAGE="http://www.videolan.org/developers/libbluray.html" |
11 |
SRC_URI="http://dev.gentoo.org/~radhermit/distfiles/${P}.tar.bz2" |
11 |
SRC_URI="http://dev.gentoo.org/~radhermit/distfiles/${P}.tar.bz2" |
12 |
|
12 |
|
13 |
LICENSE="GPL-2" |
13 |
LICENSE="GPL-2" |
14 |
SLOT="0" |
14 |
SLOT="0" |
15 |
KEYWORDS="~amd64 ~x86" |
15 |
KEYWORDS="~amd64 ~x86" |
16 |
IUSE="aacs java static-libs utils xine" |
16 |
IUSE="aacs java static-libs utils xine" |
17 |
|
17 |
|
18 |
COMMON_DEPEND=" |
18 |
COMMON_DEPEND=" |
19 |
dev-libs/libxml2 |
19 |
dev-libs/libxml2 |
20 |
xine? ( media-libs/xine-lib ) |
|
|
21 |
" |
20 |
" |
22 |
RDEPEND=" |
21 |
RDEPEND=" |
23 |
${COMMON_DEPEND} |
22 |
${COMMON_DEPEND} |
24 |
aacs? ( media-video/aacskeys ) |
23 |
aacs? ( media-video/aacskeys ) |
25 |
java? ( >=virtual/jre-1.6 ) |
24 |
java? ( >=virtual/jre-1.6 ) |
26 |
" |
25 |
" |
27 |
DEPEND=" |
26 |
DEPEND=" |
28 |
${COMMON_DEPEND} |
27 |
${COMMON_DEPEND} |
29 |
java? ( |
28 |
java? ( |
30 |
>=virtual/jdk-1.6 |
29 |
>=virtual/jdk-1.6 |
31 |
dev-java/ant-core |
30 |
dev-java/ant-core |
32 |
) |
31 |
) |
33 |
dev-util/pkgconfig |
32 |
dev-util/pkgconfig |
34 |
" |
33 |
" |
|
|
34 |
PDEPEND=" |
35 |
xine? ( media-libs/libbluray-xine ) |
36 |
" |
35 |
|
37 |
|
36 |
DOCS="doc/README README.txt TODO.txt" |
38 |
DOCS=( doc/README README.txt TODO.txt ) |
37 |
|
39 |
|
38 |
src_prepare() { |
40 |
src_prepare() { |
39 |
use java && export JDK_HOME="$(java-config -g JAVA_HOME)" |
41 |
use java && export JDK_HOME="$(java-config -g JAVA_HOME)" |
40 |
eautoreconf |
42 |
eautoreconf |
41 |
|
43 |
|
42 |
java-pkg-opt-2_src_prepare |
44 |
java-pkg-opt-2_src_prepare |
43 |
} |
45 |
} |
44 |
|
46 |
|
45 |
src_configure() { |
47 |
src_configure() { |
46 |
local myconf="" |
48 |
local myconf="" |
47 |
if use java; then |
49 |
if use java; then |
48 |
export JAVACFLAGS="$(java-pkg_javac-args)" |
50 |
export JAVACFLAGS="$(java-pkg_javac-args)" |
49 |
append-cflags "$(java-pkg_get-jni-cflags)" |
51 |
append-cflags "$(java-pkg_get-jni-cflags)" |
50 |
myconf="--with-jdk=${JDK_HOME}" |
52 |
myconf="--with-jdk=${JDK_HOME}" |
51 |
fi |
53 |
fi |
52 |
|
54 |
|
53 |
econf \ |
55 |
econf \ |
54 |
$(use_enable java bdjava) \ |
56 |
$(use_enable java bdjava) \ |
55 |
$(use_enable static-libs static) \ |
57 |
$(use_enable static-libs static) \ |
56 |
$(use_enable utils static) \ |
58 |
$(use_enable utils static) \ |
57 |
$(use_enable utils examples) \ |
59 |
$(use_enable utils examples) \ |
58 |
$myconf |
60 |
$myconf |
59 |
} |
61 |
} |
60 |
|
62 |
|
61 |
src_compile() { |
63 |
src_compile() { |
62 |
emake |
64 |
emake |
63 |
|
|
|
64 |
if use xine; then |
65 |
cd player_wrappers/xine |
66 |
emake |
67 |
fi |
68 |
} |
65 |
} |
69 |
|
66 |
|
70 |
src_install() { |
67 |
src_install() { |
71 |
default_src_install |
68 |
default_src_install |
72 |
|
69 |
|
73 |
if use utils; then |
70 |
if use utils; then |
74 |
cd src/examples/ |
71 |
cd src/examples/ |
75 |
dobin clpi_dump index_dump mobj_dump mpls_dump sound_dump |
72 |
dobin clpi_dump index_dump mobj_dump mpls_dump sound_dump |
76 |
cd .libs/ |
73 |
cd .libs/ |
77 |
dobin bd_info bdsplice hdmv_test libbluray_test list_titles |
74 |
dobin bd_info bdsplice hdmv_test libbluray_test list_titles |
78 |
if use java; then |
75 |
if use java; then |
79 |
dobin bdj_test |
76 |
dobin bdj_test |
80 |
fi |
77 |
fi |
81 |
fi |
78 |
fi |
82 |
|
79 |
|
83 |
if use java; then |
80 |
if use java; then |
84 |
java-pkg_dojar "${S}/src/.libs/${PN}.jar" |
81 |
java-pkg_dojar "${S}/src/.libs/${PN}.jar" |
85 |
doenvd "${FILESDIR}"/90${PN} |
82 |
doenvd "${FILESDIR}"/90${PN} |
86 |
fi |
83 |
fi |
87 |
|
|
|
88 |
if use xine; then |
89 |
cd "${S}"/player_wrappers/xine |
90 |
emake DESTDIR="${D}" install |
91 |
newdoc HOWTO README.xine |
92 |
fi |
93 |
} |
84 |
} |