[148895] trunk/dports/graphics/openexr

mcalhoun at macports.org mcalhoun at macports.org
Sun May 22 07:36:34 PDT 2016


Revision: 148895
          https://trac.macports.org/changeset/148895
Author:   mcalhoun at macports.org
Date:     2016-05-22 07:36:34 -0700 (Sun, 22 May 2016)
Log Message:
-----------
openexr_viewers, pyilmbase: new subports; part of OpenEXR suite
proposed in #44620; maintainer timeout

Modified Paths:
--------------
    trunk/dports/graphics/openexr/Portfile

Added Paths:
-----------
    trunk/dports/graphics/openexr/files/patch-fltk.diff

Modified: trunk/dports/graphics/openexr/Portfile
===================================================================
--- trunk/dports/graphics/openexr/Portfile	2016-05-22 14:26:15 UTC (rev 148894)
+++ trunk/dports/graphics/openexr/Portfile	2016-05-22 14:36:34 UTC (rev 148895)
@@ -39,6 +39,54 @@
         sha256  ecf815b60695555c1fbc73679e84c7c9902f4e8faa6e8000d2f905b8b86cedc7
 }
 
+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
+}
+
 test.run        yes
 test.target     check
 

Added: trunk/dports/graphics/openexr/files/patch-fltk.diff
===================================================================
--- trunk/dports/graphics/openexr/files/patch-fltk.diff	                        (rev 0)
+++ trunk/dports/graphics/openexr/files/patch-fltk.diff	2016-05-22 14:36:34 UTC (rev 148895)
@@ -0,0 +1,15 @@
+--- exrdisplay/Makefile.in.orig	2016-01-31 06:22:45.000000000 -0700
++++ exrdisplay/Makefile.in	2016-01-31 06:24:22.000000000 -0700
+@@ -578,10 +578,10 @@
+ 
+ 
+ @HAVE_FLTK_TRUE at all-local:
+- at HAVE_FLTK_TRUE@	@FLTK_CONFIG@ --post exrdisplay
++#@HAVE_FLTK_TRUE@	@FLTK_CONFIG@ --post exrdisplay
+ 
+ @HAVE_FLTK_TRUE at install-exec-hook:
+- at HAVE_FLTK_TRUE@	@FLTK_CONFIG@ --post $(DESTDIR)$(bindir)/exrdisplay
++#@HAVE_FLTK_TRUE@	@FLTK_CONFIG@ --post $(DESTDIR)$(bindir)/exrdisplay
+ 
+ @HAVE_FLTK_FALSE at install-exec-hook:
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20160522/765e7d32/attachment.html>


More information about the macports-changes mailing list