GARNAME = abiword
GARVERSION = 2.6.3
CATEGORIES = office
DISTFILES = $(GARNAME)-$(GARVERSION).tar.gz
PATCHFILES = abiword-11483-without-legacy.diff

MASTER_SITES = http://www.abisource.com/downloads/abiword/$(GARVERSION)/source/

LIBDEPS = office/enchant office/fribidi office/wv desktop/nautilus desktop/gucharmap

DESCRIPTION = abiword
define BLURB
AbiWord is a free word processing program similar to Microsoft® Word. 
It is suitable for a wide variety of word processing tasks.
endef

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

CONFIGURE_ARGS = $(DIRPATHS) --enable-gnome --with-libxml2
BUILD_ARGS = -j1

include ../category.mk
post-configure:
	@if [ "$(BUILD_CLEAN)" = "true" ] ; then \
	rm -rf $(prefix)/src/abiword; \
	cp -rp $(WORKSRC) $(prefix)/src/abiword; \
	else \
	ln -sf $(CURDIR)/$(WORKSRC) $(prefix)/src/abiword; \
	fi
	@$(MAKECOOKIE)

post-clean:
	@rm -rf $(prefix)/src/abiword

