GARNAME = gaim
GARVERSION = 2.0.0beta6
CATEGORIES = fifth-toe
DISTFILES = $(GARNAME)-$(GARVERSION).tar.bz2
PATCHFILES = gaim-2.0.0beta5-debian-02_gnthistory-in-gtk.patch \
  gaim-2.0.0beta5-debian-03_gconf-gstreamer.patch \
  gaim-2.0.0beta5-debian-11_reread-resolvconf.patch \
  gaim-2.0.0beta5-debian-13_yahoo_webauth_disable.patch

MASTER_SITES = http://download.sourceforge.net/gaim/

LIBDEPS = platform/gtk+ desktop/evolution-data-server

DESCRIPTION = gaim
define BLURB
Gaim is an IM client that supports many protocols, including AIM, ICQ,
MSN, IRC, and Jabber. Gaim is NOT endorsed by, nor affiliated with,
AOL nor any other company in ANY way.
endef

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

CONFIGURE_ARGS = $(DIRPATHS) --disable-tcl --disable-tk --disable-gtkspell \
		 --with-howl-includes=$(prefix)/include/avahi-compat-howl \
		 --with-dbus-services=$(datadir)/dbus-1/services

include ../category.mk

# hack: debug breaks gaim-2.0.0beta5
CONFIGURE_ARGS := $(shell echo $(CONFIGURE_ARGS) | sed 's,--enable-debug,--disable-debug,')
CONFIGURE_ARGS := $(shell echo $(CONFIGURE_ARGS) | sed 's,--enable-tests,--disable-tests,')
CFLAGS := $(shell echo $(CFLAGS) | sed 's,-g ,,')
CXXFLAGS := $(shell echo $(CXXFLAGS) | sed 's,-g ,,')

