# -*- 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 # $Id$ PortSystem 1.0 name Togl version 1.7 platforms darwin categories x11 license permissive maintainers nomaintainer description A Tcl/Tk widget for OpenGL rendering long_description Togl is a Tk widget for OpenGL rendering. Togl was \ originally based on OGLTK, written by Benjamin Bederson \ at the University of New Mexico. homepage http://togl.sourceforge.net/ # Set tclv and md5 checksum to the current MacPorts Tcl port version, though # port doesn't break if they aren't in sync. set tclv 8.6.1 master_sites sourceforge:project/togl/Togl/${version}:togl \ sourceforge:project/tcl/Tcl/${tclv}:tcl dist_subdir tcltk distfiles ${distname}.tar.gz:togl \ tcl${tclv}-src.tar.gz:tcl checksums ${distname}.tar.gz \ rmd160 48efbcd465372db291c91a132b1f60e81b60b1ac \ sha256 56b7580e3001cc4d334ff31bf6b9d730d05abb2faba7a3dbbc1c959ff7f7bcaf \ tcl${tclv}-src.tar.gz \ rmd160 fbb181d26bb28fe9413bc2e07f333571b8e7e190 \ sha256 16ee769248e64ba1cae6b4834fcc4e4edd7470d881410e8d58f7dd1434343514 depends_lib port:tcl port:tk port:xorg-libXmu port:mesa configure.args --mandir=${prefix}/share/man \ --with-tcl=${prefix}/lib \ --with-tk=${prefix}/lib \ --with-tclinclude=${workpath}/tcl${tclv}/generic/ configure.cppflags-append \ -I${workpath}/tcl${tclv}/generic \ -I${workpath}/tcl${tclv}/unix configure.ldflags-append \ -ltclstub8.6 test.run yes test.target test post-destroot { eval move [glob ${destroot}${prefix}/lib/Togl${version}/*] ${destroot}${prefix}/lib/ delete ${destroot}${prefix}/lib/Togl${version} set libpath ${prefix}/lib/libTogl system "install_name_tool -id ${libpath}1.7.dylib ${destroot}${libpath}1.7.dylib" ln -s libTogl1.7.dylib ${destroot}${libpath}.dylib }