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

name                giblib
version             1.2.4
revision            2
categories          graphics devel
maintainers         nomaintainer
license             MIT

description         Utility library for lists, strings and imlib2.
long_description \
    giblib2 incorporates doubly linked lists, some string functions, \
    and a wrapper for imlib2. The wrapper does two things. It gives \
    you access to fontstyles, which can be loaded from files, saved \
    to files or defined dynamically through the API. It also, and \
    more importantly, wraps imlib2's context API.

homepage            https://web.archive.org/web/20090904063608/http://linuxbrit.co.uk/giblib
master_sites        http://linuxbrit.co.uk/downloads/

checksums           md5 c810ef5389baf24882a1caca2954385e

depends_build       port:pkgconfig

depends_lib         port:imlib2 port:freetype port:zlib

patchfiles          patch-automake-1.13.diff \
                    imlib2-config.patch

use_autoreconf yes
autoreconf.args -fvi

# install docs to ${prefix}/share/doc instead of ${prefix}/doc
destroot.args       docsdir=${prefix}/share/doc/${name}

livecheck.type      regex
livecheck.url       [lindex ${master_sites} 0]
livecheck.regex     ${name}-(\[0-9.\]+)${extract.suffix}
