All pastes #1401635 Raw Edit

Portfile.podofo

public text v1 · immutable
#1401635 ·published 2009-04-24 06:35 UTC
rendered paste body
# -*- 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$

PortSystem      1.0

name            podofo
version         0.7.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     b9623fd9279fca49f7cdd5c1fed182b1 \
                sha1    bd9862770c99f5790e6be53a57c77c5d4796d841 \
                rmd160  37721670a706da614b61ec9620fb1ef46aaff4ae

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  ${worksrcpath} \
		-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 

variant universal {
	configure.universal_args-delete  --disable-dependency-tracking
	configure.args-append  -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.universal_archs} "g| |;|"]\"
}

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