Ticket #42057: Portfile.4

File Portfile.4, 2.3 KB (added by seanfarley (Sean Farley), 10 years ago)

togl

Line 
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
4PortSystem          1.0
5
6name                Togl
7version             1.7
8platforms           darwin
9categories          x11
10license             permissive
11maintainers         nomaintainer
12description         A Tcl/Tk widget for OpenGL rendering
13long_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
17homepage            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.
21set tclv            8.6.1
22master_sites        sourceforge:/project/togl/Togl/${version}:togl \
23                    sourceforge:project/tcl/Tcl/${tclv}:tcl
24
25dist_subdir         tcltk
26
27distfiles           ${distname}.tar.gz:togl \
28                    tcl${tclv}-src.tar.gz:tcl
29
30checksums           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
37depends_lib         port:tcl port:tk port:xorg-libXmu port:mesa
38
39configure.args      --mandir=${prefix}/share/man \
40                    --with-tcl=${prefix}/lib \
41                    --with-tk=${prefix}/lib \
42                    --with-tclinclude=${workpath}/tcl${tclv}/generic/
43configure.cppflags-append \
44                    -I${workpath}/tcl${tclv}/generic \
45                    -I${workpath}/tcl${tclv}/unix
46configure.ldflags-append \
47                    -ltclstub8.6
48
49test.run            yes
50test.target         test
51
52post-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}