Ticket #49965: Portfile_extra.diff

File Portfile_extra.diff, 3.7 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 8 years ago)
  • Portfile

    old new  
     1# -*- 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
    12# $Id: Portfile 96951 2012-08-22 18:22:18Z blair@macports.org $
    23
    34PortSystem 1.0
    4                
     5
    56name            openexr
    6 version         1.7.0
     7version         2.2.0
    78categories      graphics
    89license         BSD
    910maintainers     blair
     
    1112long_description \
    1213    OpenEXR is a high dynamic-range (HDR) image file format developed \
    1314    by Industrial Light & Magic for use in computer imaging applications.
    14 homepage        http://www.openexr.org
     15homepage        http://www.openexr.com
    1516platforms       darwin
    1617master_sites    http://savannah.nongnu.org/download/openexr
    17 checksums       md5     27113284f7d26a58f853c346e0851d7a \
    18                 sha1    91d0d4e69f06de956ec7e0710fc58ec0d4c4dc2b \
    19                 rmd160  410ae4490988067cc80324e776b52ae6a261f157
     18checksums       rmd160  a825ed42e731da3bc39f25ce2a310712a5b0f956 \
     19                sha256  36a012f6c43213f840ce29a8b182700f6cf6b214bea0d5735594136b44914231
     20
     21if {${subport} ne "ilmbase"} {
     22    depends_build   port:pkgconfig
     23}
     24
     25if {${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}
    2033
    21 depends_build   port:libtool
    22 depends_lib     port:ilmbase
     34subport ilmbase {
     35    distname    ilmbase-${version}
     36    checksums   \
     37        rmd160  b1adb0c96eff6b3554ddaf8f8bafe2cba8c114e3 \
     38        sha256  ecf815b60695555c1fbc73679e84c7c9902f4e8faa6e8000d2f905b8b86cedc7
     39}
    2340
    24 patchfiles      patch-configure
     41set python_versions {27 34 35}
    2542
    26 configure.args  --mandir=${prefix}/share/man \
    27                 --infodir=${prefix}/share/info
     43foreach 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
    2870
    29 post-configure {
    30     copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool
     71        require_active_variants boost python${pver}
     72    }
     73}
     74
     75subport 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
    3187}
    3288
    3389test.run        yes
    3490test.target     check
     91
     92livecheck.type  regex
     93livecheck.url   ${homepage}/downloads.html
     94livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)