Ticket #46721: patch-hugin-app-2014.0.0-lensfun-0.3.0.diff

File patch-hugin-app-2014.0.0-lensfun-0.3.0.diff, 3.5 KB (added by dbevans (David B. Evans), 9 years ago)

Revised patch including fixes for issues with lensfun 0.3.0

  • Portfile

     
    66PortGroup               wxWidgets 1.0
    77
    88name                    hugin-app
    9 version                 2013.0.0
    10 revision                7
     9version                 2014.0.0
    1110set branch              [join [lrange [split ${version} .] 0 1] .]
    1211categories              graphics
    1312maintainers             nomaintainer
     
    2827wxWidgets.use           wxWidgets-3.0
    2928
    3029depends_build-append    port:pkgconfig
     30
    3131depends_lib             port:boost \
    3232                        port:exiv2 \
    3333                        port:flann \
     
    4040                        port:libpng \
    4141                        port:libxml2 \
    4242                        port:openexr \
     43                        port:p5.16-image-exiftool \
    4344                        port:swig-python \
    4445                        port:tclap \
    4546                        port:tiff \
     
    4647                        port:python27 \
    4748                        port:${wxWidgets.port}
    4849
     50depends_run             port:enblend
    4951
     52post-extract {
     53    # DOS to UNIX line endings.
     54    reinplace -W ${worksrcpath} "s|\r||g" src/tools/ParseExp.cpp
     55}
     56
    5057# TODO dependencies:
    5158# - freeglut or glut, the OpenGL utility toolkit
    5259# - optionally, lapack
     
    6067
    6168# TODO: try to see where MAC_SELF_CONTAINED_BUNDLE gets defined
    6269
    63 # patch-src-foreign-vigra-vigra-cachedfileimage.hxx.patch - https://bugs.launchpad.net/bugs/1213586
    64 # patch-src-foreign-zthread-include-zthread-Guard.h.diff  - https://bugs.launchpad.net/bugs/1213585
    6570# patch-src-hugin1-hugin1.pch.diff                        - moderately helps with compiler issues
    66 patchfiles              patch-src-foreign-vigra-vigra-cachedfileimage.hxx.patch \
    67                         patch-src-foreign-zthread-include-zthread-Guard.h.diff \
    68                         patch-src-hugin1-hugin1.pch.diff \
    69                         patch-src-hugin1-icpfind-AutoCtrlPointCreator.cpp.diff
     71patchfiles-append       patch-src-hugin1-hugin1.pch.diff
     72patchfiles-append       patch-src-hugin1-icpfind-AutoCtrlPointCreator.cpp.diff
     73patchfiles-append       patch-src-tools-ParseExp.cpp.diff
    7074
    71 depends_run             port:enblend \
    72                         port:p5.16-image-exiftool
     75# patch-src-hugin_base-lensdb-LensDB.cpp.diff FOV1 model (enum LF_DIST_MODEL_FOV1) removed in lensfun 0.3.0
     76# see http://sourceforge.net/p/lensfun/code/ci/048eb3c4e562b8d3b00068f6f42c7900865d3358/ for rationale
     77patchfiles-append       patch-src-hugin_base-lensdb-LensDB.cpp.diff
    7378
    74 checksums               rmd160  73261aa925d6284c6950c84fbfdd77e8b0a2ee7d \
    75                         sha256  484e1ed58fa6fe4bae1f423967101549345bcca2653b992afbc0ed9ec0dbebd5
     79# fix recognition of lensfun during configure after upgrade to version 0.3.0.
    7680
     81post-patch {
     82    reinplace "s|/usr/local|${prefix}|" ${worksrcpath}/CMakeModules/FindLensfun.cmake
     83}
     84
     85checksums               rmd160  2184d85f2dd5ada20884bd80f2e4d18c99db294e \
     86                        sha256  f098aa0ede44010d3bb2bb38693177533fd776c45063a338c4c483d7e471ec29
     87
    7788# Per the README: "Hugin can be compiled with gcc-4.4.4, gcc-4.5.1, and gcc-4.6"
    7889compiler.blacklist      gcc-* apple-gcc-* macports-gcc-4.2 macports-gcc-4.3
    7990
     91configure.env           PATH="${prefix}/libexec/perl5.16:$env(PATH)"
     92
    8093# TODO: fix this
    8194configure.args-append   -DINSTALL_OSX_BUNDLE_DIR=${applications_dir} \
    8295                        -DPYTHON_EXECUTABLE=${frameworks_dir}/Python.framework/Versions/2.7/bin/python \