# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem                  1.0
PortGroup                   github 1.0

github.setup                dstosberg odt2txt 0.5 v
# Change github.tarball_from to 'releases' or 'archive' next update
github.tarball_from         tarball
categories                  textproc
maintainers                 ryandesign openmaintainer
license                     GPL-2

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

long_description            ${name} {*}${description}

checksums                   rmd160  3d6fe00959df15c696cfe0cda429c42255af0b54 \
                            sha256  d3508b8819fb682f6a1a59e4d358858f0219a36ee5cf87bdb649448d6d318a24

depends_lib                 port:libiconv \
                            port:zlib

patchfiles                  patch-Makefile.diff

use_configure               no

variant universal {}

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

destroot.args               PREFIX=${prefix}
