1 | # -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 |
---|
2 | # $Id$ |
---|
3 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name Togl |
---|
7 | version 1.7 |
---|
8 | platforms darwin |
---|
9 | categories x11 |
---|
10 | license permissive |
---|
11 | maintainers nomaintainer |
---|
12 | description A Tcl/Tk widget for OpenGL rendering |
---|
13 | long_description Togl is a Tk widget for OpenGL rendering. Togl was \ |
---|
14 | originally based on OGLTK, written by Benjamin Bederson \ |
---|
15 | at the University of New Mexico. |
---|
16 | |
---|
17 | homepage http://togl.sourceforge.net/ |
---|
18 | |
---|
19 | # Set tclv and md5 checksum to the current MacPorts Tcl port version, though |
---|
20 | # port doesn't break if they aren't in sync. |
---|
21 | set tclv 8.6.1 |
---|
22 | master_sites sourceforge:/project/togl/Togl/${version}:togl \ |
---|
23 | sourceforge:project/tcl/Tcl/${tclv}:tcl |
---|
24 | |
---|
25 | dist_subdir tcltk |
---|
26 | |
---|
27 | distfiles ${distname}.tar.gz:togl \ |
---|
28 | tcl${tclv}-src.tar.gz:tcl |
---|
29 | |
---|
30 | checksums Togl-1.7.tar.gz \ |
---|
31 | rmd160 48efbcd465372db291c91a132b1f60e81b60b1ac \ |
---|
32 | sha256 56b7580e3001cc4d334ff31bf6b9d730d05abb2faba7a3dbbc1c959ff7f7bcaf \ |
---|
33 | tcl8.6.1-src.tar.gz \ |
---|
34 | rmd160 fbb181d26bb28fe9413bc2e07f333571b8e7e190 \ |
---|
35 | sha256 16ee769248e64ba1cae6b4834fcc4e4edd7470d881410e8d58f7dd1434343514 |
---|
36 | |
---|
37 | depends_lib port:tcl port:tk port:xorg-libXmu port:mesa |
---|
38 | |
---|
39 | configure.args --mandir=${prefix}/share/man \ |
---|
40 | --with-tcl=${prefix}/lib \ |
---|
41 | --with-tk=${prefix}/lib \ |
---|
42 | --with-tclinclude=${workpath}/tcl${tclv}/generic/ |
---|
43 | configure.cppflags-append \ |
---|
44 | -I${workpath}/tcl${tclv}/generic \ |
---|
45 | -I${workpath}/tcl${tclv}/unix |
---|
46 | configure.ldflags-append \ |
---|
47 | -ltclstub8.6 |
---|
48 | |
---|
49 | test.run yes |
---|
50 | test.target test |
---|
51 | |
---|
52 | post-destroot { |
---|
53 | eval move [glob ${destroot}${prefix}/lib/Togl${version}/*] ${destroot}${prefix}/lib/ |
---|
54 | delete ${destroot}${prefix}/lib/Togl${version} |
---|
55 | set libpath ${prefix}/lib/libTogl |
---|
56 | system "install_name_tool -id ${libpath}1.7.dylib ${destroot}${libpath}1.7.dylib" |
---|
57 | ln -s libTogl1.7.dylib ${destroot}${libpath}.dylib |
---|
58 | } |
---|