# -*- 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

name                cegui
version             0.7.9
revision            6
checksums           rmd160  d776fd49a629248783b0d45b05ef8ad2804cca3b \
                    sha256  7c3b264def08b46de749c2acaba363e907479d924612436f3bd09da2e474bb8c \
                    size    9204644

categories          devel
maintainers         {ryandesign @ryandesign} openmaintainer

description         Crazy Eddie’s GUI System

long_description    {*}${description} is a free library for game developers \
                    that provides windowing and widgets for graphics APIs \
                    and engines where such functionality is not natively \
                    available, or is severely lacking.

homepage            http://cegui.org.uk
master_sites        sourceforge:project/crayzedsgui/CEGUI%20Mk-2/${version}
distname            CEGUI-${version}

depends_build       path:bin/pkg-config:pkgconfig

depends_lib         port:expat \
                    port:freeglut \
                    port:freeimage \
                    port:freetype \
                    port:libdevil \
                    port:libxml2 \
                    port:pcre \
                    port:tinyxml \
                    port:xorg-libice \
                    port:xorg-libsm

patchfiles          patch-cegui-include-CEGUIDynamicModule.h.diff \
                    patch-cegui-src-CEGUIDynamicModule.cpp.diff \
                    libxml2.patch \
                    tinyxml.patch \
                    dynamic_lookup-11.patch

# xercesc3 requires C++11, and cegui fails to build with a pre-C++11 compiler.
compiler.cxx_standard   2011

configure.args      --disable-corona \
                    --disable-external-glew \
                    --disable-irrlicht-renderer \
                    --disable-lua-module \
                    --disable-ogre-renderer \
                    --disable-python-module \
                    --disable-rapidxml \
                    --disable-samples \
                    --disable-silly \
                    --disable-stb \
                    --disable-tga \
                    --disable-xerces-c \
                    --enable-devil \
                    --enable-freeimage \
                    --enable-freetype \
                    --enable-null-renderer \
                    --enable-pcre \
                    --enable-tinyxml \
                    --with-x

livecheck.regex     /CEGUI-(\[0-9.\]+)[quotemeta ${extract.suffix}]
