source: trunk/dports/www/links/Portfile

Last change on this file was 153153, checked in by ryandesign@…, 10 months ago

links: update to 2.13

Opportunistically linked dependencies are moved to variants.

Resolves #52354

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.1 KB
Line 
1# -*- 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
2# $Id: Portfile 153153 2016-09-26 02:39:46Z ryandesign@macports.org $
3
4PortSystem      1.0
5
6name            links
7version         2.13
8description     Lynx-like WWW browser that supports tables, menus, etc
9
10long_description \
11                Lynx-like WWW browser with text and graphics modes with many \
12                features like displaying tables, menus, etc.
13
14platforms       darwin freebsd sunos
15categories      www
16license         GPL-2+
17homepage        http://links.twibright.com/
18master_sites    http://links.twibright.com/download/
19
20checksums       rmd160  f1f29ed90b2c7e397ab53fbd589ece5f2462456b \
21                sha256  c252095334a3b199fa791c6f9a9affe2839a7fbd536685ab07851cb7efaa4405
22
23maintainers     nomaintainer
24use_bzip2       yes
25
26depends_build   port:pkgconfig
27depends_lib     path:lib/libssl.dylib:openssl \
28                port:bzip2 \
29                port:zlib \
30                port:xz
31
32configure.args  --disable-graphics \
33                --enable-javascript \
34                --mandir=${prefix}/share/man \
35                --with-ssl \
36                --without-libjpeg \
37                --without-libpng \
38                --without-librsvg \
39                --without-libtiff \
40                --without-openmp \
41                --without-x
42
43post-patch {
44    reinplace s|/etc/|${prefix}/etc/| ${workpath}/${worksrcdir}/default.c
45}
46
47variant svg requires x11 description {Enable SVG support} {
48    depends_lib-append      port:librsvg
49    configure.args-replace  --without-librsvg --with-librsvg
50}
51
52variant tiff requires x11 description {Enable TIFF support} {
53    depends_lib-append      port:tiff
54    configure.args-replace  --without-libtiff --with-libtiff
55}
56
57variant x11 {
58    depends_lib-append      port:jpeg port:libpng port:xorg-libXt
59    configure.args-replace  --disable-graphics --enable-graphics
60    configure.args-replace  --without-libjpeg --with-libjpeg
61    configure.args-replace  --without-libpng  --with-libpng
62    configure.args-replace  --without-x --with-x
63}
64
65livecheck.type  regex
66livecheck.url   [lindex ${master_sites} 0]
67livecheck.regex {links-([0-9.]+)\.tar\.bz2}
Note: See TracBrowser for help on using the repository browser.