libxine: use proper libtool
[vuplus_openembedded] / libxine / libxine_1.0.0-beta12.oe
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."
7 SECTION = "libs"
8 PRIORITY = "optional"
9 DEPENDS = "zlib libogg tremor libmad"
10 RRECOMMENDS = "libxine-plugins"
11 PR = "r3"
12
13 inherit autotools pkgconfig binconfig
14
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"
27
28 SOV = "1.0.6"
29
30 do_configure() {
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 \
36         --disable-aalib
37 }
38
39 do_compile() {
40         oe_runmake LIBTOOL=${STAGING_BINDIR}/${TARGET-PREFIX}libtool OGG_LIBS=$(STAGING_LIBDIR)/libogg.so
41 }
42
43 do_stage() {
44         oe_runmake -e LIBTOOL=${STAGING_BINDIR}/${TARGET-PREFIX}libtool \
45           -C src install-data \
46           'prefix=${STAGING_DIR}' 'exec_prefix=${STAGING_DIR}' \
47           'libdir=${STAGING_LIBDIR}' \
48           'includedir=${STAGING_INCDIR}'
49
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}'
55
56         for plugin in `find ${S}/src -type f -name xineplug*.la`; do 
57           dir=`dirname $plugin`
58           libname=`basename $plugin|sed -e's,\.la,,'` 
59           oe_libinstall -so -C $dir $libname ${STAGING_LIBDIR}/xine/plugins/1.0.0
60         done
61
62         oe_libinstall -so -C src/xine-engine libxine ${STAGING_LIBDIR}
63 }
64
65 do_install() {
66         oe_runmake -e LIBTOOL=${STAGING_BINDIR}/${TARGET-PREFIX}libtool \
67           -C src install-data \
68           'prefix=${D}' 'exec_prefix=${D}' 'libdir=${D}/${libdir}' \
69           'includedir=${D}/${includedir}' 
70
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}'
75
76         for plugin in `find ${S}/src -type f -name xineplug*.la`; do
77           dir=`dirname $plugin`
78           libname=`basename $plugin|sed -e's,\.la,,'`
79           oe_libinstall -so -C $dir $libname ${D}/${libdir}/xine/plugins/1.0.0
80         done
81
82         oe_libinstall -so -C src/xine-engine libxine ${D}/${libdir}
83 }
84
85 #
86 # FIXME: Split plugins into codex, demux, and visualization plugins
87 #        or even better, each plugin into one package, since some are HUGE.
88 #
89
90 PACKAGES += "libxine-plugins"
91 FILES_libxine-plugins = "${libdir}/xine/plugins/1.0.0/xineplug*.so"