# -*- 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 makefile 1.0 name giflib5 version 5.2.2 revision 2 set major [lindex [split ${version} .] 0] categories graphics maintainers {mps @Schamschula} openmaintainer license MIT homepage https://sourceforge.net/projects/giflib/ master_sites sourceforge:project/giflib distname giflib-${version} description GIF library using patented LZW algorithm long_description GIF loading and saving shared library. \ Uses the LZW algorithm. checksums rmd160 97aac3bcddf1c725b8ea9fd4169fad0810ce7895 \ sha256 be7ffbd057cadebe2aa144542fd90c6838c6a083b5e8a9048b8ee3b66b29d5fb \ size 447175 set docdir ${prefix}/share/doc/${name} patchfiles patch-Makefile.diff post-patch { reinplace "s|%PREFIX%|${prefix}|" ${worksrcpath}/Makefile } use_configure no use_parallel_build no build.args-append OFLAGS="${configure.optflags}" post-destroot { xinstall -d ${destroot}${docdir} xinstall -W ${worksrcpath} -m 0644 COPYING history.adoc NEWS README TODO ${destroot}${docdir} } 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 } } livecheck.regex giflib-(${major}\\.\[0-9.\]+)${extract.suffix}