# -*- 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
PortGroup active_variants 1.1
set branch [join [lrange [split ${version} .] 0 1] .]
description Panorama photo stitcher
long_description An easy to use cross-platform panoramic imaging \
toolchain based on Panorama Tools. With hugin you \
can assemble a mosaic of photographs into a complete \
immersive panorama, stitch any series of overlapping \
homepage http://hugin.sourceforge.net
master_sites sourceforge:project/hugin/hugin/hugin-${branch}
distname hugin-${version}
wxWidgets.use wxWidgets-3.0-cxx11
checksums rmd160 2a0cf1af75d384abca0a62d80480fc815f63e0bf \
sha256 86646ea27f32b959d38e7d36270703214b1ae961e379dd64b14d027139cd4609
# do not assume default values that MacPorts sets
patchfiles-append patch-no_default.diff
# in /usr/include/sys/termios.h, VT1 is defined as a number
patchfiles-append patch-terios.diff
# change how we look for OpenMP
patchfiles-append patch-find_openmp.diff
"s|___MACPORTS_FIND_OPENMP__|set(OPENMP_FOUND FALSE)|g" \
${worksrcpath}/CMakeLists.txt
# icon files are not installed
patchfiles-append patch-icns.diff
# icon files are not found
ln -s ../hugin/Hugin.icns ${worksrcpath}/src/hugin1/stitch_project
ln -s ../hugin/PTBatcherGui.icns ${worksrcpath}/src/hugin1/ptbatcher
# use the cmake version of the following packages
foreach cmakePackage "LAPACK GLUT GLEW JPEG PNG PackageHandleStandardArgs PkgConfig TIFF ZLIB OpenMP" {
delete ${worksrcpath}/CMakeModules/Find${cmakePackage}.cmake