source: trunk/dports/graphics/podofo/Portfile

Last change on this file was 153780, checked in by devans@…, 14 months ago

podofo: patch to fix type mismatch on 32 bit builds (#52564).

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
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 153780 2016-10-11 05:41:59Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6
7cmake.out_of_source yes
8
9name                podofo
10version             0.9.4
11license             GPL-2 LGPL-2
12categories          graphics
13maintainers         devans openmaintainer
14platforms           darwin
15homepage            http://podofo.sourceforge.net/
16master_sites        sourceforge
17
18description         PoDoFo is a library to work with the PDF file format.
19
20long_description    PoDoFo is a library to work with the PDF file format. The PoDoFo library \
21                    is a free, portable C++ library which includes classes to parse PDF files and \
22                    modify their contents into memory. The changes can be written back to disk easily. \
23                    The parser can also be used to extract information from a PDF file.
24
25checksums           sha256  ccdf505fcb4904617e728b15729da8700ff38442c1dd2f24fbd52934287ff859 \
26                    rmd160  431496b2e4f5d14d05d56f0a5c9bf328fbab1b7a
27
28# cppunit required as a build dependency to enable build of podofo command line tools
29
30depends_build-append \
31                    port:cppunit
32
33depends_lib         port:zlib \
34                    port:freetype \
35                    port:fontconfig \
36                    port:libidn \
37                    path:lib/libssl.dylib:openssl \
38                    port:libpng \
39                    port:jpeg \
40                    port:tiff \
41                    port:lua
42
43post-extract {
44    # DOS to UNIX line endings so we can patch
45    reinplace "s|\r||g" ${worksrcpath}/cmake/modules/FindFREETYPE.cmake
46}
47
48patchfiles          patch-cmake-modules-FindFREETYPE.cmake.diff \
49                    patch-test-unit-EncryptTest.h.diff
50
51configure.args-append \
52                    -G \"Unix Makefiles\" \
53                    -DWANT_FONTCONFIG:BOOL=TRUE \
54                    -DPODOFO_BUILD_SHARED:BOOL=TRUE \
55                    -DPODOFO_BUILD_STATIC:BOOL=TRUE \
56                    -DCMAKE_INCLUDE_PATH=${prefix}/include \
57                    -DCMAKE_LIBRARY_PATH=${prefix}/lib \
58                    -DCMAKE_EXE_LINKER_FLAGS=''
59
60livecheck.type      regex
61livecheck.url       http://podofo.sourceforge.net/download.html
62livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"
Note: See TracBrowser for help on using the repository browser.