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

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

master_sites            https://dillo-browser.org/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
    }
}

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

livecheck.url           ${homepage}/release/
livecheck.regex         {>Version ([0-9.]+)<}
