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 | |
---|
3 | PortSystem 1.0 |
---|
4 | PortGroup cmake 1.1 |
---|
5 | |
---|
6 | name podofo |
---|
7 | version 0.9.7 |
---|
8 | revision 0 |
---|
9 | license GPL-2 LGPL-2 |
---|
10 | categories graphics |
---|
11 | maintainers {devans @dbevans} openmaintainer |
---|
12 | platforms darwin |
---|
13 | homepage http://podofo.sourceforge.net/ |
---|
14 | master_sites sourceforge |
---|
15 | |
---|
16 | description PoDoFo is a library to work with the PDF file format. |
---|
17 | |
---|
18 | long_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 | |
---|
23 | checksums sha256 7cf2e716daaef89647c54ffcd08940492fd40c385ef040ce7529396bfadc1eb8 \ |
---|
24 | rmd160 bb0ab87503776119a8b44aa20169f20b58b98bc0 \ |
---|
25 | size 1005247 |
---|
26 | |
---|
27 | depends_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 | |
---|
38 | post-extract { |
---|
39 | # DOS to UNIX line endings so we can patch |
---|
40 | reinplace "s|\r||g" ${worksrcpath}/cmake/modules/FindFREETYPE.cmake |
---|
41 | } |
---|
42 | |
---|
43 | patchfiles patch-cmake-modules-FindFREETYPE.cmake.diff \ |
---|
44 | make-tests-optional.patch |
---|
45 | |
---|
46 | compiler.cxx_standard 2017 |
---|
47 | |
---|
48 | configure.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 | |
---|
59 | livecheck.type regex |
---|
60 | livecheck.url http://podofo.sourceforge.net/download.html |
---|
61 | livecheck.regex "${name}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|