# -*- 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                xteddy
version             2.2
categories          x11
platforms           darwin
maintainers         nomaintainer
license             GPL-2

description         A cuddlesome teddy for the X desktop

long_description    This is _the_ toy for the X desktop, a must for all plush \
                    lovers: a very, very cuddlesome teddy.

homepage            http://www.itn.liu.se/~stegu/xteddy/
master_sites        ${homepage} freebsd

checksums           rmd160  8395ce8c9a1af208ec44bd9a773fda3b5d1c6df2 \
                    sha256  d8885a1e2e08787cb469857a9404619cadab9bddcae7fa398a565d53633291e2

depends_build       port:pkgconfig

depends_lib         port:imlib2 \
                    port:xorg-libXext \
                    port:zlib

patchfiles          patch-Makefile.in.diff \
                    patch-xteddy.6.diff \
                    patch-xteddy.c.diff \
                    patch-xteddy_test.diff \
                    patch-xtoys.diff

post-patch {
    reinplace "s|__PREFIX__|${prefix}|g" \
                    ${worksrcpath}/xteddy.6 \
                    ${worksrcpath}/xteddy.c \
                    ${worksrcpath}/xteddy_test \
                    ${worksrcpath}/xtoys
}

livecheck.type      regex
livecheck.regex     ${name}-(\[0-9.\]+)