# -*- 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
PortGroup conflicts_build 1.0
# Please keep the magic and magic-devel ports as similar as possible.
set branch [join [lrange [split ${version} .] 0 1] .]
# mostly very permissively licensed, but includes a copy of GNU readline
maintainers {ryandesign @ryandesign} openmaintainer
description A VLSI Layout System
long_description Magic is a venerable VLSI layout tool, written in the \
1980's at Berkeley. Magic is widely cited as being the \
easiest tool to use for circuit layout, even for people \
who ultimately rely on commercial tools for their product \
homepage http://opencircuitdesign.com/magic/
master_sites ${homepage}archive/
distname magic-${version}
path:lib/pkgconfig/cairo.pc:cairo \
require_active_variants tk x11
checksums rmd160 e8d1d91ddd3ce70b4bab079eca221d05b3a63f7c \
sha256 45364ee1a7244b90bb7eb3fc8bf5a0a9871d63f30d36aeeee175124ff260905f \
conflicts_build gnome-keyring
autoreconf.dir ${worksrcpath}/scripts
build.env X11_LDFLAGS=-L${prefix}/lib
# The build and install don't notice when essential files don't get built,
# so we must exit for it when it fails. #32934
foreach f {magic/tclmagic.dylib} {
if {![file exists ${worksrcpath}/${f}]} {
return -code error "${f} did not get built"