-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
Portfile
72 lines (59 loc) · 2.54 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
# -*- 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 github 1.0
set ver 20230121
github.setup tats w3m 0.5.3+git${ver} v
github.tarball_from archive
version 0.5.3.${ver}
revision 0
categories www
license MIT
maintainers {makr @mohd-akram} openmaintainer
description pager/text based browser
long_description w3m is a pager/text-based WWW browser. \
It is a similar application to Lynx, but it has \
several features Lynx doesn't have, like tables, frames\
and inline image rendering. Its 8-bit support is second\
to none.
depends_lib port:boehmgc \
port:gettext \
port:libiconv \
port:ncurses \
port:zlib path:lib/libssl.dylib:openssl
checksums rmd160 724e6a776c6e0aa5dd3ea8bfd92a9ec718328dc9 \
sha256 fdc7d55d3c0104db26aa9759db34f37e5eee03f44c868796e3bbfb8935c96e39 \
size 2322709
subport w3m-devel {
PortGroup obsolete 1.0
replaced_by w3m
version 20220429
revision 0
}
configure.args --with-gc=${prefix} \
--with-ssl=${prefix} \
--enable-keymap=w3m \
--with-termlib=ncurses \
--with-libiconv-prefix=${prefix} \
--with-libintl-prefix=${prefix} \
--disable-image
# Fix build with GCC 4.2
configure.cflags-append -std=c99
build.args WARNINGS=-Wall
post-destroot {
xinstall -d ${destroot}${prefix}/share/doc/w3m
xinstall -m 644 -W ${worksrcpath}/doc FAQ.html HISTORY MANUAL.html README \
README.cookie README.dict README.func README.img README.m17n \
README.mouse README.passwd README.pre_form README.tab STORY.html \
keymap.default keymap.lynx menu.default menu.submenu \
${destroot}${prefix}/share/doc/w3m
}
variant inline_image_gtk2 description {View inline images with GTK2} {
configure.args-delete --disable-image
configure.args-append --with-imagelib=gtk2
depends_lib-append path:lib/pkgconfig/gtk+-2.0.pc:gtk2
}
variant inline_image_imlib2 description {View inline images with imlib2} {
configure.args-delete --disable-image
configure.args-append --with-imagelib=imlib2
depends_lib-append port:imlib2
}