# Recipe (MakeRecipe) for Gnash by Lucas C. Villa Real, on Tue May 15 21:20:17 BRT 2007
# Recipe for version cvs by Lucas C. Villa Real, on Tue May 15 21:20:17 BRT 2007
compile_version=1.8.2
cvs=:pserver:anonymous:@cvs.sv.gnu.org:/sources/gnash
cvs_module=gnash
recipe_type=configure
autogen_before_configure=yes

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