GARNAME = totem
GARVERSION = 1.5.92
CATEGORIES = desktop
DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2
PATCHFILES = $(shell if test "`ls $(shell echo $(PKG_CONFIG_PATH) | sed -e "s/:/ /g") 2>&1 /dev/null | grep mozilla-gtkmozembed.pc`" ; then echo mozilla-plugin-fix.diff ; fi )


LIBDEPS = bootstrap/iso-codes desktop/eel desktop/gst-plugins-good desktop/nautilus
LIBDEPS += $(shell if test ! "`ls $(shell echo $(PKG_CONFIG_PATH) | sed -e "s/:/ /g") 2>&1 /dev/null | grep mozilla-gtkmozembed.pc || ls $(shell echo $(PKG_CONFIG_PATH) | sed -e "s/:/ /g") 2>&1 /dev/null | grep firefox-gtkmozembed.pc`" ; then echo bootstrap/firefox ; fi )


DESCRIPTION = totem
define BLURB
 #FIXME: blurb goes here
endef

CONFIGURE_SCRIPTS = $(WORKSRC)/configure
BUILD_SCRIPTS = $(WORKSRC)/Makefile
INSTALL_SCRIPTS = $(WORKSRC)/Makefile

CONFIGURE_ENV =  MOZILLA_PLUGINDIR="$(libdir)/mozilla"
CONFIGURE_ARGS = $(DIRPATHS) --enable-gstreamer=yes --disable-lirc --disable-nvtv --disable-vanity

include ../category.mk

post-install:
	@if [ ! -e $(libdir)/pkgconfig/firefox-gtkmozembed.pc ] ; then \
	echo ""; \
	echo "Totem was built using the system version of firefox."; \
	echo "GARNOME will *not* install files into system directories."; \
	echo "The totem-mozilla plugins have been installed in $(libdir)/mozilla/plugins"; \
	fi
	@$(MAKECOOKIE)
