# -*- 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
# $Id $

PortSystem              1.0
PortGroup               qt4 1.0

name                    nomacs
version                 0.3.0
revision                1
license                 GPL-3+
maintainers             pvanek openmaintainer
description             nomacs image viewer application bundle
long_description        nomacs is a free image viewer. nomacs is small, fast and able to \
                        handle the most common image formats. Additionally it is possible \
                        to synchronize multiple viewers. A synchronization of viewers running \
                        on the same computer or via LAN is possible. It allows to compare \
                        images and spot the differences (e.g. schemes of architects to show the progress).
categories              aqua graphics
platforms               darwin
homepage                http://nomacs.org
master_sites            sourceforge:project/nomacs/nomacs-${version}
#use_bzip2               yes
use_zip                 yes
distname                ${name}-${version}-source
#worksrcdir              ${name}-${version}
worksrcdir              .

checksums           md5     80571a6dc23b14653d05db4f2a09fb72 \
                    sha1    e38700c9e25fee51224aad1c759432bb9697dea8 \
                    rmd160  f3928495d7c63a8f281cb5f1ea745c0bd8c11398

depends_build-append    port:cmake

depends_lib-append      port:exiv2 \
                        port:libraw \
                        port:opencv

# opencv is not universal
universal_variant       no

configure.cmd           cmake
configure.pre_args      -DCMAKE_INSTALL_PREFIX=${applications_dir}
configure.args          -DCMAKE_LIBRARY_PATH=${prefix}/lib \
                        -DCMAKE_INCLUDE_PATH=${prefix}/include \
                        -DCMAKE_VERBOSE_MAKEFILE=ON \
                        ${qt_cmake_defines} .


