Ticket #44620: Portfile.diff
File Portfile.diff, 3.2 KB (added by MarcusCalhoun-Lopez (Marcus Calhoun-Lopez), 9 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 1 2 # $Id: Portfile 96951 2012-08-22 18:22:18Z blair@macports.org $ 2 3 3 4 PortSystem 1.0 4 5 5 6 name openexr 6 version 1.7.07 version 2.2.0 7 8 categories graphics 8 9 license BSD 9 10 maintainers blair … … 11 12 long_description \ 12 13 OpenEXR is a high dynamic-range (HDR) image file format developed \ 13 14 by Industrial Light & Magic for use in computer imaging applications. 14 homepage http://www.openexr. org15 homepage http://www.openexr.com 15 16 platforms darwin 16 17 master_sites http://savannah.nongnu.org/download/openexr 17 checksums md5 27113284f7d26a58f853c346e0851d7a \ 18 sha1 91d0d4e69f06de956ec7e0710fc58ec0d4c4dc2b \ 19 rmd160 410ae4490988067cc80324e776b52ae6a261f157 18 checksums rmd160 a825ed42e731da3bc39f25ce2a310712a5b0f956 \ 19 sha256 36a012f6c43213f840ce29a8b182700f6cf6b214bea0d5735594136b44914231 20 20 21 depends_build port:libtool 22 depends_lib port:ilmbase 21 if {${subport} ne "ilmbase"} { 22 depends_build port:pkgconfig 23 depends_lib port:ilmbase 24 } 23 25 24 patchfiles patch-configure 26 subport ilmbase { 27 distname ilmbase-${version} 28 checksums \ 29 rmd160 b1adb0c96eff6b3554ddaf8f8bafe2cba8c114e3 \ 30 sha256 ecf815b60695555c1fbc73679e84c7c9902f4e8faa6e8000d2f905b8b86cedc7 31 } 25 32 26 configure.args --mandir=${prefix}/share/man \ 27 --infodir=${prefix}/share/info 33 set python_versions {27 34 35} 28 34 29 post-configure { 30 copy -force ${prefix}/bin/glibtool ${worksrcpath}/libtool 35 array set python_ports {} 36 foreach pver ${python_versions} { 37 set python_ports(${pver}) py${pver}-pyilmbase 38 } 39 40 foreach pver ${python_versions} { 41 subport $python_ports(${pver}) { 42 PortGroup active_variants 1.1 43 distname pyilmbase-${version} 44 checksums \ 45 rmd160 9a6b711a2842b1e0124a43fc1c2148a2e7802710 \ 46 sha256 68c968fec5c40930a2c692ccc88990faa50320ed74b88553a3632d7d02c87e1a 47 48 # get a list of all the other python subports to conflict with 49 set i [lsearch -exact ${python_versions} ${pver}] 50 set other_versions [lreplace ${python_versions} ${i} ${i}] 51 set other_ports {} 52 foreach over ${other_versions} { 53 lappend other_ports $python_ports(${over}) 54 } 55 conflicts ${other_ports} 56 57 configure.args-append \ 58 --with-boost-python-libname=boost_python-mt 59 60 set pbranch [string range ${pver} 0 end-1].[string index ${pver} end] 61 configure.python ${prefix}/bin/python${pbranch} 62 63 depends_lib-append \ 64 port:python${pver} \ 65 port:boost \ 66 port:py${pver}-numpy 67 68 require_active_variants boost python${pver} 69 } 31 70 } 32 71 33 72 test.run yes 34 73 test.target check 74 75 livecheck.type regex 76 livecheck.url ${homepage}/downloads.html 77 livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)