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