# -*- 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
PortGroup active_variants 1.1
# The last release of Togl was 2008 (version 2.0).
# The last CVS commit was 2010 (see http://togl.cvs.sourceforge.net).
# The developers of Netgen seem to be updating a local copy and calling it version 2.1.
# See https://github.com/NGSolve/netgen/tree/master/ng.
github.setup NGSolve netgen 6.2.1810 v
maintainers {mcalhoun @MarcusCalhoun-Lopez} openmaintainer
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/
checksums rmd160 f1d335ca6c3dd54db7336401ed6c4903e9f90b04 \
sha256 2edb380cb0f8e829fdf8c6aa18249f095c03dd5fbffbbf3b8d2420a16fb6ec00 \
worksrcdir ${worksrcdir}/ng/Togl${version}
depends_lib-append port:tcl \
--with-tcl=${prefix}/lib \
configure.universal_args-delete --disable-dependency-tracking
variant quartz conflicts x11 {
require_active_variants tk quartz
# see https://github.com/NGSolve/netgen/blob/master/CMakeLists.txt#L250
configure.cppflags-append \
# see https://github.com/NGSolve/netgen/blob/master/CMakeLists.txt#L221
configure.ldflags-append \
-undefined dynamic_lookup
variant x11 conflicts quartz {
require_active_variants tk x11
# see https://github.com/NGSolve/netgen/blob/master/CMakeLists.txt#L252
configure.cppflags-append \
if {![variant_isset quartz]} {