# -*- 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
# $Id$

PortSystem          1.0

name                argp-standalone
version             1.3
revision            1
categories          devel
license             LGPL
platforms           darwin freebsd
maintainers         nomaintainer
description         Standalone version of arguments parsing functions from GLIBC
long_description    It is standalone version of argp - part of glibc library. \
                    \
                    It was separated off glibc by Niels Myller. Niels primary use \
                    it for inclusion in the LSH distribution, but it's useful for \
                    any package that wants to use argp and at the same time be \
                    portable to non-glibc systems. \
                    \
                    Besides portability fixes, there are a few other changes in \
                    this version. The most important is that it no longer builds \
                    upon getopt\; the one or two hairy functions of GNU getopt are \
                    incorporated with the argp parser. There are no longer any global \
                    variables keeping track of the parser state.

homepage            http://www.freshports.org/devel/argp-standalone/
master_sites        http://www.lysator.liu.se/~nisse/misc/
checksums           sha1 815c560680ebdc11694b88de2f8ec15133e0bfa0

patchfiles          patch-argp-fmtstream.h
configure.cflags-append -std=c89

post-destroot {
    xinstall ${worksrcpath}/libargp.a ${destroot}${prefix}/lib
    xinstall ${worksrcpath}/argp.h ${destroot}${prefix}/include
}