Ticket #27449: Portfile-itcl-3.4.diff
File Portfile-itcl-3.4.diff, 2.9 KB (added by markd@…, 14 years ago) |
---|
-
Portfile
old new 3 3 PortSystem 1.0 4 4 5 5 name itcl 6 version 3.3 7 revision 2 6 version 3.4b1 8 7 categories lang 9 8 maintainers nomaintainer 10 9 description Object oriented extension to Tcl. 11 10 long_description ${description} 12 11 homepage http://incrtcl.sourceforge.net/ 13 12 platforms darwin 14 master_sites sourceforge:incrtcl :itcl \13 master_sites sourceforge:incrtcl/files/%5BIncr%20Tcl_Tk%5D-source/3.4:itcl \ 15 14 sourceforge:tcl:tcl 16 15 distname ${name}${version} 17 16 # Set tclv and md5 checksum to the current MacPorts Tcl port version, though port doesn't 18 17 # break if they aren't in sync. 19 18 20 set tclv 8. 4.1419 set tclv 8.5.9 21 20 22 21 distfiles ${distname}.tar.gz:itcl \ 23 22 tcl${tclv}-src.tar.gz:tcl 24 checksums ${ name}${version}.tar.gz md5 d958b3d1c52fa5336b5aacc1251b5ce3\25 tcl${tclv}-src.tar.gz md5 51c6bf74d3ffdb0bd866ecdac6ff646023 checksums ${distname}.tar.gz md5 e4c97750c08ab47e960b91911fdd0132 \ 24 tcl${tclv}-src.tar.gz md5 8512d8db3233041dd68a81476906012a 26 25 depends_build port:tcl port:tk 27 26 build.args CPPFLAGS=-I${prefix}/include 28 worksrcdir ${name} ${version}27 worksrcdir ${name}3.4 29 28 30 29 configure.env TCLROOT=${prefix} 31 configure.cflags "-I${workpath}/tcl${tclv}/generic "32 configure.ldflags-append "-tcl8. 4"30 configure.cflags "-I${workpath}/tcl${tclv}/generic -I${workpath}/tcl${tclv}/unix" 31 configure.ldflags-append "-tcl8.5" 33 32 34 33 configure.args --with-tcl=${prefix}/lib 35 34 36 35 configure.universal_args-delete --disable-dependency-tracking 37 36 38 37 post-patch { 39 reinplace "s|@itcl_LIB_FILE@|${prefix}/lib/libitcl3. 3.dylib|g" \38 reinplace "s|@itcl_LIB_FILE@|${prefix}/lib/libitcl3.4.dylib|g" \ 40 39 ${worksrcpath}/itclConfig.sh.in 41 reinplace "s|@PACKAGE_VERSION@|3. 3|g" \40 reinplace "s|@PACKAGE_VERSION@|3.4|g" \ 42 41 ${worksrcpath}/itclConfig.sh.in 43 42 reinplace "s|@itcl_BUILD_LIB_SPEC@|-L${prefix}/lib -litcl|g" \ 44 43 ${worksrcpath}/itclConfig.sh.in … … 49 48 } 50 49 51 50 post-build { 52 system "ranlib ${worksrcpath}/libitclstub3. 3.a"51 system "ranlib ${worksrcpath}/libitclstub3.4.a" 53 52 } 54 53 55 54 destroot { 56 55 set _d ${destroot}${prefix} 57 56 set _w ${worksrcpath} 58 file mkdir -p ${_d}/lib/itcl3. 359 xinstall -m 755 ${_w}/itclConfig.sh ${_d}/lib/itcl3. 360 file copy -force ${_w}/pkgIndex.tcl ${_d}/lib/itcl3. 361 file copy -force ${_w}/library/itcl.tcl ${_d}/lib/itcl3. 362 file copy -force ${_w}/libitcl3. 3.dylib ${_d}/lib63 file copy -force ${_w}/libitclstub3. 3.a ${_d}/lib57 file mkdir -p ${_d}/lib/itcl3.4 58 xinstall -m 755 ${_w}/itclConfig.sh ${_d}/lib/itcl3.4 59 file copy -force ${_w}/pkgIndex.tcl ${_d}/lib/itcl3.4 60 file copy -force ${_w}/library/itcl.tcl ${_d}/lib/itcl3.4 61 file copy -force ${_w}/libitcl3.4.dylib ${_d}/lib 62 file copy -force ${_w}/libitclstub3.4.a ${_d}/lib 64 63 65 64 file mkdir -p ${_d}/include 66 65 foreach x {itcl.h itclDecls.h itclInt.h itclIntDecls.h } {