# -*- 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: Portfile 80038 2011-07-03 10:59:43Z ryandesign@macports.org $

PortSystem                      1.0
PortGroup                       muniversal 1.0

name                            giflib
version                         4.1.6
set major                       [lindex [split ${version} .] 0]
revision                        1
categories                      graphics
maintainers                     ryandesign
license                         MIT
platforms                       darwin
homepage                        http://sourceforge.net/projects/giflib/
master_sites                    sourceforge:project/${name}/${name}%20${major}.x/${name}-${version}
use_bzip2                       yes

description                     GIF library using patented LZW algorithm

long_description                GIF loading and saving shared library. \
                                Uses the LZW algorithm.

checksums                       md5     7125644155ae6ad33dbc9fc15a14735f \
                                sha1    22680f604ec92065f04caf00b1c180ba74fb8562 \
                                rmd160  bdb99f7048a79b9e771b069f90ac151537011d19

patchfiles                      patch-gif_lib.h.diff

depends_lib                     port:xorg-libsm \
                                port:xorg-libX11

use_parallel_build              yes

variant no_x11 {
        depends_lib-delete      port:xorg-libsm
        depends_lib-delete      port:xorg-libX11
        configure.args-append   --without-x
}

livecheck.type                  sourceforge
livecheck.regex                 /${name}-(\[0-9.\]+)${extract.suffix}
