diff -ur /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/tclcl/Portfile lang/tclcl/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 tclcl |
6 | | version 1.16 |
7 | | revision 1 |
| 7 | version 1.20 |
| 8 | revision 0 |
8 | 9 | categories lang |
9 | 10 | platforms darwin |
10 | 11 | maintainers nomaintainer |
11 | | description TclCL (Tcl with classes) |
12 | | long_description TclCL is a Tcl/C++ interface |
| 12 | description TclCL (OTcl C++ interface) |
| 13 | long_description TclCL is a OTcl/C++ interface |
13 | 14 | homepage http://otcl-tclcl.sourceforge.net/tclcl/ |
14 | | master_sites sourceforge:otcl-tclcl:tclcl \ |
15 | | sourceforge:tcl:tcl |
16 | | set tclmaj 8.4 |
17 | | set tclmin 9 |
| 15 | master_sites sourceforge:otcl-tclcl:tclcl |
18 | 16 | dist_subdir tcltk |
19 | | set tclv ${tclmaj}.${tclmin} |
20 | | distfiles ${name}-src-${version}.tar.gz:tclcl \ |
21 | | tcl${tclv}-src.tar.gz:tcl |
22 | | checksums ${name}-src-${version}.tar.gz md5 2a25a4736c1bf4ec7f4e6343aa533bc6 \ |
23 | | tcl${tclv}-src.tar.gz md5 7e01b409925e4eb59ad44a4c12b9c681 |
| 17 | set tclv 8.5.11 |
| 18 | distfiles ${name}-src-${version}.tar.gz:tclcl |
| 19 | checksums ${name}-src-${version}.tar.gz \ |
| 20 | md5 91d48d6694ae06cd29c627df6b78534a \ |
| 21 | sha1 45d38a1dea2ed9bfd529776b16f5a78d584f7549 \ |
| 22 | rmd160 eea14ea193669d60c8e7fab23bf2096d9feaae8a \ |
24 | 23 | |
25 | 24 | depends_build port:autoconf \ |
26 | 25 | port:automake |
27 | | |
28 | | depends_lib port:tcl \ |
29 | | port:tk \ |
30 | | port:otcl |
31 | | |
32 | | patchfiles conf_configure.in.fns.patch \ |
33 | | conf_configure.in.Tcl.patch |
| 26 | depends_lib port:otcl |
34 | 27 | |
35 | 28 | pre-configure { |
36 | | system "cd ${worksrcpath} && ${prefix}/bin/aclocal && ${prefix}/bin/autoconf" |
37 | | } |
38 | | |
39 | | configure.args --with-Tcl=${prefix} \ |
40 | | --with-tcl=${prefix} --with-tcl-ver=${tclmaj} \ |
41 | | --with-tk=${prefix} --with-tk-ver=${tclmaj} \ |
42 | | --with-otcl=${prefix} \ |
43 | | --prefix=${prefix} \ |
44 | | CPPFLAGS='-I${prefix}/include -I${workpath}/tcl${tclv}/generic/' \ |
45 | | CFLAGS='-I${prefix}/include -I${workpath}/tcl${tclv}/generic/' \ |
46 | | LDFLAGS='-L${prefix}/lib' |
47 | | |
48 | | post-configure { |
49 | | reinplace "s|@V_TCLSH@|${prefix}/bin/tclsh8.4|g" \ |
50 | | ${worksrcpath}/Makefile |
51 | | reinplace "s|@V_LIBRARY_TCL@|${prefix}/lib/tcl8.4|g" \ |
52 | | ${worksrcpath}/Makefile |
53 | | reinplace "s|-ltk8.4|-ltcl8.4 -ltk8.4|g" \ |
54 | | ${worksrcpath}/Makefile |
55 | | reinplace "s|http2.4|http2.5|g" \ |
56 | | ${worksrcpath}/Makefile |
57 | | reinplace "s|@V_TCL_LIBRARY_FILES@|\$(TCL_84_LIBRARY_FILES)|g" \ |
58 | | ${worksrcpath}/Makefile |
| 29 | system -W ${worksrcpath} "${prefix}/bin/aclocal && ${prefix}/bin/autoconf" |
59 | 30 | } |
60 | 31 | |
61 | 32 | build.target all |
62 | 33 | |
63 | | post-build { |
| 34 | post-build { |
64 | 35 | system "/usr/bin/ranlib ${worksrcpath}/libtclcl.a" |
65 | 36 | } |
66 | 37 | |
67 | | destroot { |
68 | | eval xinstall -m 0644 [glob -directory ${worksrcpath} *.h] ${destroot}${prefix}/include |
| 38 | destroot { |
| 39 | #eval xinstall -m 0644 [glob -directory ${worksrcpath} *.h] ${destroot}${prefix}/include |
69 | 40 | xinstall -m 0755 ${worksrcpath}/tcl2c++ ${destroot}${prefix}/bin |
70 | 41 | xinstall -m 0644 ${worksrcpath}/libtclcl.a ${destroot}${prefix}/lib |
71 | 42 | } |