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

PortSystem          1.0

name                libgnomeprint
version             2.18.8
set branch [join [lrange [split ${version} .] 0 1] .]
revision            3
categories          gnome
platforms           darwin
license             LGPL-2.1+
maintainers         nomaintainer

description         This is an implementation of the Gnome Printing Architecture
long_description    ${description}
homepage            http://www.levien.com/gnome/print-arch.html

depends_build       port:bison \
                    port:flex \
                    port:gnome-common \
                    port:gtk-doc \
                    port:intltool \
                    port:pkgconfig \
                    port:autoconf \
                    port:automake \
                    port:libtool

depends_lib         port:libart_lgpl \
                    port:libgnomecups \
                    port:libxml2 \
                    path:lib/pkgconfig/pango.pc:pango


master_sites        gnome:sources/${name}/${branch}/
use_bzip2           yes
checksums           md5     63b05ffb5386e131487c6af30f4c56ac \
                    sha1    cfb77148923b24b1651982a21b3cb55e312ff6d5 \
                    rmd160  4f786ad61dc27177c350a5baa27cfc8b1140c32e

# missing-stdio: https://bugzilla.gnome.org/show_bug.cgi?id=653388
# patch-freetype-2.5.1: https://bugzilla.gnome.org/show_bug.cgi?id=719592
patchfiles          missing-stdio.patch \
                    patch-freetype-2.5.1.diff \
                    bison3.patch

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility

post-patch {
    xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath}
}

configure.cmd       ./autogen.sh

# gtk-doc build not compatible with gtk-doc @1.26
configure.args      --disable-gtk-doc
livecheck.type      gnome
