# -*- 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
PortGroup               legacysupport 1.1
PortGroup               openssl 1.0

# clock_gettime
legacysupport.newest_darwin_requires_legacy 15

name                    dillo
version                 3.3.0
revision                0
categories              www net 
maintainers             {ijams.me:nate @exprez135} \
                        openmaintainer
license                 GPL-3
homepage                https://dillo-browser.org
master_sites            ${homepage}/release/${version}/

description             A fast and small graphical web browser
long_description        ${name} is a fast and small graphical web browser \
                        written in C and C++ with its own rendering engine \
                        with support for HTTP, HTTPS, FTP and local files.

checksums               rmd160  70e63d6bc7ddbd8bca2e55cf583e4a1b51ee3cfe \
                        sha256  db1863261d5efbd27b090e430c88064082b891cea1edf7a14e234cca51754f60 \
                        size    1368668

depends_lib-append      path:lib/libfltk.dylib:fltk \
                        port:webp

post-patch {
    if {[string match *gcc-4.* ${configure.compiler}]} {
        reinplace "s|-Wno-cast-function-type||" ${worksrcpath}/configure
    }
}

compiler.c_standard     1999

# Experimental support for FLTK v1.4+ is currently required.
configure.args-append   --enable-experimental-fltk
