Merge branch 'org.openembedded.dev' of git@git.openembedded.net:/openembedded into...
[vuplus_openembedded] / packages / gnash / gnash-minimal.inc
1 DESCRIPTION = "Gnash is a GNU Flash movie player that supports many SWF v7 features"
2 HOMEPAGE = "http://www.gnu.org/software/gnash"
3 LICENSE = "GPL-2"
4
5 DEPENDS = "virtual/libiconv virtual/libintl ffmpeg libtool agg libxml2 zlib boost jpeg pango curl freetype \
6            ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad', d)}"
7 RRECOMMENDS_${PN} = "libltdl"
8
9 SRC_URI = "ftp://ftp.gnu.org/pub/gnu/gnash/${PV}/gnash-${PV}.tar.bz2"
10 S = ${WORKDIR}/gnash-${PV}
11
12 inherit autotools pkgconfig
13
14 # gnash-minimal is intended for running directly on a framebuffer device
15 # for memory constrained devices, but does not accept all SWF files.
16 # As such, it is useful as a GUI frontend for dedicated SWF files.
17
18 # JPEG support and libz cannot be disabled due to a bug in 0.8.2.
19 # maintainer-mode is enabled to disable the testsuite.
20
21 EXTRA_OECONF="--enable-gui=gtk \
22                 --enable-renderer=agg \
23                 --enable-agg \
24                 --enable-gui=fb \
25                 --enable-z \
26                 --enable-jpeg \
27                 --disable-klash \
28                 --disable-glext \
29                 --disable-Xft \
30                 --disable-expat \
31                 --enable-mad \
32                 --disable-gstreamer \
33                 --enable-media=ffmpeg \
34                 --disable-plugin \
35                 --disable-cygnal \
36                 --disable-testsuite \
37                 --enable-maintainer-mode \
38                 --enable-fps-debug \
39                 --enable-allstatic \
40                 --enable-static \
41                 --with-top-level=${STAGING_DIR_HOST}/usr \
42                 --disable-ltdl-install \
43                 --without-included-ltdl \
44 #  --with-ltdl-include=${STAGING_INCDIR} \
45 #  --with-ltdl-lib=${STAGING_LIBDIR} \
46 "
47
48 # the test for error_t is wrong for uclibc, needs _GNU_SOURCE for correct
49 # detection because uclibc does not have argz.h which enables error_t 
50 CFLAGS += " -D_GNU_SOURCE  -I${S}/libltdl  -I${STAGING_INCDIR}/libltdl $(pkgconfig --cflags gstreamer)"
51
52 PACKAGES =+ "libgnashnet libgnashamf libgnashbase libgnashserver libgnashmedia"
53
54 FILES_${PN} += "${datadir}/gnash/*png ${datadir}/gnash/*ico"
55 FILES_${PN}-dbg += "${libdir}/gnash/.debug"
56 FILES_${PN}-dev += "${libdir}/gnash/*a"
57 FILES_libgnashamf = "${libdir}/gnash/libgnashamf-*.so"
58 FILES_libgnashbase = "${libdir}/gnash/libgnashbase-*.so"
59 FILES_libgnashmedia = "${libdir}/gnash/libgnashmedia-*.so"
60 FILES_libgnashserver = "${libdir}/gnash/libgnashserver-*.so"
61 FILES_libgnashnet = "${libdir}/gnash/libgnashnet.so.*"