~ubuntu-branches/ubuntu/quantal/gnash/quantal-proposed

1.1.11 by Sindhudweep Narayan Sarkar
Import upstream version 0.8.5
1
PR = "r0"
2
DESCRIPTION = "Gnash is a GNU Flash movie player that supports many SWF v7 features"
3
4
LICENSE = "GPL-3"
5
HOMEPAGE = "http://www.gnu.org/software/gnash"
6
7
DEPENDS = "gtk+ cairo libxml2 libmad libsdl-mixer zlib boost jpeg pango curl agg"
8
9
#SRC_URI = "ftp://ftp.gnu.org/pub/gnu/gnash/${PV}/gnash-${PV}.tar.bz2"
10
#SRC_URI = "cvs://anonymous@puppy.cvs.sourceforge.net/cvsroot/puppy;method=pserver;module=ftpd-topfield;tag=FTPD_TOPFIELD_0_7_4
11
SRC_URI = "cvs://anonymous@cvs.savannah.gnu.org/sources/gnash;method=pserver;module=gnash"
12
S = "${WORKDIR}/gnash"
13
14
EXTRA_OECONF = "--enable-gui=gtk \
15
                --enable-renderer=agg \
16
		--enable-media=gst \
17
                --disable-klash \
18
		--enable-z \
19
		--enable-jpeg \
20
		--disable-glext \
21
		--enable-Xft \
22
		--enable-expat \
23
		--enable-mad \
24
		--enable-cairo \
25
		--disable-plugin \
26
		--disable-cygnal \
27
		--disable-ltdl-install \
28
		--with-boost-incl=${STAGING_INCDIR} \
29
		--with-boost-lib=${STAGING_LIBDIR} \
30
		--with-libxml-incl=${STAGING_INCDIR}/libxml2 \
31
		--with-libxml-lib=${STAGING_LIBDIR} \
32
		--with-glib-incl=${STAGING_INCDIR}/glib-2.0 \
33
#		--with-glib-lib=${STAGING_LIBDIR} \
34
		--with-gtk2-incl=${STAGING_INCDIR}/gtk-2.0 \
35
		--with-pango-incl=${STAGING_INCDIR}/pango-1.0 \
36
#		--with-pango-lib=${STAGING_LIBDIR} \
37
		--with-sdl-incl=${STAGING_INCDIR}/SDL \
38
		--with-atk-incl=${STAGING_INCDIR}/atk-1.0 \
39
		--with-Xft-incl=${STAGING_INCDIR}/X11 \
40
		--with-expat-incl=${STAGING_INCDIR} \
41
		--with-mad-incl=${STAGING_INCDIR} \
42
		--with-cairo-incl=${STAGING_INCDIR}/cairo \
43
		--with-curl-incl=${STAGING_INCDIR} \
44
		--with-curl-lib=${STAGING_LIBDIR} \
45
		" 
46
47
inherit autotools pkgconfig
48
49
LDFLAGS += " -L${STAGING_LIBDIR} -lcurl  -lboost_date_time -lboost_filesystem -lboost_iostreams -lboost_signals -lboost_thread-mt "
50
CFLAGS += " -I${STAGING_INCDIR} -I${STAGING_LIBDIR}/gtk-2.0/include/ "
51
CXXFLAGS += " -I${STAGING_INCDIR} -I${STAGING_LIBDIR}/gtk-2.0/include/ -I${STAGING_INCDIR}/cairo/ "
52
53
do_configure_prepend() {
54
	pwd
55
	cd ${S}
56
	./autogen.sh
57
}
58
59
60
do_configure_append() {
61
        for i in `find . -name Makefile` ; do
62
		sed -i s:I/usr/include:I${STAGING_INCDIR}:g $i
63
	done
64
}
65
66
67
PARALLEL_MAKE = ""
68
69
do_compile() {
70
        oe_runmake 'CC=${CC}' 'LD=${LD}' 'CFLAGS=${CFLAGS}' \
71
                   'ZLIB_INCLUDE=${STAGING_INCDIR}' \
72
                   'ZLIB_LIBS=${STAGING_LIBDIR}' \
73
		   'PNG_INCLUDE=${STAGING_INCDIR}' \	
74
		   'PNG_LIBS=${STAGING_LIBDIR}'
75
}
76
77
78
PACKAGES =+ " libgnashamf libgnashbackend libgnashbase libgnashgeo libgnashgui libgnashserver "
79
80
FILES_libgnashamf = "${libdir}/libgnashamf-${PV}.so"
81
FILES_libgnashbackend = "${libdir}/libgnashbackend-${PV}.so"
82
FILES_libgnashbase = "${libdir}/libgnashbase-${PV}.so"
83
FILES_libgnashgeo = "${libdir}/libgnashgeo-${PV}.so"
84
FILES_libgnashgui = "${libdir}/libgnashgui-${PV}.so"
85
FILES_libgnashserver = "${libdir}/libgnashserver-${PV}.so"
86
87
do_stage() {
88
        autotools_stage_all
89
}
90