source: trunk/dports/graphics/hugin-app/Portfile

Last change on this file was 151902, checked in by mojca@…, 11 months ago

hugin-app: switch to perl5.24 (#52081)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.7 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 151902 2016-08-23 21:51:18Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               cmake 1.0
6# C++11 can be conditionally avoided by using an older version of vigra (1.9.0)
7# and a tiny patch below
8PortGroup               cxx11 1.0
9PortGroup               perl5 1.0
10PortGroup               wxWidgets 1.0
11
12name                    hugin-app
13version                 2016.0.0
14revision                4
15set branch              [join [lrange [split ${version} .] 0 1] .]
16categories              graphics
17maintainers             nomaintainer
18description             Panorama photo stitcher
19long_description        An easy to use cross-platform panoramic imaging \
20                        toolchain based on Panorama Tools. With hugin you \
21                        can assemble a mosaic of photographs into a complete \
22                        immersive panorama, stitch any series of overlapping \
23                        pictures and much more.
24
25homepage                http://hugin.sourceforge.net
26platforms               darwin
27
28master_sites            sourceforge:project/hugin/hugin/hugin-${branch}
29distname                hugin-${version}
30use_bzip2               yes
31
32cmake.out_of_source     yes
33
34perl5.branches          5.24
35wxWidgets.use           wxWidgets-3.0
36
37checksums               rmd160  9d73e78accbfae2194b347d3d7f7c3932adc018a \
38                        sha256  b030b05b248b583cf9a26817f5b350303e3ce2c8bc4b43d45f697fbdf55b65e6
39
40depends_build-append    port:pkgconfig \
41                        port:p${perl5.major}-image-exiftool
42
43depends_lib-append      port:boost \
44                        port:exiv2 \
45                        port:flann \
46                        port:gettext \
47                        port:glew \
48                        port:ilmbase \
49                        port:jpeg \
50                        port:lensfun \
51                        port:libpano13 \
52                        port:libpng \
53                        port:libxml2 \
54                        port:openexr \
55                        port:swig-python \
56                        port:tclap \
57                        port:tiff \
58                        port:vigra \
59                        port:python27 \
60                        port:${wxWidgets.port}
61
62depends_run             port:enblend \
63                        port:p${perl5.major}-image-exiftool
64
65# TODO dependencies:
66# - freeglut or glut, the OpenGL utility toolkit
67# - optionally, lapack
68# - for the optional Python Scripting Interface (currently functional and tested only on Linux and Windows)
69#     Python version >=2.6
70#     SWIG >=2.0 - If Python >=3.2, SWIG must be >=2.0.4
71#
72# NOTE: maybe the problem was that if swig is installed,
73#       it gets detected and then requires swig-python
74#       and additional python definitions, else it fails to bulid
75
76# TODO: try to see where MAC_SELF_CONTAINED_BUNDLE gets defined
77
78# patch-CMakeLists.txt.diff        - include the file declaring check_cxx_source_compiles (report upstream)
79# patch-src-hugin1-hugin1.pch.diff - moderately helps with compiler issues
80patchfiles              patch-CMakeLists.txt.diff \
81                        patch-src-hugin1-hugin1.pch.diff \
82                        patch-src-hugin1-icpfind-AutoCtrlPointCreator.cpp.diff
83
84# if C++11
85configure.args-append   -DCMAKE_CXX_FLAGS="-std=c++11"
86# else
87#patchfiles-append      patch-nocxx11.diff
88
89# nowadays Hugin is transitioning to C++11, so this list probably doesn't make much sense
90# Per (an old) README: "Hugin can be compiled with gcc-4.4.4, gcc-4.5.1, and gcc-4.6"
91#compiler.blacklist     gcc-* apple-gcc-* macports-gcc-4.2 macports-gcc-4.3
92
93configure.env           PATH="${prefix}/libexec/perl${perl5.major}:$env(PATH)"
94
95# TODO:
96# - BOOST is most likely only needed when C++11 support is missing
97configure.args-append   -DINSTALL_OSX_BUNDLE_DIR=${applications_dir} \
98                        -DPYTHON_EXECUTABLE=${frameworks_dir}/Python.framework/Versions/2.7/bin/python \
99                        -DPYTHON_INCLUDE_DIR=${frameworks_dir}/Python.framework/Versions/2.7/include/python2.7 \
100                        -DPYTHON_LIBRARY=${prefix}/lib/libpython2.7.dylib \
101                        -DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig} \
102                        -DwxWidgets_wxrc_EXECUTABLE=${wxWidgets.wxrc} \
103                        -DUSE_BOOST=ON -DBOOST_ROOT=${prefix}
104
105# prevents some compiler errors
106configure.cxxflags-append -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0
107
108# recursive template instantiation exceeded maximum depth of 128
109configure.cxxflags-append -ftemplate-depth-1024
110
111livecheck.type          regex
112livecheck.url           ${homepage}
113livecheck.regex         Hugin-(\[.0-9\]+) released
Note: See TracBrowser for help on using the repository browser.