source: trunk/dports/lang/itcl/Portfile

Last change on this file was 91510, checked in by jeremyhu@…, 5 years ago

misc: Drop -p from file mkdir

file mkdir is already -p. Adding the -p just results in a -p
turd directory being created in your pwd.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# $Id: Portfile 91510 2012-04-03 21:59:59Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name                    itcl
6version                 3.4b1
7categories              lang
8license                 Tcl/Tk
9maintainers             nomaintainer
10description             Object oriented extension to Tcl.
11long_description        ${description}
12homepage                http://incrtcl.sourceforge.net/
13platforms               darwin
14master_sites            sourceforge:incrtcl:itcl \
15                        sourceforge:tcl:tcl
16dist_subdir             tcltk
17distname                ${name}${version}
18# Set tclv and md5 checksum to the current MacPorts Tcl port version, though port doesn't
19# break if they aren't in sync.
20
21set tclv                8.5.9
22
23distfiles               ${distname}.tar.gz:itcl \
24                                tcl${tclv}-src.tar.gz:tcl
25checksums               ${distname}.tar.gz md5 e4c97750c08ab47e960b91911fdd0132 \
26                                tcl${tclv}-src.tar.gz md5 8512d8db3233041dd68a81476906012a
27depends_build           port:tcl port:tk
28build.args              CPPFLAGS=-I${prefix}/include
29worksrcdir              ${name}3.4
30
31configure.env           TCLROOT=${prefix}
32configure.cflags        "-I${workpath}/tcl${tclv}/generic -I${workpath}/tcl${tclv}/unix"
33configure.ldflags-append        "-tcl8.5"
34
35configure.args          --with-tcl=${prefix}/lib
36
37configure.universal_args-delete --disable-dependency-tracking
38
39post-patch {
40        reinplace "s|@itcl_LIB_FILE@|${prefix}/lib/libitcl3.4.dylib|g" \
41               ${worksrcpath}/itclConfig.sh.in
42        reinplace "s|@PACKAGE_VERSION@|3.4|g" \
43                ${worksrcpath}/itclConfig.sh.in
44        reinplace "s|@itcl_BUILD_LIB_SPEC@|-L${prefix}/lib -litcl|g" \
45                ${worksrcpath}/itclConfig.sh.in
46        reinplace "s|@itcl_LIB_SPEC@|-L${prefix}/lib -litcl|g" \
47                ${worksrcpath}/itclConfig.sh.in
48        reinplace "s|\"@PKG_LIB_FILE@\"|.. @PKG_LIB_FILE@|g" \
49                ${worksrcpath}/pkgIndex.tcl.in
50}
51
52post-build {
53                system "ranlib ${worksrcpath}/libitclstub3.4.a"
54}
55
56destroot {
57        set _d ${destroot}${prefix}
58        set _w ${worksrcpath}
59        file mkdir ${_d}/lib/itcl3.4
60        xinstall -m 755 ${_w}/itclConfig.sh ${_d}/lib/itcl3.4
61        file copy -force ${_w}/pkgIndex.tcl ${_d}/lib/itcl3.4
62        file copy -force ${_w}/library/itcl.tcl ${_d}/lib/itcl3.4
63        file copy -force ${_w}/libitcl3.4.dylib ${_d}/lib
64        file copy -force ${_w}/libitclstub3.4.a ${_d}/lib
65
66        file mkdir ${_d}/include
67        foreach x {itcl.h itclDecls.h itclInt.h itclIntDecls.h } {
68                file copy -force ${_w}/generic/$x ${_d}/include
69        }
70
71        foreach x [glob ${_w}/doc/*.n] {
72                file copy -force $x ${_d}/share/man/mann
73        }
74}
Note: See TracBrowser for help on using the repository browser.