# -*- 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: Portfile 149045 2016-05-26 11:03:20Z mcalhoun@macports.org $ PortSystem 1.0 name openexr version 2.2.0 categories graphics license BSD maintainers mcalhoun openmaintainer description OpenEXR Graphics Library long_description \ 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 platforms darwin master_sites http://savannah.nongnu.org/download/openexr checksums rmd160 a825ed42e731da3bc39f25ce2a310712a5b0f956 \ sha256 36a012f6c43213f840ce29a8b182700f6cf6b214bea0d5735594136b44914231 # 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}} { revision 1 depends_lib-append port:ilmbase # ImfCompressor.h is included in other header files # see #49965 # see also https://lists.nongnu.org/archive/html/openexr-devel/2013-06/msg00001.html patchfiles-append \ patch-IlmImf-Makefile.diff # OS X < 10.6 lacks posix_memalign # see https://github.com/openexr/openexr/issues/59 patchfiles-append \ 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 # see # https://github.com/openexr/openexr/commit/353cbc2e89c582e07796f01bce8f203e84c8ae46 # https://github.com/openexr/openexr/commit/57ecf581d053f5cacf2e8fc3c024490e0bbe536f # for upstream fix 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 if { ${build_arch} eq "i386" && [string match *gcc-4* ${configure.compiler}] } { patchfiles-append patch-pic.diff } } subport ilmbase { distname ilmbase-${version} checksums \ rmd160 b1adb0c96eff6b3554ddaf8f8bafe2cba8c114e3 \ sha256 ecf815b60695555c1fbc73679e84c7c9902f4e8faa6e8000d2f905b8b86cedc7 # Bitrotted ucontext usage is buggy, don't bother with it. patchfiles-append patch-configure.diff } set python_versions {27 34 35} foreach pver ${python_versions} { subport py${pver}-pyilmbase { PortGroup active_variants 1.1 distname pyilmbase-${version} checksums \ rmd160 9a6b711a2842b1e0124a43fc1c2148a2e7802710 \ sha256 68c968fec5c40930a2c692ccc88990faa50320ed74b88553a3632d7d02c87e1a # so long as boost can only be installed with one version of python at a time, # conflict with all other pyilmbase ports foreach over ${python_versions} { if {${over} ne ${pver}} { conflicts-append py${over}-pyilmbase } } configure.args-append \ --with-boost-python-libname=boost_python-mt set pbranch [string range ${pver} 0 end-1].[string index ${pver} end] configure.python ${prefix}/bin/python${pbranch} depends_lib-append \ port:ilmbase \ port:python${pver} \ port:boost \ port:py${pver}-numpy require_active_variants boost python${pver} } } subport openexr_viewers { distname openexr_viewers-${version} checksums rmd160 5f3edc7a0c706faa75a9cd205c0ac85e988c6e09 \ sha256 f73fe2e4d19e8fc9317d6c34f156598ad43497bb9549f03feacb8ba095dd04e9 depends_lib-append \ port:openexr \ path:lib/libfltk.dylib:fltk \ port:ctlang # do not attempt to have fltk build application bundle patchfiles-append patch-fltk.diff } # The bundled libtool doesn't support -stdlib=... patchfiles-append \ patch-ltmain.sh.diff test.run yes test.target check livecheck.type regex livecheck.url ${homepage}/downloads.html livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)