Ticket #44830: patch-itk-Portfile.diff
File patch-itk-Portfile.diff, 4.0 KB (added by jul_bsd@…, 10 years ago) |
---|
-
x11/itk/Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name itk 6 version 3.3 7 revision 3 6 version 4.0.0 8 7 categories x11 tk 9 8 license Tcl/Tk MIT 10 9 maintainers nomaintainer … … 20 19 # Set tclv and md5 checksum to the current MacPorts Tcl port version, though port doesn't 21 20 # break if they aren't in sync. 22 21 23 set tclv 8.5.9 22 set vstub ${version} 23 set tclv 8.6.2 24 24 25 25 distfiles ${distname}.tar.gz:itk \ 26 26 tcl${tclv}-src.tar.gz:tcl 27 checksums ${name}${version}.tar.gz md5 a97c17f3cfa5e377f43073c653c501b5 \ 28 tcl${tclv}-src.tar.gz md5 8512d8db3233041dd68a81476906012a 27 29 28 depends_build port:tk port:itcl 30 29 build.args CPPFLAGS=-I${prefix}/include 31 30 worksrcdir ${name}${version} … … 37 36 configure.ldflags-append -ltcl -lX11 38 37 39 38 configure.args --with-tcl=${tclconfig} \ 40 --with-itcl=${prefix}/lib/itcl3.4 \ 41 --with-tk=${prefix}/lib 39 --with-tk=${prefix}/lib 42 40 43 41 post-patch { 44 42 reinplace "s|@itk_LIB_SPEC@|-L${prefix}/lib -litk|g" \ … … 52 50 destroot { 53 51 set _d ${destroot}${prefix} 54 52 set _w ${worksrcpath} 55 file mkdir ${_d}/lib/itk 3.356 xinstall -m 755 ${_w}/itkConfig.sh ${_d}/lib/itk 3.353 file mkdir ${_d}/lib/itk${vstub} 54 xinstall -m 755 ${_w}/itkConfig.sh ${_d}/lib/itk${vstub} 57 55 58 56 foreach x [glob ${worksrcpath}/library/*] { 59 file copy -force $x ${_d}/lib/itk 3.357 file copy -force $x ${_d}/lib/itk${vstub} 60 58 } 61 file copy -force ${_w}/pkgIndex.tcl ${_d}/lib/itk 3.359 file copy -force ${_w}/pkgIndex.tcl ${_d}/lib/itk${vstub} 62 60 63 file copy -force ${_w}/libitk 3.3.dylib ${_d}/lib61 file copy -force ${_w}/libitk${vstub}.dylib ${_d}/lib 64 62 65 63 file mkdir ${_d}/include 66 64 foreach x {itk.h itkDecls.h } { … … 71 69 file delete -force ${_d}/share/man/mann/Toplevel.n 72 70 } 73 71 } 72 73 ## FIXME! clang: error: no such file or directory: '{-I/opt/local/var/macports/build/_Users_julien_tmp_myports_x11_itk/itk/work/tcl8.6.2/generic' 74 variant universal {} 75 #configure.cflags-append "${configure.cflags} [get_canonical_archflags cc]" 76 77 if {${subport} eq ${name}} { 78 depends_build-append port:itcl 79 configure.args-append --with-itcl=${prefix}/lib/itcl4.0.1 80 81 checksums ${name}${version}.tar.gz \ 82 rmd160 24298e96bdbaa21c3b9bcaacc172e18c3bc78764 \ 83 sha256 3494f3d2e223120c0f7e6b85c20e57d3d6e87421c906676dfd6559701b4f6ec8 \ 84 tcl${tclv}-src.tar.gz \ 85 rmd160 574bffdf3e390cf6460ab4a9d4b59db0e58f2998 \ 86 sha256 86f7ae5f581dd0904d04415637ab3aef5a50986c1b6d04c340e2b1b0258da9c4 87 88 conflicts ${name}3 89 90 livecheck.type regex 91 livecheck.url https://sourceforge.net/projects/incrtcl/files/%5Bincr%20Tcl_Tk%5D-4-source/ 92 livecheck.regex "itcl (\\d+(?:\\.\\d+)*)" 93 } 94 95 subport ${name}3 { 96 version 3.3 97 set vstub ${version} 98 99 depends_build-append port:itcl3 100 configure.args-append --with-itcl=${prefix}/lib/itcl3.4 101 102 distname itk${version} 103 distfiles ${distname}.tar.gz:itk \ 104 tcl${tclv}-src.tar.gz:tcl 105 checksums ${distname}.tar.gz \ 106 rmd160 74da1a9dfb6d6049f9d90a208d3b3166cfd2de20 \ 107 sha256 b6eee1eab759e2dc216278800624a73239ced697400bc0de4f45a4f8cd1e9ad6 \ 108 tcl${tclv}-src.tar.gz \ 109 rmd160 574bffdf3e390cf6460ab4a9d4b59db0e58f2998 \ 110 sha256 86f7ae5f581dd0904d04415637ab3aef5a50986c1b6d04c340e2b1b0258da9c4 111 112 conflicts ${name} 113 114 ## Note: not all subdirs contains both itk and itcl. 115 ## At 2014/08/31, latest subdir is 3.4.1 but latest itk is 3.3 116 livecheck.type regex 117 livecheck.url https://sourceforge.net/projects/incrtcl/files/%5BIncr%20Tcl_Tk%5D-source/ 118 livecheck.regex "title=\"(\\d+(?:\\.\\d+)*)\"" 119 }