[120742] trunk/dports/x11

sean at macports.org sean at macports.org
Thu Jun 5 20:54:49 PDT 2014


Revision: 120742
          https://trac.macports.org/changeset/120742
Author:   sean at macports.org
Date:     2014-06-05 20:54:49 -0700 (Thu, 05 Jun 2014)
Log Message:
-----------
togl: add new port

Added Paths:
-----------
    trunk/dports/x11/togl/
    trunk/dports/x11/togl/Portfile

Added: trunk/dports/x11/togl/Portfile
===================================================================
--- trunk/dports/x11/togl/Portfile	                        (rev 0)
+++ trunk/dports/x11/togl/Portfile	2014-06-06 03:54:49 UTC (rev 120742)
@@ -0,0 +1,58 @@
+# -*- 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           Togl-1.7.tar.gz \
+                    rmd160  48efbcd465372db291c91a132b1f60e81b60b1ac \
+                    sha256  56b7580e3001cc4d334ff31bf6b9d730d05abb2faba7a3dbbc1c959ff7f7bcaf \
+                    tcl8.6.1-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
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140605/54b84f8f/attachment.html>


More information about the macports-changes mailing list