summaryrefslogtreecommitdiff
path: root/packages/media-libs/libbluray/libbluray-scm.exheres-0
blob: be6ca1102ebddd7a1584ede4a30e2c180854e401 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Copyright 2011 Alex ELsayed <eternaleye@gmail.com>
# Distributed under the terms of the GNU General Public License v2


SCM_REPOSITORY="https://git.videolan.org/git/libbluray.git"
SCM_EXTERNAL_REFS="
	contrib/libudfread:libudfread
"
SCM_SECONDARY_REPOSITORIES="
	libudfread
"
SCM_libudfread_REPOSITORY="git://git.videolan.org/libudfread.git"

require scm-git autotools [ supported_autoconf=[ 2.5 ] supported_automake=[ 1.15 ] ]

SUMMARY="Open-source library designed for Blu-Ray Discs playback for media players, like VLC or MPlayer"
HOMEPAGE="https://www.videolan.org/developers/${PN}.html"


PLATFORMS="~amd64"


LICENCES="LGPL-2.1"
SLOT="0"
MYOPTIONS="
    doc
    examples
"

DEPENDENCIES="
    build:
        dev-java/apache-ant
        virtual/pkg-config[>=0.9.0]
        doc? ( app-doc/doxygen[dot] )
        virtual/jdk:1.8
    build+run:
        dev-libs/libxml2:2.0[>=2.6]
        media-libs/fontconfig
        media-libs/freetype:2
    suggestion:
        virtual/libaacs [[ description = [ Decrypt encrypted blurays ] ]]
"

# Disable ps and pdf generation due to chronic latex shortage
# dlopen the crypto libs at runtime to avoid build-time automagic checks
DEFAULT_SRC_CONFIGURE_PARAMS=(
    --enable-bdjava-jar
    --disable-doxygen-{pdf,ps}
    --disable-static
    --with-fontconfig
    --with-freetype
    --with-libxml2
)
DEFAULT_SRC_CONFIGURE_OPTION_ENABLES=(
    "doc doxygen-doc"
    "doc doxygen-dot"
    examples
)

AT_M4DIR=( m4 )

src_configure() {
    export JDK_HOME="/usr/$(exhost --target)/lib/jdk"

    default
}