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
license                     GPL-2+
platforms                   darwin
homepage                    http://siag.nu/
master_sites                ${homepage}/pub/siag/
checksums                   md5     bb7bb66dc9d3659fd11cdbac61ea6e13
depends_lib                 port:neXtaw \
                            port:mowitz \
                            port: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 
}

livecheck.type              regex
livecheck.regex             {Siag ([0-9.]+) Released}
