# -*- 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 106102 2013-05-14 23:51:45Z ryandesign@macports.org $

PortSystem              1.0

name                    evas
epoch                   2
version                 1.7.7
categories              devel x11
platforms               darwin
maintainers             ryandesign openmaintainer
license                 BSD

description             Evas is a hardware-accelerated canvas API for X11.

long_description        Evas is a hardware-accelerated canvas API for \
                        X-Windows that can draw anti-aliased text, smooth \
                        super and sub-sampled images, alpha-blend, as well \
                        as drop down to using normal X11 primitives such as \
                        pixmaps, lines and rectangles for speed if your CPU \
                        or graphics hardware are too slow.

checksums               rmd160  306b36018c5ab07712553a554e4a2deac13854ed \
                        sha256  a53ba1f944db4369e56cb80ea782096d2135229711982c8adf95c7abe8f83fea

homepage                http://trac.enlightenment.org/e/wiki/Evas
master_sites            http://download.enlightenment.org/releases/
use_bzip2               yes

depends_build           port:pkgconfig \
                        port:mesa

depends_lib             port:eet \
                        port:fribidi \
                        port:libpng \
                        port:librsvg \
                        port:tiff \
                        path:include/gif_lib.h:giflib

configure.args          --disable-doc \
                        --disable-silent-rules \
                        --enable-buffer

# http://trac.enlightenment.org/e/ticket/503
#                        --enable-gl-x11

use_parallel_build      yes

platform darwin i386 {
    # http://trac.enlightenment.org/e/ticket/942
    if {${os.major} >= 10} {
        # Clang has immintrin.h which is needed for evas to build with SSE3 optimizations.
        configure.compiler clang
    } else {
        configure.args-append --disable-cpu-sse3
    }
}

livecheck.type          regex
livecheck.url           [lindex ${master_sites} 0]
livecheck.regex         ${name}-(\[0-9a-z.\]+)${extract.suffix}
