# -*- 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 50118 2009-04-26 01:32:14Z devans@macports.org $

PortSystem      1.0

name            podofo
version         0.7.0
revision        1
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     b9623fd9279fca49f7cdd5c1fed182b1 \
                sha1    bd9862770c99f5790e6be53a57c77c5d4796d841 \
                rmd160  37721670a706da614b61ec9620fb1ef46aaff4ae

patchfiles      patch-src-CMakeLists.txt.diff

depends_build   port:cmake

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

configure.cmd   cmake
configure.args  -G \"Unix Makefiles\" \
                -DWANT_FONTCONFIG:BOOL=TRUE \
                -DPODOFO_BUILD_SHARED:BOOL=TRUE \
                -DPODOFO_BUILD_STATIC:BOOL=TRUE \
                -DCMAKE_INSTALL_PREFIX=${prefix}  \
                -DCMAKE_INCLUDE_PATH=${prefix}/include/ \
                -DCMAKE_LIBRARY_PATH=${prefix}/lib \
                -DCMAKE_VERBOSE_MAKEFILE=ON \
                -Wno-dev \
                ${worksrcpath}

universal_variant no

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