Portfile

# $Id: Portfile 21505 2007-01-26 02:56:56Z eridius@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@macports.org
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.env CPPFLAGS="-L${prefix}/lib -I${prefix}/include" \
LDFLAGS="-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
}

files