Ticket #41118: Portfile

File Portfile, 2.1 KB (added by christian@…, 11 years ago)
Line 
1# -*- 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
2# $Id: Portfile 110613 2013-09-02 23:23:33Z jeremyhu@macports.org $
3
4PortSystem      1.0
5PortGroup       cmake 1.0
6PortGroup       conflicts_build 1.0
7
8name            podofo
9version         0.9.2
10revision        2
11license         GPL-2 LGPL-2
12categories      graphics
13maintainers     devans openmaintainer
14platforms       darwin
15homepage        http://podofo.sourceforge.net/
16master_sites    sourceforge
17
18description \
19    PoDoFo is a library to work with the PDF file format.
20
21long_description \
22    PoDoFo is a library to work with the PDF file format. The PoDoFo library \
23    is a free, portable C++ library which includes classes to parse PDF files and \
24    modify their contents into memory. The changes can be written back to disk easily. \
25    The parser can also be used to extract information from a PDF file.
26
27checksums       sha256  465191618c57da9ae9230e7919e1985a242ddc7d1045cfdb6fb066140ed0a3f3 \
28                rmd160  69bf1035f2466ba95208830038c6f8e303580a5b
29
30depends_build   port:cmake
31
32depends_lib     port:zlib \
33                port:freetype \
34                port:fontconfig \
35                port:libidn \
36                port:openssl \
37                port:libpng \
38                port:jpeg \
39                port:tiff \
40                port:cppunit \
41                port:lua
42
43conflicts_build ${name}
44
45patchfiles      patch-src-base-PdfEncrypt.cpp.diff \
46                patch-cmake-modules-FindFREETYPE.cmake.diff \
47                patch-lua-tools.diff \
48                ios_include.diff
49
50use_parallel_build no
51
52configure.cmd   cmake
53
54configure.args-append  -G \"Unix Makefiles\" \
55                -DWANT_FONTCONFIG:BOOL=TRUE \
56                -DPODOFO_BUILD_SHARED:BOOL=TRUE \
57                -DPODOFO_BUILD_STATIC:BOOL=TRUE \
58                -DCMAKE_INCLUDE_PATH=${prefix}/include \
59                -DCMAKE_LIBRARY_PATH=${prefix}/lib
60
61livecheck.type  regex
62livecheck.url   http://podofo.sourceforge.net/download.html
63livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"