# -*- 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 PortSystem 1.0 PortGroup active_variants 1.1 name tkimg version 1.4.16 revision 0 categories graphics license Tcl/Tk maintainers {mcalhoun @MarcusCalhoun-Lopez} {gmx.us:chrischavez @chrstphrchvz} openmaintainer homepage https://tkimg.sourceforge.net description adds a lot of image formats to Tcl/Tk long_description The \"Img\" package adds a lot of image formats to Tcl/Tk. platforms darwin master_sites sourceforge:tkimg/tkimg/[join [lrange [split ${version} .] 0 1] .]/tkimg%20${version} distname Img-${version}-Source extract.rename yes checksums rmd160 6b4fb4bd3558990ffc8aa4bb30246973027b5a7c \ sha256 d99af4835fe3e20960817c7a1b5235dcfaa97c642593cce50bdb64c5827cd321 \ size 12129708 # ensure tkimg works when tk is installed +quartz patchfiles-append patch-quartz.diff # tkimg builds local copies of jpeg, libpng, and tiff # Other package management systems have patches that allow tkimg to use external (MacPorts) versions. # Unfortunately, these patches are highly intrusive and difficult to maintain. # This really is an upstream issue. # See # https://gitweb.gentoo.org/repo/gentoo.git/tree/dev-tcltk/tkimg # https://packages.debian.org/sid/libtk-img # for dtplite depends_build-append port:tcllib depends_lib-append port:tcl \ port:tk \ port:zlib configure.args-append --with-tcl=${prefix}/lib \ --with-tk=${prefix}/lib destroot.destdir INSTALL_ROOT=${destroot} variant quartz conflicts x11 { require_active_variants tk quartz } variant x11 conflicts quartz { require_active_variants tk x11 } if {![variant_isset x11] && ![variant_isset quartz]} { default_variants +x11 } livecheck.url https://wiki.tcl-lang.org/page/Img livecheck.regex {>(\d+\.\d+\.\d+)<}