source: trunk/dports/x11/blt/Portfile

Last change on this file was 125738, checked in by mf2k@…, 3 years ago

adodb argus-monitor base blt cacti cdpr doclifter eventlog expect gkrellm honeyd iwidgets kchmviewer libdnsres monarch moodss moomps nagios nagios-plugins nedi netmrg network-weathermap nfdump nfsen nrg nrpe nsca ntop p5-archive-zip p5-cgi p5-cgi-speedycgi p5-convert-asn1 p5-libintl-perl p5-mhonarc p5-net p5-perl-ldap rancid rrdtool scotty sendpage smokeping snort sympa syslog-ng tclx tftp-hpa tktable uplog vm-pop3d xserve-raid-tools zabbix: Ports abandoned by markd. (#44782)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 4.9 KB
Line 
1# $Id: Portfile 125738 2014-09-25 14:43:03Z ryandesign@macports.org $
2PortSystem      1.0
3
4name                    blt
5version                 2.4z
6revision                5
7categories              x11
8license                 MIT
9maintainers             nomaintainer
10description             BLT is an extension to the Tk toolkit, adding new widgets, \
11                        geometry managers, and miscellaneous commands.
12long_description        ${description}
13 
14homepage                http://blt.sourceforge.net/
15platforms               darwin
16
17master_sites            sourceforge
18distname                BLT${version}
19worksrcdir              blt${version}
20checksums               md5 aa2ed73080f3005d9c2a3b5e57ab1eff
21
22depends_build           port:xorg-libX11 \
23                        port:tcl \
24                        port:tk
25
26use_parallel_build      no
27
28configure.optflags      -O3
29configure.cflags-append -fno-common -DUSE_INTERP_RESULT
30
31configure.args          --exec_prefix=${prefix} \
32                        --bindir=${prefix}/bin \
33                        --includedir=${prefix}/include \
34                        --libdir=${prefix}/lib \
35                        --mandir=${prefix}/share/man \
36                        --with-tcllibs=${prefix}/lib \
37                        --with-tklibs=${prefix}/lib \
38                        --with-tclincls=${prefix}/include \
39                        --with-tkincls=${prefix}/include \
40                        --with-tcl=${prefix} \
41                        --with-tk=${prefix}
42
43patchfiles              patch-configure \
44                        patch-Makefile.in \
45                        patch-library-Makefile.in \
46                        patch-src-Makefile.in \
47                        patch-src-shared-Makefile.in \
48                        patch-library-pkgIndex.tcl.in \
49                        patch-demos-Makefile.in \
50                        blt-2.4z-tcl8.5-fix.patch \
51                        blt2.4z-noexactversion.patch \
52                        blt-x86_64.patch \
53                        patch-tk-8.6 \
54                        patch-man-Makefile.in
55
56post-patch {
57        reinplace "s|__DESTROOT__|${destroot}|g" \
58                ${worksrcpath}/Makefile.in \
59                ${worksrcpath}/src/Makefile.in \
60                ${worksrcpath}/src/shared/Makefile.in \
61                        ${worksrcpath}/demos/Makefile.in \
62                        ${worksrcpath}/library/Makefile.in \
63                        ${worksrcpath}/man/Makefile.in
64
65        eval reinplace "s|../src/bltwish|${prefix}/bin/bltwish|g" \
66                [glob ${worksrcpath}/demos/*.tcl] \
67                [glob ${worksrcpath}/demos/scripts/*.tcl]
68}
69
70post-destroot {
71        system "cd ${destroot}${prefix}/lib && ln -sf libBLT.2.4.dylib libBLT.2.dylib"
72        system "cd ${destroot}${prefix}/lib && ln -sf libBLT.2.4.dylib libBLT.dylib"
73        system "cd ${destroot}${prefix}/lib && ln -sf libBLTlite.2.4.dylib libBLTlite.2.dylib"
74        system "cd ${destroot}${prefix}/lib && ln -sf libBLTlite.2.4.dylib libBLTlite.dylib"
75   
76    # These manpages conflict with those installed by tk.
77    # blt's busy.n and tk's busy.n appear to describe the same function so I don't mind deleting blt's.
78    delete ${destroot}${prefix}/share/man/mann/busy.n
79    # blt's bitmap.n and tk's bitmap.n don't appear to be related at all so I'm keeping and renaming blt's.
80    move ${destroot}${prefix}/share/man/mann/bitmap.n ${destroot}${prefix}/share/man/mann/blt-bitmap.n
81}
82
83pre-activate {
84    # blt 2.4z_4 and earlier installed some items directly to ${prefix}; remove them if found.
85    # To be removed after January 2014.
86    foreach file {
87        lib/blt2.4/bltCanvEps.pro
88        lib/blt2.4/bltGraph.pro
89        lib/blt2.4/dnd.tcl
90        lib/blt2.4/dragdrop.tcl
91        lib/blt2.4/graph.tcl
92        lib/blt2.4/hierbox.tcl
93        lib/blt2.4/pkgIndex.tcl
94        lib/blt2.4/tabnotebook.tcl
95        lib/blt2.4/tabset.tcl
96        lib/blt2.4/tclIndex
97        lib/blt2.4/treeview.tcl
98        lib/blt2.4/treeview.xbm
99        lib/blt2.4/treeview_m.xbm
100        lib/blt2.4/dd_protocols/dd-color.tcl
101        lib/blt2.4/dd_protocols/dd-file.tcl
102        lib/blt2.4/dd_protocols/dd-number.tcl
103        lib/blt2.4/dd_protocols/dd-text.tcl
104        lib/blt2.4/dd_protocols/tclIndex
105        man/man3/Blt_Tree.3
106        man/man3/Blt_TreeCreate.3
107        man/man3/Blt_TreeCreateNode.3
108        man/man3/Blt_TreeDeleteNode.3
109        man/man3/Blt_TreeExists.3
110        man/man3/Blt_TreeGetNode.3
111        man/man3/Blt_TreeGetToken.3
112        man/man3/Blt_TreeName.3
113        man/man3/Blt_TreeNodeId.3
114        man/man3/Blt_TreeReleaseToken.3
115        man/mann/BLT.n
116        man/mann/barchart.n
117        man/mann/beep.n
118        man/mann/bgexec.n
119        man/mann/bitmap.n
120        man/mann/bltdebug.n
121        man/mann/busy.n
122        man/mann/container.n
123        man/mann/cutbuffer.n
124        man/mann/dragdrop.n
125        man/mann/eps.n
126        man/mann/graph.n
127        man/mann/hierbox.n
128        man/mann/hiertable.n
129        man/mann/htext.n
130        man/mann/spline.n
131        man/mann/stripchart.n
132        man/mann/table.n
133        man/mann/tabset.n
134        man/mann/tile.n
135        man/mann/tree.n
136        man/mann/treeview.n
137        man/mann/vector.n
138        man/mann/watch.n
139        man/mann/winop.n
140    } {
141        set filepath ${prefix}/${file}
142        if {[file exists ${filepath}] && [registry_file_registered ${filepath}] == "0"} {
143            if {[catch {delete ${filepath}}]} {
144                ui_warn "Cannot delete ${filepath}; please remove it manually"
145            }
146        }
147    }
148}
Note: See TracBrowser for help on using the repository browser.