| 17 | | checksums md5 27113284f7d26a58f853c346e0851d7a \ |
| 18 | | sha1 91d0d4e69f06de956ec7e0710fc58ec0d4c4dc2b \ |
| 19 | | rmd160 410ae4490988067cc80324e776b52ae6a261f157 |
| | 18 | checksums rmd160 a825ed42e731da3bc39f25ce2a310712a5b0f956 \ |
| | 19 | sha256 36a012f6c43213f840ce29a8b182700f6cf6b214bea0d5735594136b44914231 |
| | 20 | |
| | 21 | if {${subport} ne "ilmbase"} { |
| | 22 | depends_build port:pkgconfig |
| | 23 | } |
| | 24 | |
| | 25 | if {${subport} eq ${name}} { |
| | 26 | # ImfCompressor.h is included in other header files |
| | 27 | # see #49965 |
| | 28 | # see also https://lists.nongnu.org/archive/html/openexr-devel/2013-06/msg00001.html |
| | 29 | patchfiles \ |
| | 30 | patch-IlmImf-Makefile.am.diff \ |
| | 31 | patch-IlmImf-Makefile.in.diff |
| | 32 | } |
| 26 | | configure.args --mandir=${prefix}/share/man \ |
| 27 | | --infodir=${prefix}/share/info |
| | 43 | foreach pver ${python_versions} { |
| | 44 | subport py${pver}-pyilmbase { |
| | 45 | PortGroup active_variants 1.1 |
| | 46 | distname pyilmbase-${version} |
| | 47 | checksums \ |
| | 48 | rmd160 9a6b711a2842b1e0124a43fc1c2148a2e7802710 \ |
| | 49 | sha256 68c968fec5c40930a2c692ccc88990faa50320ed74b88553a3632d7d02c87e1a |
| | 50 | |
| | 51 | # so long as boost can only be installed with one version of python at a time, |
| | 52 | # conflict with all other pyilmbase ports |
| | 53 | foreach over ${python_versions} { |
| | 54 | if {${over} ne ${pver}} { |
| | 55 | conflicts-append py${over}-pyilmbase |
| | 56 | } |
| | 57 | } |
| | 58 | |
| | 59 | configure.args-append \ |
| | 60 | --with-boost-python-libname=boost_python-mt |
| | 61 | |
| | 62 | set pbranch [string range ${pver} 0 end-1].[string index ${pver} end] |
| | 63 | configure.python ${prefix}/bin/python${pbranch} |
| | 64 | |
| | 65 | depends_lib-append \ |
| | 66 | port:ilmbase \ |
| | 67 | port:python${pver} \ |
| | 68 | port:boost \ |
| | 69 | port:py${pver}-numpy |
| 29 | | post-configure { |
| 30 | | copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool |
| | 71 | require_active_variants boost python${pver} |
| | 72 | } |
| | 73 | } |
| | 74 | |
| | 75 | subport openexr_viewers { |
| | 76 | distname openexr_viewers-${version} |
| | 77 | checksums rmd160 5f3edc7a0c706faa75a9cd205c0ac85e988c6e09 \ |
| | 78 | sha256 f73fe2e4d19e8fc9317d6c34f156598ad43497bb9549f03feacb8ba095dd04e9 |
| | 79 | |
| | 80 | depends_lib-append \ |
| | 81 | port:openexr \ |
| | 82 | path:lib/libfltk.dylib:fltk \ |
| | 83 | port:ctlang |
| | 84 | |
| | 85 | # do not attempt to build application bundle |
| | 86 | patchfiles-append patch-fltk.diff |