/
Portfile
44 lines (36 loc) · 1.62 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
# -*- 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
# $Id$
PortSystem 1.0
PortGroup github 1.0
PortGroup cxx11 1.0
github.setup aria2 aria2 1.28.0 release-
github.tarball_from releases
categories net
platforms darwin
maintainers mww mps
license {GPL-2+ OpenSSLException}
description download utility with resuming and segmented downloading
long_description aria2 is a download utility with resuming and segmented \
downloading. Supported protocols are HTTP/HTTPS/FTP/BitTorrent.
use_xz yes
checksums rmd160 2f24d49032cc4453b7695c0c99997553b28bffa9 \
sha256 e0a125a557b9aacf23468374f63215e9b1d6165c990bd8ecb0603cdc1d5d72f0
depends_build port:pkgconfig
depends_lib port:gettext port:libiconv port:gnutls port:libxml2
# use_* must be defined after depends_*, otherwise the automatic dependencies
# will be overwritten.
# Alternatively, depends_*-append could be used.
use_autoreconf yes
configure.cxxflags-append -I${prefix}/include/libxml2
configure.ldflags-append -lintl
configure.args --with-gnutls --with-libgnutls-prefix=${prefix} \
--with-libiconv-prefix=${prefix} \
--with-libintl-prefix=${prefix} \
--with-xml-prefix=${prefix} \
--without-sqlite3
# appletls not available on 10.6 or earlier
platform darwin {
if { ${os.major} <= 10 } {
configure.args-append "--without-appletls"
}
}