# Recipe for version 0.8.6 by Michael Homer <michael@gobolinux.org>, on Thu Dec 24 14:26:27 NZDT 2009
# Recipe (MakeRecipe) for Gnash by Lucas C. Villa Real, on Tue May 15 21:20:17 BRT 2007
compile_version=1.10.1
url="http://ftpmirror.gnu.org/gnash/0.8.6/gnash-0.8.6.tar.gz"
file_size=4768225
file_md5=9f52914aef0deb09897f53b1b895dbe6
recipe_type=configure

configure_options=(
    --enable-renderer=agg    # Use the specified GUI toolkit (default=ogl,agg,cairo)
    --enable-gui=gtk         # Use the specified GUI toolkit (default=gtk,kde (experimental: dump, fb, fltk, sdl, qtopia, hildon, alp, riscos, aqua.))
    --enable-avm2           # Enable support for AS3
    --enable-python         # Enable python for the python wrapper
    --enable-jemalloc       # Enable jemalloc instead of system malloc
    --disable-testsuite     # Disable the testsuite, maintainers option only
    --enable-write          # Makes the Mozilla plugin write the currently playing SWF movie to /tmp.
    --enable-cygnal         # Disable support for the Cygnal server.
    --enable-cgibins        # Enable building of the CGIs for Cygnal
    --enable-media=ffmpeg   # Enable media handling support using the specified
                            # handler: gst, ffmpeg or none (no sound) [gst]
    --enable-lirc           # Disable support for Lirc
    --enable-glext           # Disable support for GTK OpenGL extension
    --disable-docbook        # Disable support for building documentation
    --disable-ghelp
    --enable-extensions=dbus,fileio,lirc,metome
    --disable-cassert
    --enable-shared
    --with-shm=sysv
    --with-npapi-plugindir=$target/lib/browser-plugins
)

pre_build() {
    [ ! -f .bootstrapped ] && { autogen.sh; touch .bootstrapped; } || true
}

pre_link() {
	make install-plugin  FIREFOX_PLUGINS="$target/lib/browser-plugins"
	make install-plugins FIREFOX_PLUGINS="$target/lib/browser-plugins"
}
