source: trunk/dports/graphics/podofo/Portfile @ 139229

Last change on this file since 139229 was 139229, checked in by jeremyhu@…, 4 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

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