# $Id: Portfile 30259 2007-10-23 02:31:56Z jmpp@macports.org $
PortSystem 1.0
name		siag
version		3.6.0
description	 Siag Office is a tightly integrated, free office package.
long_description   	Siag Office is a tightly integrated, free office package. \
			It consists of the spreadsheet Siag, the word processor PW, \
			the animation program Egon, the text editor XedPlus, the \
			file manager Xfiler and the previewer Gvu.
maintainers	nomaintainer
categories	x11
platforms	darwin 
homepage	http://siag.nu/
master_sites    ${homepage}/pub/siag/
checksums	md5 bb7bb66dc9d3659fd11cdbac61ea6e13
depends_lib	lib:libneXtaw:neXtaw lib:libMowitz:mowitz lib:libXawM.1:XawM
patchfiles	patch-oledecod.c patch-fileio_xls.c
configure.cppflags-append	"-L${prefix}/lib"

pre-configure {
	reinplace "s|malloc.h|stdlib.h|g" \
		${worksrcpath}/stocks/currency.c \
		${worksrcpath}/stocks/lists.c \
		${worksrcpath}/stocks/history.c \
		${worksrcpath}/stocks/stocks.c \
		${worksrcpath}/antiword/antiword.h 
}
