-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
56 lines (39 loc) · 1.83 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
# -*- 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 active_variants 1.1
name surf
version 2.0
license MIT
categories www
maintainers nomaintainer
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/
platforms darwin
master_sites https://dl.suckless.org/${name}/
checksums rmd160 02c94f3009e9fe69b12087d5884186b07bf89790 \
sha256 faee4c7a62c38fc9791eff1ad06787c3c9b2b79f338806827f5152a7bc54951d
depends_build-append \
port:pkgconfig
depends_lib-append path:lib/pkgconfig/webkit2gtk-4.0.pc:webkit2-gtk \
path:lib/pkgconfig/gtk+-3.0.pc:gtk3 \
port:dmenu
depends_run-append port:xprop
# uses X11 specific code in UI
require_active_variants \
path:lib/pkgconfig/gtk+-3.0.pc:gtk3 x11
use_configure no
patchfiles-append patch-config-mk.diff \
patch-surf-Style-namecollision.diff \
patch-downloader.diff
post-patch {
reinplace "s|@@MACPORTS_PREFIX@@|${prefix}|g" ${worksrcpath}/config.mk
}
configure.cc-append -DBUILDING_GTK__
build.args CC="${configure.cc}"
destroot.args CC="${configure.cc}"
livecheck.type regex
livecheck.url ${master_sites}
livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)