# -*- 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                fox
version             1.6.54
revision            2
maintainers         nomaintainer
categories          x11
platforms           darwin
license             LGPL-2.1+

description         The FOX GUI toolkit

long_description    FOX is a C++ based Toolkit for developing Graphical User \
                    Interfaces easily and effectively.

homepage            http://www.fox-toolkit.org
master_sites        ${homepage}/ftp

checksums           rmd160  c315fc2ad1ea4350498947ce1b5bb06f400e173b \
                    sha256  960f16a8a69d41468f841039e83c2f58f3cb32622fc283a69f20381abb355219

depends_build       port:pkgconfig

depends_lib         port:freetype \
                    path:include/turbojpeg.h:libjpeg-turbo \
                    port:libGLU \
                    port:libpng \
                    port:mesa \
                    port:tiff \
                    port:Xft2 \
                    port:xorg-libXcursor \
                    port:xorg-libXrandr

patchfiles          dynamic_lookup-11.patch

configure.args      --with-x \
                    --with-xft \
                    --with-opengl

configure.cppflags-append \
                    -I${prefix}/include/freetype2

use_parallel_build  yes

livecheck.type      regex
livecheck.url       ${homepage}/download.html
livecheck.regex     /${name}-(\[0-9.\]+)${extract.suffix}.*STABLE
