# $Id: Portfile 57375 2009-09-10 08:16:41Z ryandesign@macports.org $

PortSystem 1.0

name		gpdf
version		2.10.0
set branch  [join [lrange [split ${version} .] 0 1] .]
description	gpdf is a viewer for Portable Document Format (PDF) files.
long_description   	gpdf is a viewer for Portable Document Format (PDF) files.
maintainers	nomaintainer
categories	gnome print
platforms	darwin
homepage	http://www.gnome.org/
master_sites    gnome:sources/${name}/${branch}/
use_bzip2	yes
checksums	md5 9278cd3b9d06e3b1d364452f0e512fa9
depends_lib	bin:gs:ghostscript lib:libgail-gnome:libgail-gnome \
		lib:libgnomeprintui-2:libgnomeprintui
patchfiles	patch-gpdf-thumbnails-view.cc
configure.cppflags-append "-no-cpp-precomp -L${prefix}/lib"
configure.cflags-append "-no-cpp-precomp -flat_namespace -undefined suppress"
configure.ldflags-append "-lexpat -lfontconfig -lXft -lXrender -lfreetype -L/usr/X11R6/lib -lX11 -lXinerama -lXext -lXrandr"

livecheck.type  regex
livecheck.url   http://ftp.gnome.org/pub/gnome/sources/${name}/${branch}/
livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
