# -*- 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 name giflib version 4.2.3 revision 1 set major [lindex [split ${version} .] 0] categories graphics maintainers {ryandesign @ryandesign} openmaintainer license MIT homepage https://sourceforge.net/projects/giflib/ master_sites sourceforge:project/giflib/giflib-${major}.x use_bzip2 yes description GIF library using patented LZW algorithm long_description GIF loading and saving shared library. \ Uses the LZW algorithm. checksums rmd160 34c30ace20155a61446d1561af44e3ad6329b49a \ sha256 0ac8d56726f77c8bc9648c93bbb4d6185d32b15ba7bdb702415990f96f3cb766 \ size 560968 patchfiles patch-gif_lib.h.diff \ patch-lib-gif_hash.c.diff configure.args --disable-x11 use_parallel_build yes set docdir ${prefix}/share/doc/${name} post-destroot { xinstall -d ${destroot}${docdir} xinstall -W ${worksrcpath} -m 0644 AUTHORS BUGS COPYING NEWS README TODO api.txt history.txt ${destroot}${docdir} xinstall -m 0444 {*}[glob ${worksrcpath}/doc/*.1] ${destroot}${prefix}/share/man/man1 } variant doc description {Install HTML documentation} { depends_build-append port:xmlto post-destroot { xinstall -d ${destroot}${docdir}/html xinstall -m 0644 {*}[glob ${worksrcpath}/doc/*.html] ${destroot}${docdir}/html } } if {![variant_isset doc]} { patchfiles-append patch-no-docs.diff } variant x11 description {Include gif2x11 tool for displaying GIF files in an X window} { depends_lib-append port:xorg-libsm \ port:xorg-libX11 configure.args-delete --disable-x11 } livecheck.regex /${name}-(${major}\\.\[0-9.\]+)${extract.suffix}