Ticket #19418: Portfile.podofo

File Portfile.podofo, 2.0 KB (added by pierremarc@…, 15 years ago)

A Portfile for universal build of podofo

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$
3
4PortSystem      1.0
5
6name            podofo
7version         0.7.0
8categories      graphics
9maintainers     devans openmaintainer
10platforms       darwin
11homepage        http://podofo.sourceforge.net/
12master_sites    sourceforge
13
14description \
15    PoDoFo is a library to work with the PDF file format.
16
17long_description \
18    PoDoFo is a library to work with the PDF file format. The PoDoFo library \
19    is a free, portable C++ library which includes classes to parse PDF files and \
20    modify their contents into memory. The changes can be written back to disk easily. \
21    The parser can also be used to extract information from a PDF file.
22
23checksums       md5     b9623fd9279fca49f7cdd5c1fed182b1 \
24                sha1    bd9862770c99f5790e6be53a57c77c5d4796d841 \
25                rmd160  37721670a706da614b61ec9620fb1ef46aaff4ae
26
27depends_build   port:cmake
28
29depends_lib     port:fontconfig \
30                port:freetype \
31                port:jpeg \
32                port:tiff \
33                port:zlib \
34                port:cppunit \
35                port:openssl \
36                port:lua
37
38configure.cmd   cmake
39configure.args  ${worksrcpath} \
40                -G \"Unix Makefiles\" \
41                -DWANT_FONTCONFIG:BOOL=TRUE \
42                -DPODOFO_BUILD_SHARED:BOOL=TRUE \
43                -DPODOFO_BUILD_STATIC:BOOL=TRUE \
44                -DCMAKE_INSTALL_PREFIX=${prefix}  \
45                -DCMAKE_INCLUDE_PATH=${prefix}/include/ \
46                -DCMAKE_LIBRARY_PATH=${prefix}/lib \
47                -DCMAKE_VERBOSE_MAKEFILE=ON \
48                -Wno-dev
49
50variant universal {
51        configure.universal_args-delete  --disable-dependency-tracking
52        configure.args-append  -DCMAKE_OSX_ARCHITECTURES=\"[strsed ${configure.universal_archs} "g| |;|"]\"
53}
54
55livecheck.check regex
56livecheck.url   http://podofo.sourceforge.net/download.html
57livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"