# -*- 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 giflib version 4.2.3 set major [lindex [split ${version} .] 0] categories graphics maintainers ryandesign openmaintainer license MIT platforms darwin homepage http://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 patchfiles patch-gif_lib.h.diff configure.args --disable-x11 use_parallel_build yes set docdir ${prefix}/share/doc/${name} post-destroot { xinstall -d ${destroot}${docdir} xinstall -W ${worksrcpath} AUTHORS BUGS COPYING NEWS README TODO api.txt history.txt ${destroot}${docdir} xinstall -m 644 {*}[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 644 {*}[glob ${worksrcpath}/doc/*.html] ${destroot}${docdir}/html } } if {![variant_isset doc]} { patchfiles-append patch-no-docs.diff } variant x11 { depends_lib-append port:xorg-libsm \ port:xorg-libX11 configure.args-delete --disable-x11 } default_variants +x11 livecheck.regex /${name}-(${major}\\.\[0-9.\]+)${extract.suffix}