1 DESCRIPTION = "libxine is a library for multimedia players. \
2 It plays back CDs, DVDs, and VCDs. It also decodes multimedia \
3 files like AVI, MOV, WMV, and MP3 from local disk drives, \
4 and displays multimedia streamed over the Internet. It interprets \
5 many of the most common multimedia formats available - \
6 and some of the most uncommon formats, too."
9 DEPENDS = "zlib libogg tremor libmad"
10 RRECOMMENDS = "libxine-plugins"
13 inherit autotools pkgconfig binconfig
15 SRC_URI = "${SOURCEFORGE_MIRROR}/xine/xine-lib-1-beta12.tar.gz \
16 file://full.patch;patch=1 \
17 file://libvorbis.patch;patch=1 \
18 file://demux_ogg.patch;patch=1 \
19 file://configure.ac.patch;patch=1 \
20 file://vo_scale.patch;patch=1 \
21 file://oss.patch;patch=1;pnum=0 \
22 file://fix-oss-plugin.patch;patch=1 \
23 file://mpegvideo-static-inlining.patch;patch=1 \
24 file://fix-syntax-xine-vorbis-decoder.patch;patch=1 \
25 file://fftscope-static-inlining.patch;patch=1"
26 S = "${WORKDIR}/xine-lib-1-beta12"
31 ./autogen.sh --host ${TARGET_SYS} --build ${BUILD_SYS} \
32 --enable-shared --disable-static --prefix=${prefix} \
33 --with-zlib-path=${STAGING_DIR}/${HOST_SYS} --with-vorbis-prefix=${STAGING_DIR}/${HOST_SYS} \
34 --disable-oggtest --with-ogg-prefix=${STAGING_DIR}/${HOST_SYS} --without-x \
35 --disable-iconv --disable-nls --without-arts --without-sdl \
40 oe_runmake LIBTOOL=${STAGING_BINDIR}/${TARGET-PREFIX}libtool OGG_LIBS=$(STAGING_LIBDIR)/libogg.so
44 oe_runmake -e LIBTOOL=${STAGING_BINDIR}/${TARGET-PREFIX}libtool \
46 'prefix=${STAGING_DIR}' 'exec_prefix=${STAGING_DIR}' \
47 'libdir=${STAGING_LIBDIR}' \
48 'includedir=${STAGING_INCDIR}'
50 oe_runmake -e LIBTOOL=${STAGING_BINDIR}/${TARGET-PREFIX}libtool \
51 -C include install-data \
52 'prefix=${STAGING_DIR}' 'exec_prefix=${STAGING_DIR}' \
53 'libdir=${STAGING_LIBDIR}' \
54 'includedir=${STAGING_INCDIR}'
56 for plugin in `find ${S}/src -type f -name xineplug*.la`; do
58 libname=`basename $plugin|sed -e's,\.la,,'`
59 oe_libinstall -so -C $dir $libname ${STAGING_LIBDIR}/xine/plugins/1.0.0
62 oe_libinstall -so -C src/xine-engine libxine ${STAGING_LIBDIR}
66 oe_runmake -e LIBTOOL=${STAGING_BINDIR}/${TARGET-PREFIX}libtool \
68 'prefix=${D}' 'exec_prefix=${D}' 'libdir=${D}/${libdir}' \
69 'includedir=${D}/${includedir}'
71 oe_runmake -e LIBTOOL=${STAGING_BINDIR}/${TARGET-PREFIX}libtool \
72 -C include install-data \
73 'prefix=${D}' 'exec_prefix=${D}' 'libdir=${D}/${libdir}' \
74 'includedir=${D}/${includedir}'
76 for plugin in `find ${S}/src -type f -name xineplug*.la`; do
78 libname=`basename $plugin|sed -e's,\.la,,'`
79 oe_libinstall -so -C $dir $libname ${D}/${libdir}/xine/plugins/1.0.0
82 oe_libinstall -so -C src/xine-engine libxine ${D}/${libdir}
86 # FIXME: Split plugins into codex, demux, and visualization plugins
87 # or even better, each plugin into one package, since some are HUGE.
90 PACKAGES += "libxine-plugins"
91 FILES_libxine-plugins = "${libdir}/xine/plugins/1.0.0/xineplug*.so"