# $Id: Portfile 56792 2009-09-02 09:10:14Z ryandesign@macports.org $

PortSystem                  1.0

name                        odt2txt
version                     0.4
categories                  textproc
platforms                   darwin
maintainers                 ryandesign
homepage                    http://stosberg.net/odt2txt/
master_sites                ${homepage}

description                 converts OpenOffice.org ODF text documents (.odt \
                            files) to plain text files (.txt files)

long_description            ${name} ${description}

checksums                   md5     6fe3bd261ce2dde2810244bbe969bbc5 \
                            sha1    331eef1c64cec809a5c7b7cfb972279cc4f9c914 \
                            rmd160  bb6ef1a58a6b18f40855be4124e32b1d514e8bca

depends_lib                 port:libiconv \
                            port:zlib

use_configure               no

configure.ldflags-append    -liconv

build.args                  CC=${configure.cc} \
                            CFLAGS="${configure.cflags}" \
                            CPPFLAGS="${configure.cppflags}" \
                            LDFLAGS="${configure.ldflags}"

destroot.args               PREFIX=${prefix}
