# -*- 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
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
description OpenEXR Graphics Library
OpenEXR is a high dynamic-range (HDR) image file format developed \
by Industrial Light & Magic for use in computer imaging applications.
homepage http://www.openexr.com
master_sites http://savannah.nongnu.org/download/openexr
checksums rmd160 eb2fbbefe1399d87a4a60807cb7386ed3b300eaa \
sha256 8f9a5af6131583404261931d9a5c83de0a425cb4b8b25ddab2b169fbf113aecd \
# avoid dependency on port:cctools
configure.env-append NM=${prefix}/bin/nm
# avoid dependency on port:grep
configure.env-append GREP=/usr/bin/grep
if {${subport} ne "ilmbase"} {
depends_build-append port:pkgconfig
if {${subport} eq ${name}} {
depends_lib-append port:ilmbase
# ImfCompressor.h is included in other header files
# see also https://lists.nongnu.org/archive/html/openexr-devel/2013-06/msg00001.html
patch-IlmImf-Makefile.diff
# OS X < 10.6 lacks posix_memalign
# see https://github.com/openexr/openexr/issues/59
patch-IlmImf-ImfSystemSpecific.h.diff
# which upgrading, do not find old header files and libraries
# see #51470 for MacPorts report
# see https://github.com/openexr/openexr/issues/130 for upstream report
patchfiles-append patch-search_order.diff
configure.ldflags-delete -L${prefix}/lib
# see #51470 for MacPorts report
# see https://github.com/openexr/openexr/pull/126 for upstream report
# https://github.com/openexr/openexr/commit/353cbc2e89c582e07796f01bce8f203e84c8ae46
# https://github.com/openexr/openexr/commit/57ecf581d053f5cacf2e8fc3c024490e0bbe536f
patchfiles-append patch-64bit_types.diff
# avoid "can't find a register in class 'BREG' while reloading 'asm'
# see #51470 for MacPorts report
# see https://github.com/openexr/openexr/issues/128 for upstream report