Merges.
[vuplus_openembedded] / libxine / libxine_1.0.0-beta12.oe
1 DESCRIPTION = "libxine"
2 SECTION = "libs"
3 PRIORITY = "optional"
4 MAINTAINER = "Pawel Osiczko <p.osiczko@tetrapyloctomy.org>"
5 DEPENDS = "virtual/libc zlib libogg tremor libmad"
6
7 inherit autotools
8
9 S = "${WORKDIR}/xine-lib"
10
11 SRC_URI = "cvs://anonymous@cvs.xine.sf.net/cvsroot/xine;module=xine-lib;tag=xine-1-beta12-release \
12            file://full.patch;patch=1 \
13            file://libvorbis.patch;patch=0 \
14            file://demux_ogg.patch;patch=0 \
15            file://configure.ac.patch;patch=0 \
16            file://vo_scale.patch;patch=0"
17
18 SOV = "1.0.6"
19
20 do_configure() {
21         ./autogen.sh --host ${TARGET_SYS} --build ${BUILD_SYS} \
22               --enable-shared --disable-static --prefix=${prefix} \
23               --with-zlib-path=${STAGING_DIR}/${HOST_SYS} --with-vorbis-prefix=${STAGING_DIR}/${HOST_SYS} \
24               --disable-oggtest --with-ogg-prefix=${STAGING_DIR}/${HOST_SYS} --without-x \
25         --disable-iconv --disable-nls --without-arts --without-sdl \
26         --disable-aalib
27 }
28
29 do_compile() {
30         oe_runmake LIBTOOL=${STAGING_BINDIR}/arm-linux-libtool
31 }
32
33 # ug - we don't do elegant/purdy today
34 do_install() {
35         oe_runmake -e LIBTOOL=${STAGING_BINDIR}/arm-linux-libtool \
36           -C src install-data \
37           'prefix=${D}' 'exec_prefix=${D}' 'libdir=${D}/${libdir}' \
38           'includedir=${D}/${includedir}'
39         oe_runmake -e LIBTOOL=${STAGING_BINDIR}/arm-linux-libtool \
40           -C include install-data \
41           'prefix=${D}' 'exec_prefix=${D}' 'libdir=${D}/${libdir}' \
42           'includedir=${D}/${includedir}'
43         for plugin in `find ${S}/src -type f -name xineplug*.la`; do 
44           dir=`dirname $plugin`
45           libname=`basename $plugin|sed -e's,\.la,,'` 
46           oe_libinstall -so -C $dir $libname ${D}/${libdir}/xine/plugins/1.0.0
47         done
48         oe_libinstall -so -C src/xine-engine libxine ${D}/${libdir}
49 }
50
51 do_stage() {
52         oe_runmake -e LIBTOOL=${STAGING_BINDIR}/arm-linux-libtool \
53           -C src install-data \
54           'prefix=${STAGING_DIR}' 'exec_prefix=${STAGING_DIR}' \
55           'libdir=${STAGING_LIBDIR}' \
56           'includedir=${STAGING_INCDIR}'
57         oe_runmake -e LIBTOOL=${STAGING_BINDIR}/arm-linux-libtool \
58           -C include install-data \
59           'prefix=${STAGING_DIR}' 'exec_prefix=${STAGING_DIR}' \
60           'libdir=${STAGING_LIBDIR}' \
61           'includedir=${STAGING_INCDIR}'
62         for plugin in `find ${S}/src -type f -name xineplug*.la`; do 
63           dir=`dirname $plugin`
64           libname=`basename $plugin|sed -e's,\.la,,'` 
65           oe_libinstall -so -C $dir $libname ${STAGING_LIBDIR}/xine/plugins/1.0.0
66         done
67         oe_libinstall -so -C src/xine-engine libxine ${STAGING_LIBDIR}
68 }