source: trunk/dports/graphics/lensfun/Portfile

Last change on this file was 142568, checked in by devans@…, 20 months ago

lensfun: update to version 0.3.2.

  • 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 142568 2015-11-15 22:46:33Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           cmake 1.0
6PortGroup           compiler_blacklist_versions 1.0
7
8cmake.out_of_source yes
9
10name                lensfun
11epoch               1
12version             0.3.2
13categories          graphics
14platforms           darwin
15maintainers         devans openmaintainer
16license             GPL-3 LGPL-3 CC-BY-SA
17
18description         Library for fixing lens geometry distortion
19
20long_description    Provides a database of photographic lenses and a library \
21                    that allows advanced access to the database including \
22                    functions to correct images based on intimate knowledge \
23                    of lens characteristics and calibration data.
24
25homepage            http://lensfun.sourceforge.net/
26master_sites        sourceforge:project/${name}/${version}
27
28checksums           rmd160  57322f5b6969c90f5549e20229a01e70606cc742 \
29                    sha256  ae8bcad46614ca47f5bda65b00af4a257a9564a61725df9c74cb260da544d331
30
31# With 0.3.0 and gcc-4.2:
32#    #error "I don't know how to change symbol visibility for your compiler"
33compiler.blacklist-append *gcc* {clang < 100}
34
35depends_build-append \
36                    port:pkgconfig
37
38depends_lib         path:lib/pkgconfig/glib-2.0.pc:glib2 \
39                    port:libpng \
40                    port:zlib
41
42# installs python3 helper scripts lensfun-add-adapter lensfun-update-data
43
44depends_run         port:python34
45
46pre-patch {
47    copy ${worksrcpath}/docs/CMakeLists.txt ${worksrcpath}/docs/CMakeLists.txt.orig
48}
49
50patchfiles          patch-docs-CMakeLists.txt.diff
51
52post-patch {
53                    reinplace "s|^#!.*|#!${prefix}/bin/python3.4|" \
54                         ${worksrcpath}/apps/lensfun-add-adapter \
55                         ${worksrcpath}/apps/lensfun-update-data
56}
57
58configure.args-append \
59                    -DPYTHON_EXECUTABLE=${prefix}/bin/python3.4 \
60                    -DBUILD_LENSTOOL=ON
61
62variant doc description {Build API and man documentation using doxygen, rst2man} {
63    depends_build-append \
64                    port:doxygen \
65                    port:py34-docutils
66
67    configure.args-append \
68                    -DBUILD_DOC=ON
69}
70
71livecheck.regex     "${name}-(\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.