summaryrefslogtreecommitdiff
path: root/recipes/libxine/libxine.inc
blob: 91bb30f8b02962300e8d1aa84e3dd1cf2bffbdfa (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
DESCRIPTION = "libxine is a versatile multimedia library decoding a lot of common audio and video formats." 
SECTION = "libs"
PRIORITY = "optional"
LICENSE = "GPL"
DEPENDS = "ffmpeg zlib libogg libvorbis tremor libmad libmodplug libpng alsa-lib virtual/libiconv virtual/libx11 \
	   libxv libxext directfb pulseaudio"

inherit autotools gettext binconfig pkgconfig

SRC_URI = "${SOURCEFORGE_MIRROR}/xine/xine-lib-${PV}.tar.bz2"

S = "${WORKDIR}/xine-lib-${PV}"

SOV = "1.0.7"

EXTRA_OECONF = "--with-zlib-path=${STAGING_EXECPREFIXDIR} \
	--with-vorbis-prefix=${STAGING_EXECPREFIXDIR} \
	--disable-oggtest --with-ogg-prefix=${STAGING_EXECPREFIXDIR} \
	--disable-iconvtest \
        --disable-asf --disable-faad \
        --disable-aalib  --disable-aalibtest \
        --disable-esd    --disable-esdtest \
        --disable-dvdnav --disable-dvdnavtest \
        --disable-vcd \
        --without-arts --without-sdl \
	--disable-altivec --disable-vis --disable-mlib \
	--without-sdl \
	--without-v4l --disable-dxr3 --disable-libfametest\
	--disable-rpath \
	--enable-fb --enable-directfb \
        --with-x --x-includes=${STAGING_INCDIR}/X11 \
        --x-libraries=${STAGING_LIBDIR} \
	"

LIBTOOL = "${HOST_SYS}-libtool"
EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'"

do_stage() {
        autotools_stage_all
}

PACKAGES_DYNAMIC = "libxine-plugin-* libxine-font-*"

python populate_packages_prepend () {
	bb.data.setVar('PKG_libxine', 'libxine', d)

	plugindir = bb.data.expand('${libdir}/xine/plugins/${PPDIR}', d)
	do_split_packages(d, plugindir, '^xineplug_(.*)\.so$', 'libxine-plugin-%s', 'Xine plugin for %s', extra_depends='' )

	postdir = bb.data.expand('${libdir}/xine/plugins/${PPDIR}/post', d)
	do_split_packages(d, postdir, '^xineplug_(.*)\.so$', 'libxine-plugin-%s', 'Xine plugin for %s', extra_depends='' )

	fontdir = bb.data.expand('${datadir}/xine/libxine1/fonts', d)
	do_split_packages(d, fontdir, '^(.*).xinefont.gz$', 'libxine-font-%s', 'Xine font %s', extra_depends='' )
}

#python populate_packages_append () {
#	bb.data.setVar('PKG_libxine', 'libxine', d)
#	
#	plugindirdbg = bb.data.expand('${libdir}/xine/plugins/${PPDIR}/.debug', d)
#       do_split_packages(d, plugindirdbg, '^xineplug_(.*)\.so$', 'libxine-plugin-%s-dbg', 'Xine plugin for %s debugversion', extra_depends='' )
#
#	postdirdbg = bb.data.expand('${libdir}/xine/plugins/${PPDIR}/post/.debug', d)
#        do_split_packages(d, postdirdbg, '^xineplug_(.*)\.so$', 'libxine-plugin-%s-dbg', 'Xine plugin for %s debugversion', extra_depends='' )
#}