# -*- 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            libgnomeprintui
version         2.18.6
revision        5
set branch      [join [lrange [split ${version} .] 0 1] .]
maintainers     nomaintainer
license         LGPL
categories      gnome
platforms       darwin
description     This is an implementation of the Gnome Printing Architecture

long_description \
    ${description}

homepage        https://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2       yes

checksums       md5     cbfab252ec7e9dc25bb1fe1610c3270b \
                sha1    07030a1726ccb927158591087fb0e96f40d95cfa \
                rmd160  772ebeb7e59906734014eb8f2f2fedba91c8f1a9

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

depends_lib     path:lib/pkgconfig/gtk+-2.0.pc:gtk2 \
                port:libgnomeprint \
                port:libgnomecanvas

patchfiles      patch-remove-check-for-gnome-icon-theme.diff

# reconfigure using upstream autogen.sh for intltool 0.51 compatibility

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

configure.cmd   ./autogen.sh

configure.args  --disable-gtk-doc \
                --enable-compile-warnings=minimum

livecheck.type  gnome
