1 DESCRIPTION = "Gnash is a GNU Flash movie player that supports many SWF v7 features"
2 HOMEPAGE = "http://www.gnu.org/software/gnash"
5 DEPENDS = "virtual/libiconv virtual/libintl libtool agg libxml2 zlib boost jpeg pango curl freetype \
6 ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'ffmpeg libmad', d)}"
7 RRECOMMENDS_${PN} = "libltdl"
9 SRC_URI = "ftp://ftp.gnu.org/pub/gnu/gnash/${PV}/gnash-${PV}.tar.bz2"
10 S = ${WORKDIR}/gnash-${PV}
12 inherit autotools pkgconfig
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.
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.
21 EXTRA_OECONF="--enable-gui=gtk \
22 --enable-renderer=agg \
31 ${@base_conditional('ENTERPRISE_DISTRO', '1', '', '--enable-mad', d)} \
33 ${@base_conditional('ENTERPRISE_DISTRO', '1', '', '--enable-media=ffmpeg', d)} \
34 --enable-media=ffmpeg \
38 --enable-maintainer-mode \
42 --with-top-level=${STAGING_DIR_HOST}/usr \
43 --disable-ltdl-install \
44 --without-included-ltdl \
45 # --with-ltdl-include=${STAGING_INCDIR} \
46 # --with-ltdl-lib=${STAGING_LIBDIR} \
49 # the test for error_t is wrong for uclibc, needs _GNU_SOURCE for correct
50 # detection because uclibc does not have argz.h which enables error_t
51 CFLAGS += " -D_GNU_SOURCE -I${S}/libltdl -I${STAGING_INCDIR}/libltdl $(pkgconfig --cflags gstreamer)"
53 PACKAGES =+ "libgnashnet libgnashamf libgnashbase libgnashserver libgnashmedia"
55 FILES_${PN} += "${datadir}/gnash/*png ${datadir}/gnash/*ico"
56 FILES_${PN}-dbg += "${libdir}/gnash/.debug"
57 FILES_${PN}-dev += "${libdir}/gnash/*a"
58 FILES_libgnashamf = "${libdir}/gnash/libgnashamf-*.so"
59 FILES_libgnashbase = "${libdir}/gnash/libgnashbase-*.so"
60 FILES_libgnashmedia = "${libdir}/gnash/libgnashmedia-*.so"
61 FILES_libgnashserver = "${libdir}/gnash/libgnashserver-*.so"
62 FILES_libgnashnet = "${libdir}/gnash/libgnashnet.so.*"