# -*- 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                feh
version             2.1
categories          graphics
platforms           darwin
maintainers         nomaintainer
license             MIT

description         Fast lightweight image viewer

long_description    Simple and fast image viewer using imlib2 with file list \
                    and recursive file opening.

homepage            http://feh.finalrewind.org/
master_sites        ${homepage}
use_bzip2           yes

checksums           rmd160  3b6ae3d88126a1a866d246e6be72962f65d1f80a \
                    sha256  8d74a5f8a3aa889c7db5fcbf8ce8a3124782f5889f9f4afe21935a11756a4bbc

depends_lib         port:giblib \
                    port:imlib2 \
                    port:jpeg \
                    port:libpng \
                    port:zlib \
                    port:curl \
                    port:xorg-libXinerama

patchfiles          patch-src-Makefile.diff

use_configure       no

variant universal {}

build.args          PREFIX=${prefix}

build.env           CC="${configure.cc}" \
                    CFLAGS="${configure.cflags} [get_canonical_archflags cc]" \
                    CPPFLAGS="${configure.cppflags}" \
                    LDFLAGS="${configure.ldflags} [get_canonical_archflags ld]"

destroot.args       PREFIX=${prefix}