1 DESCRIPTION = "libxine is a versatile multimedia library decoding a lot of common audio and video formats."
5 DEPENDS = "ffmpeg zlib libogg libvorbis tremor libmad libmodplug libpng alsa-lib virtual/libiconv virtual/libx11 \
6 libxv libxext directfb pulseaudio libtool"
10 inherit autotools gettext binconfig pkgconfig
12 SRC_URI = "${SOURCEFORGE_MIRROR}/xine/xine-lib-${PV}.tar.bz2"
14 S = "${WORKDIR}/xine-lib-${PV}"
18 EXTRA_OECONF = "--with-zlib-path=${STAGING_EXECPREFIXDIR} \
19 --with-vorbis-prefix=${STAGING_EXECPREFIXDIR} \
20 --disable-oggtest --with-ogg-prefix=${STAGING_EXECPREFIXDIR} \
22 --disable-asf --disable-faad \
23 --disable-aalib --disable-aalibtest \
24 --disable-esd --disable-esdtest \
25 --disable-dvdnav --disable-dvdnavtest \
27 --without-arts --without-sdl \
28 --disable-altivec --disable-vis --disable-mlib \
29 --without-v4l --disable-dxr3 --disable-libfametest\
31 --enable-fb --enable-directfb \
32 --with-x --x-includes=${STAGING_INCDIR}/X11 \
33 --x-libraries=${STAGING_LIBDIR} \
36 LIBTOOL = "${HOST_SYS}-libtool"
37 EXTRA_OEMAKE = "'LIBTOOL=${LIBTOOL}'"
39 PACKAGES_DYNAMIC = "libxine-plugin-* libxine-font-*"
41 python populate_packages_prepend () {
42 bb.data.setVar('PKG_libxine', 'libxine', d)
44 plugindir = bb.data.expand('${libdir}/xine/plugins/${PPDIR}', d)
45 do_split_packages(d, plugindir, '^xineplug_(.*)\.so$', 'libxine-plugin-%s', 'Xine plugin for %s', extra_depends='' )
47 postdir = bb.data.expand('${libdir}/xine/plugins/${PPDIR}/post', d)
48 do_split_packages(d, postdir, '^xineplug_(.*)\.so$', 'libxine-plugin-%s', 'Xine plugin for %s', extra_depends='' )
50 fontdir = bb.data.expand('${datadir}/xine/libxine1/fonts', d)
51 do_split_packages(d, fontdir, '^(.*).xinefont.gz$', 'libxine-font-%s', 'Xine font %s', extra_depends='' )
54 #python populate_packages_append () {
55 # bb.data.setVar('PKG_libxine', 'libxine', d)
57 # plugindirdbg = bb.data.expand('${libdir}/xine/plugins/${PPDIR}/.debug', d)
58 # do_split_packages(d, plugindirdbg, '^xineplug_(.*)\.so$', 'libxine-plugin-%s-dbg', 'Xine plugin for %s debugversion', extra_depends='' )
60 # postdirdbg = bb.data.expand('${libdir}/xine/plugins/${PPDIR}/post/.debug', d)
61 # do_split_packages(d, postdirdbg, '^xineplug_(.*)\.so$', 'libxine-plugin-%s-dbg', 'Xine plugin for %s debugversion', extra_depends='' )