| 1 | # $Id: Portfile 50980 2009-05-14 19:41:55Z and.damore@macports.org $ |
|---|
| 2 | PortSystem 1.0 |
|---|
| 3 | |
|---|
| 4 | name blt |
|---|
| 5 | version 2.4z |
|---|
| 6 | revision 2 |
|---|
| 7 | categories x11 |
|---|
| 8 | maintainers markd |
|---|
| 9 | description BLT is an extension to the Tk toolkit, adding new widgets, \ |
|---|
| 10 | geometry managers, and miscellaneous commands. |
|---|
| 11 | long_description ${description} |
|---|
| 12 | |
|---|
| 13 | homepage http://blt.sourceforge.net/ |
|---|
| 14 | platforms darwin |
|---|
| 15 | |
|---|
| 16 | master_sites sourceforge |
|---|
| 17 | distname BLT${version} |
|---|
| 18 | checksums md5 aa2ed73080f3005d9c2a3b5e57ab1eff |
|---|
| 19 | |
|---|
| 20 | depends_build port:tcl \ |
|---|
| 21 | port:tk |
|---|
| 22 | |
|---|
| 23 | configure.cppflags "-L${prefix}/lib" |
|---|
| 24 | configure.cflags "-O3 -fno-common" |
|---|
| 25 | |
|---|
| 26 | configure.args --exec_prefix=${prefix} \ |
|---|
| 27 | --bindir=${prefix}/bin \ |
|---|
| 28 | --includedir=${prefix}/include \ |
|---|
| 29 | --libdir=${prefix}/lib \ |
|---|
| 30 | --with-tcllibs=${prefix}/lib \ |
|---|
| 31 | --with-tklibs=${prefix}/lib \ |
|---|
| 32 | --with-tclincls=${prefix}/include \ |
|---|
| 33 | --with-tkincls=${prefix}/include \ |
|---|
| 34 | --with-tcl=${prefix} \ |
|---|
| 35 | --with-tk=${prefix} |
|---|
| 36 | |
|---|
| 37 | patchfiles patch-configure \ |
|---|
| 38 | patch-Makefile.in \ |
|---|
| 39 | patch-library-Makefile.in \ |
|---|
| 40 | patch-src-Makefile.in \ |
|---|
| 41 | patch-src-shared-Makefile.in \ |
|---|
| 42 | patch-library-pkgIndex.tcl.in \ |
|---|
| 43 | patch-demos-Makefile.in |
|---|
| 44 | |
|---|
| 45 | post-patch { |
|---|
| 46 | reinplace "s|__DESTROOT__|${destroot}|g" \ |
|---|
| 47 | ${worksrcpath}/Makefile.in \ |
|---|
| 48 | ${worksrcpath}/src/Makefile.in \ |
|---|
| 49 | ${worksrcpath}/src/shared/Makefile.in \ |
|---|
| 50 | ${worksrcpath}/demos/Makefile.in |
|---|
| 51 | |
|---|
| 52 | eval reinplace "s|../src/bltwish|${prefix}/bin/bltwish|g" \ |
|---|
| 53 | [glob ${worksrcpath}/demos/*.tcl] \ |
|---|
| 54 | [glob ${worksrcpath}/demos/scripts/*.tcl] |
|---|
| 55 | } |
|---|
| 56 | |
|---|
| 57 | post-destroot { |
|---|
| 58 | system "cd ${destroot}${prefix}/lib && ln -sf libBLT.2.4.dylib libBLT.2.dylib" |
|---|
| 59 | system "cd ${destroot}${prefix}/lib && ln -sf libBLT.2.4.dylib libBLT.dylib" |
|---|
| 60 | system "cd ${destroot}${prefix}/lib && ln -sf libBLTlite.2.4.dylib libBLTlite.2.dylib" |
|---|
| 61 | system "cd ${destroot}${prefix}/lib && ln -sf libBLTlite.2.4.dylib libBLTlite.dylib" |
|---|
| 62 | } |
|---|