# -*- 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
# $Id: Portfile 67591 2010-05-13 18:34:24Z ricci@macports.org $

PortSystem      1.0
PortGroup       cmake 1.0

name            podofo
version         0.8.0
revision        0
categories      graphics
maintainers     devans openmaintainer
platforms       darwin
homepage        http://podofo.sourceforge.net/
master_sites    sourceforge

description \
    PoDoFo is a library to work with the PDF file format.

long_description \
    PoDoFo is a library to work with the PDF file format. The PoDoFo library \
    is a free, portable C++ library which includes classes to parse PDF files and \
    modify their contents into memory. The changes can be written back to disk easily. \
    The parser can also be used to extract information from a PDF file.

checksums           md5     b73b4f2f3525a2dcd632f5e0054cab63 \
                    sha1    67004f477040c19f8b08e8de5bd3d46eb20fa24a \
                    rmd160  76a750ee530232feca5ece2c933cab486b9ab7a5

## patchfiles      patch-src-CMakeLists.txt.diff

depends_build   port:cmake

depends_lib     port:fontconfig \
                port:freetype \
                port:jpeg \
                port:libpng \
                port:tiff \
                port:zlib \
                port:cppunit \
                port:openssl \
                port:lua

configure.cmd   cmake
configure.args-append  -G \"Unix Makefiles\" \
                -DWANT_FONTCONFIG:BOOL=TRUE \
                -DPODOFO_BUILD_SHARED:BOOL=TRUE \
                -DPODOFO_BUILD_STATIC:BOOL=TRUE \
                -DCMAKE_INCLUDE_PATH=${prefix}/include/ \
                -DCMAKE_LIBRARY_PATH=${prefix}/lib

##                ${worksrcpath}

universal_variant no

livecheck.type  regex
livecheck.url   http://podofo.sourceforge.net/download.html
livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
