diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/otcl/Portfile lang/otcl/Portfile
old
|
new
|
|
| 1 | # -*- Tcl -*- |
1 | 2 | # $Id: Portfile 50572 2009-05-04 19:19:09Z jeremyhu@macports.org $ |
2 | 3 | |
3 | 4 | PortSystem 1.0 |
4 | 5 | |
5 | 6 | name otcl |
6 | | version 1.9 |
7 | | revision 1 |
| 7 | version 1.14 |
| 8 | revision 0 |
8 | 9 | categories lang |
9 | 10 | platforms darwin |
10 | 11 | maintainers nomaintainer |
… |
… |
|
14 | 15 | homepage http://otcl-tclcl.sourceforge.net/otcl/ |
15 | 16 | master_sites sourceforge:otcl-tclcl:otcl \ |
16 | 17 | sourceforge:tcl:tcl |
17 | | set tclmaj 8.4 |
18 | | set tclmin 9 |
19 | 18 | dist_subdir tcltk |
20 | | set tclv ${tclmaj}.${tclmin} |
21 | | distfiles ${name}-${version}.tar.gz:otcl \ |
22 | | tcl${tclv}-src.tar.gz:tcl |
23 | | checksums ${name}-${version}.tar.gz md5 d17331ef65912f43c530c57565f85600 \ |
24 | | tcl${tclv}-src.tar.gz md5 7e01b409925e4eb59ad44a4c12b9c681 |
| 19 | set tclv 8.5.11 |
| 20 | distfiles ${name}-src-${version}.tar.gz:otcl \ |
| 21 | tcl${tclv}-src.tar.gz:tcl |
| 22 | checksums ${name}-src-${version}.tar.gz \ |
| 23 | md5 336ec1e0049d2546fb2362005c3bb0be \ |
| 24 | sha1 e3b2b090b8f204f60ff78066d85fd800de53db7c \ |
| 25 | rmd160 2895c4d814246faa468d1854f9cb7c8a3f7ac696 \ |
| 26 | tcl${tclv}-src.tar.gz \ |
| 27 | rmd160 36140b5e8365c190202132dd6f0dfeb831ea9bc8 \ |
| 28 | sha256 8addc385fa6b5be4605e6d68fbdc4c0e674c5af1dc1c95ec5420390c4b08042a |
25 | 29 | |
26 | 30 | depends_build port:autoconf \ |
27 | 31 | port:automake |
28 | | |
29 | | depends_lib port:tcl \ |
| 32 | depends_lib port:tcl \ |
30 | 33 | port:tk |
31 | 34 | |
32 | | patchfiles conf_configure.in.fns.patch \ |
33 | | conf_configure.in.Tcl.patch |
34 | | |
35 | | pre-configure { |
36 | | system "cd ${worksrcpath} && ${prefix}/bin/aclocal && ${prefix}/bin/autoconf" |
| 35 | patchfiles conf_configure.in.tcl.patch |
| 36 | pre-configure { |
| 37 | system -W ${worksrcpath} "${prefix}/bin/aclocal && ${prefix}/bin/autoconf" |
37 | 38 | } |
38 | 39 | |
39 | | configure.args --with-Tcl=${prefix} --with-Tcl-ver=${tclmaj} \ |
40 | | --with-tk=${prefix} --with-tk-ver=${tclmaj} \ |
41 | | --prefix=${prefix} \ |
42 | | CPPFLAGS='-I${prefix}/include -I${workpath}/tcl${tclv}/generic/' \ |
43 | | CFLAGS='-I${prefix}/include -I${workpath}/tcl${tclv}/generic/' \ |
44 | | LDFLAGS='-L${prefix}/lib' |
45 | | |
46 | | post-configure { |
47 | | reinplace "s|-ltk8.4|-ltcl8.4 -ltk8.4|g" \ |
48 | | ${worksrcpath}/Makefile |
49 | | } |
| 40 | configure.cflags "-I${workpath}/tcl${tclv}/generic -I${workpath}/tcl${tclv}/unix" |
| 41 | configure.args --prefix=${prefix} \ |
| 42 | --mandir=${prefix}/share/man \ |
| 43 | --with-tcl=${prefix}/lib |
50 | 44 | |
51 | 45 | build.target all |
52 | 46 | |
53 | | post-build { |
| 47 | post-build { |
54 | 48 | system "/usr/bin/ranlib ${worksrcpath}/libotcl.a" |
55 | 49 | } |
56 | 50 | |