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

Last change on this file since 121085 was 121085, checked in by mojca@…, 6 years ago

wxWidgets-3.0: revbump dependent ports (#44031)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.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 121085 2014-06-17 09:01:41Z mojca@macports.org $
3
4PortSystem              1.0
5PortGroup               cmake 1.0
6PortGroup               wxWidgets 1.0
7
8name                    hugin-app
9version                 2013.0.0
10revision                4
11set branch              [join [lrange [split ${version} .] 0 1] .]
12categories              graphics
13maintainers             nomaintainer
14description             Panorama photo stitcher
15long_description        An easy to use cross-platform panoramic imaging \
16                        toolchain based on Panorama Tools. With hugin you \
17                        can assemble a mosaic of photographs into a complete \
18                        immersive panorama, stitch any series of overlapping \
19                        pictures and much more.
20
21homepage                http://hugin.sourceforge.net
22platforms               darwin
23
24master_sites            sourceforge:project/hugin/hugin/hugin-${branch}
25distname                hugin-${version}
26use_bzip2               yes
27
28wxWidgets.use           wxWidgets-3.0
29
30depends_build-append    port:pkgconfig
31depends_lib             port:boost \
32                        port:exiv2 \
33                        port:flann \
34                        port:gettext \
35                        port:glew \
36                        port:ilmbase \
37                        port:jpeg \
38                        port:lensfun \
39                        port:libpano13 \
40                        port:libpng \
41                        port:libxml2 \
42                        port:openexr \
43                        port:swig-python \
44                        port:tclap \
45                        port:tiff \
46                        port:python27 \
47                        port:${wxWidgets.port}
48
49
50# TODO dependencies:
51# - freeglut or glut, the OpenGL utility toolkit
52# - optionally, lapack
53# - for the optional Python Scripting Interface (currently functional and tested only on Linux and Windows)
54#     Python version >=2.6
55#     SWIG >=2.0 - If Python >=3.2, SWIG must be >=2.0.4
56#
57# NOTE: maybe the problem was that if swig is installed,
58#       it gets detected and then requires swig-python
59#       and additional python definitions, else it fails to bulid
60
61# TODO: try to see where MAC_SELF_CONTAINED_BUNDLE gets defined
62
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
65# patch-src-hugin1-hugin1.pch.diff                        - moderately helps with compiler issues
66patchfiles              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
70
71depends_run             port:enblend \
72                        port:p5.12-image-exiftool
73
74checksums               md5     cc6c768df2aedc24a9a081754de05f39 \
75                        sha1    0e0689cf2ca0c4a2730cffe06380eda976b6772d \
76                        rmd160  73261aa925d6284c6950c84fbfdd77e8b0a2ee7d
77
78# Per the README: "Hugin can be compiled with gcc-4.4.4, gcc-4.5.1, and gcc-4.6"
79compiler.blacklist      gcc-* apple-gcc-* macports-gcc-4.2 macports-gcc-4.3
80
81configure.cppflags-replace -I${prefix}/include -isystem${prefix}/include
82
83# TODO: fix this
84configure.args-append   -DINSTALL_OSX_BUNDLE_DIR=${applications_dir} \
85                        -DPYTHON_EXECUTABLE=${frameworks_dir}/Python.framework/Versions/2.7/bin/python \
86                        -DPYTHON_INCLUDE_DIR=${frameworks_dir}/Python.framework/Versions/2.7/include/python2.7 \
87                        -DPYTHON_LIBRARY=${prefix}/lib/libpython2.7.dylib \
88                        -DwxWidgets_CONFIG_EXECUTABLE=${wxWidgets.wxconfig} \
89                        -DwxWidgets_wxrc_EXECUTABLE=${wxWidgets.wxrc}
90
91# prevents some compiler errors
92configure.cxxflags-append -D__ASSERT_MACROS_DEFINE_VERSIONS_WITHOUT_UNDERSCORES=0
93
94# recursive template instantiation exceeded maximum depth of 128
95configure.cxxflags-append -ftemplate-depth-1024
96
97livecheck.type          regex
98livecheck.url           ${homepage}
99livecheck.regex         Hugin-(\[.0-9\]+) released
Note: See TracBrowser for help on using the repository browser.