# Recipe for version 0.8.4 by Lucas C. Villa Real <lucasvr@gobolinux.org>, on Wed Oct 15 23:48:21 BRT 2008
# 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://ftp.gnu.org/pub/gnu/gnash/0.8.4/gnash-0.8.4.tar.bz2"
file_size=2887666
file_md5=b47a7ed4b7c66b8c2ebacc2286ef0d4b
recipe_type=configure

configure_options=(
	--enable-write           # Makes the Mozilla plugin write the currently playing SWF movie to /tmp.
	--disable-gstreamer      # Disable gstreamer support
	--disable-cygnal         # Disable support for the Cygnal server.
	--enable-nsapi           # Enable the compilation of Firefox plugin.
	--enable-sdk-install     # Enable installing the libraries and headers as an SDK.
	--enable-gui=gtk         # Use the specified GUI toolkit (default=gtk,kde)
	--enable-renderer=agg    # Use the specified GUI toolkit (default=ogl,agg)
	--enable-mad      	     # Enable support for mad library
	--enable-z               # Enable support for zlib compression library.
	--enable-jpeg            # Enable support for jpeg images.
	--enable-png             # Enable support for png images.
	--enable-glext           # Disable support for GTK OpenGL extension
	--enable-Xft             # Enable support for xft library.
	--enable-expat           # Enable support for Expat library.
	--enable-cairo           # Enable support for cairo render library.
	--enable-atk             # Enable support for atk library.
	--disable-docbook        # Disable support for building documentation
	--enable-media=ffmpeg    # none, ffmpeg or gst
	--enable-shared
	--with-shm=sysv
	--with-npapi-plugindir=$target/lib/mozilla/plugins
	--with-ffmpeg-incl=$goboHeaders
	--with-ffmpeg-lib=$goboLibraries
#	--with-kde-pluginprefix=$target
#	--with-qt-incl=$qt_path/include
#	--with-qt-lib=$qt_path/lib
#	--with-kde-lib=$kde_libs_path/include
)

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"
}
