# -*- 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
PortGroup active_variants 1.1
maintainers {kencu @kencu} openmaintainer
description simple webkit2-gtk-based browser
long_description surf is a simple Web browser based on WebKit2/GTK+. It is able to display \
websites and follow links. It supports the XEmbed protocol which makes it possible to embed \
it in another application. Furthermore, one can point surf to another URI by setting its XProperties.
homepage https://surf.suckless.org/
master_sites http://dl.suckless.org/${name}/
checksums rmd160 02c94f3009e9fe69b12087d5884186b07bf89790 \
sha256 faee4c7a62c38fc9791eff1ad06787c3c9b2b79f338806827f5152a7bc54951d
depends_lib-append path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk \
depends_run-append port:xprop
# uses X11 specific code in UI
require_active_variants \
patchfiles-append patch-config-mk.diff \
patch-surf-Style-namecollision.diff \
reinplace "s|@@MACPORTS_PREFIX@@|${prefix}|g" ${worksrcpath}/config.mk
build.args CC=${configure.cc} CXX=${configure.cxx}
destroot.args CC=${configure.cc} CXX=${configure.cxx}
livecheck.url ${master_sites}
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)