Commits
Marcus Calhoun-Lopez authored f78dc17a02c
1 1 | PortSystem 1.0 |
2 2 | |
3 3 | name blt |
4 4 | version 2.4z |
5 5 | revision 5 |
6 6 | categories x11 |
7 7 | license MIT |
8 8 | maintainers nomaintainer |
9 9 | description BLT is an extension to the Tk toolkit, adding new widgets, \ |
10 - | geometry managers, and miscellaneous commands. |
10 + | geometry managers, and miscellaneous commands. |
11 11 | long_description ${description} |
12 - | |
12 + | |
13 13 | homepage http://blt.sourceforge.net/ |
14 14 | platforms darwin |
15 15 | |
16 16 | master_sites sourceforge |
17 - | distname BLT${version} |
18 - | worksrcdir blt${version} |
17 + | distname BLT${version} |
18 + | worksrcdir blt${version} |
19 19 | checksums md5 aa2ed73080f3005d9c2a3b5e57ab1eff |
20 20 | |
21 21 | depends_build port:xorg-libX11 \ |
22 - | port:tcl \ |
23 - | port:tk |
22 + | port:tcl \ |
23 + | port:tk |
24 24 | |
25 25 | use_parallel_build no |
26 26 | |
27 27 | configure.optflags -O3 |
28 28 | configure.cflags-append -fno-common -DUSE_INTERP_RESULT |
29 29 | |
30 - | configure.args --exec_prefix=${prefix} \ |
31 - | --bindir=${prefix}/bin \ |
32 - | --includedir=${prefix}/include \ |
33 - | --libdir=${prefix}/lib \ |
30 + | configure.args --exec_prefix=${prefix} \ |
31 + | --bindir=${prefix}/bin \ |
32 + | --includedir=${prefix}/include \ |
33 + | --libdir=${prefix}/lib \ |
34 34 | --mandir=${prefix}/share/man \ |
35 - | --with-tcllibs=${prefix}/lib \ |
36 - | --with-tklibs=${prefix}/lib \ |
37 - | --with-tclincls=${prefix}/include \ |
38 - | --with-tkincls=${prefix}/include \ |
35 + | --with-tcllibs=${prefix}/lib \ |
36 + | --with-tklibs=${prefix}/lib \ |
37 + | --with-tclincls=${prefix}/include \ |
38 + | --with-tkincls=${prefix}/include \ |
39 39 | --with-tcl=${prefix} \ |
40 40 | --with-tk=${prefix} |
41 41 | |
42 - | patchfiles patch-configure \ |
43 - | patch-Makefile.in \ |
44 - | patch-library-Makefile.in \ |
45 - | patch-src-Makefile.in \ |
46 - | patch-src-shared-Makefile.in \ |
47 - | patch-library-pkgIndex.tcl.in \ |
48 - | patch-demos-Makefile.in \ |
49 - | blt-2.4z-tcl8.5-fix.patch \ |
50 - | blt2.4z-noexactversion.patch \ |
42 + | patchfiles patch-configure \ |
43 + | patch-Makefile.in \ |
44 + | patch-library-Makefile.in \ |
45 + | patch-src-Makefile.in \ |
46 + | patch-src-shared-Makefile.in \ |
47 + | patch-library-pkgIndex.tcl.in \ |
48 + | patch-demos-Makefile.in \ |
49 + | blt-2.4z-tcl8.5-fix.patch \ |
50 + | blt2.4z-noexactversion.patch \ |
51 51 | blt-x86_64.patch \ |
52 52 | patch-tk-8.6 \ |
53 53 | patch-man-Makefile.in |
54 54 | |
55 55 | post-patch { |
56 56 | reinplace "s|__DESTROOT__|${destroot}|g" \ |
57 57 | ${worksrcpath}/Makefile.in \ |
58 - | ${worksrcpath}/src/Makefile.in \ |
59 - | ${worksrcpath}/src/shared/Makefile.in \ |
58 + | ${worksrcpath}/src/Makefile.in \ |
59 + | ${worksrcpath}/src/shared/Makefile.in \ |
60 60 | ${worksrcpath}/demos/Makefile.in \ |
61 61 | ${worksrcpath}/library/Makefile.in \ |
62 62 | ${worksrcpath}/man/Makefile.in |
63 63 | |
64 - | reinplace "s|../src/bltwish|${prefix}/bin/bltwish|g" \ |
64 + | reinplace "s|../src/bltwish|${prefix}/bin/bltwish|g" \ |
65 65 | {*}[glob ${worksrcpath}/demos/*.tcl] \ |
66 - | {*}[glob ${worksrcpath}/demos/scripts/*.tcl] |
66 + | {*}[glob ${worksrcpath}/demos/scripts/*.tcl] |
67 67 | } |
68 68 | |
69 69 | post-destroot { |
70 - | system "cd ${destroot}${prefix}/lib && ln -sf libBLT.2.4.dylib libBLT.2.dylib" |
71 - | system "cd ${destroot}${prefix}/lib && ln -sf libBLT.2.4.dylib libBLT.dylib" |
72 - | system "cd ${destroot}${prefix}/lib && ln -sf libBLTlite.2.4.dylib libBLTlite.2.dylib" |
73 - | system "cd ${destroot}${prefix}/lib && ln -sf libBLTlite.2.4.dylib libBLTlite.dylib" |
74 - | |
70 + | system "cd ${destroot}${prefix}/lib && ln -sf libBLT.2.4.dylib libBLT.2.dylib" |
71 + | system "cd ${destroot}${prefix}/lib && ln -sf libBLT.2.4.dylib libBLT.dylib" |
72 + | system "cd ${destroot}${prefix}/lib && ln -sf libBLTlite.2.4.dylib libBLTlite.2.dylib" |
73 + | system "cd ${destroot}${prefix}/lib && ln -sf libBLTlite.2.4.dylib libBLTlite.dylib" |
74 + | |
75 75 | # These manpages conflict with those installed by tk. |
76 76 | # blt's busy.n and tk's busy.n appear to describe the same function so I don't mind deleting blt's. |
77 77 | delete ${destroot}${prefix}/share/man/mann/busy.n |
78 78 | # 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. |
79 79 | move ${destroot}${prefix}/share/man/mann/bitmap.n ${destroot}${prefix}/share/man/mann/blt-bitmap.n |
80 80 | } |
81 81 | |
82 82 | conflicts tcllib |