Ticket #64566: Portfile

File Portfile, 2.4 KB (added by MrB74, 2 years ago)

portfile

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
3PortSystem          1.0
4PortGroup           cmake 1.1
5
6name                podofo
7version             0.9.7
8revision            0
9license             GPL-2 LGPL-2
10categories          graphics
11maintainers         {devans @dbevans} openmaintainer
12platforms           darwin
13homepage            http://podofo.sourceforge.net/
14master_sites        sourceforge
15
16description         PoDoFo is a library to work with the PDF file format.
17
18long_description    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           sha256  7cf2e716daaef89647c54ffcd08940492fd40c385ef040ce7529396bfadc1eb8 \
24                    rmd160  bb0ab87503776119a8b44aa20169f20b58b98bc0 \
25                    size    1005247
26
27depends_lib         port:zlib \
28                    port:freetype \
29                    port:fontconfig \
30                    port:libidn \
31                    path:lib/libssl.dylib:openssl \
32                    port:libpng \
33                    port:libunistring \
34                    path:include/turbojpeg.h:libjpeg-turbo \
35                    port:tiff \
36                    port:lua
37
38post-extract {
39    # DOS to UNIX line endings so we can patch
40    reinplace "s|\r||g" ${worksrcpath}/cmake/modules/FindFREETYPE.cmake
41}
42
43patchfiles          patch-cmake-modules-FindFREETYPE.cmake.diff \
44                    make-tests-optional.patch
45
46compiler.cxx_standard 2017
47
48configure.args-append \
49                    -G \"Unix Makefiles\" \
50                    -DWANT_FONTCONFIG:BOOL=TRUE \
51                    -DPODOFO_BUILD_SHARED:BOOL=TRUE \
52                    -DPODOFO_BUILD_STATIC:BOOL=TRUE \
53                    -DPODOFO_BUILD_TESTS:BOOL=FALSE \
54                    -DCMAKE_INCLUDE_PATH=${prefix}/include \
55                    -DCMAKE_LIBRARY_PATH=${prefix}/lib \
56                    -DCMAKE_EXE_LINKER_FLAGS='' \
57                    -DCMAKE_CXX_FLAGS='-std=c++17'
58
59livecheck.type      regex
60livecheck.url       http://podofo.sourceforge.net/download.html
61livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}"