aboutsummaryrefslogtreecommitdiffstats
path: root/www/aria2/Makefile
blob: e73c1b41bdeaf9ca0cfa558b8edd3acc014c24bd (plain) (blame)
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
# New ports collection makefile for:    aria2
# Date created:     1 May 2006
# Whom:         Andrew Pantyukhin <infofarmer@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   aria2
PORTVERSION=    1.12.0
CATEGORIES= www
MASTER_SITES=   SF/${PORTNAME}/stable/${PORTNAME}-${PORTVERSION}

MAINTAINER= miwi@FreeBSD.org
COMMENT=    Yet another download tool

CONFIGURE_ARGS= --with-libintl-prefix=${LOCALBASE} --with-libxml2 \
        --without-gnutls --with-openssl --with-openssl-prefix=/usr \
        --without-libcares --with-libz --enable-bittorrent \
        --enable-metalink --disable-epoll --enable-threads=pth

USE_BZIP2=  yes
USE_GNOME=  gnomehack libxml2
USE_GETTEXT=    yes
GNU_CONFIGURE=  yes
MAKE_JOBS_SAFE= yes

.ifdef WITHOUT_NLS
CONFIGURE_ARGS+=    --disable-nls
.else
LINGUAS=    ar bg ca da de el en@boldquot en@quot es fi fr he hu id it ko ja \
        nl nn pl pt pt_BR ru sk sr sv th tr uk vi zh_CN zh_TW
.endif

PLIST_FILES=    bin/aria2c \
        ${LINGUAS:S|^|share/locale/|:S|$|/LC_MESSAGES/aria2.mo|} \
        share/doc/aria2/README \
        share/doc/aria2/README.html \
        share/doc/aria2/aria2c.1.html \
        share/doc/aria2/aria2c.1.asciidoc \
        share/doc/aria2/README.asciidoc \
        share/doc/aria2/bash_completion/README.txt \
        share/doc/aria2/bash_completion/aria2c \
        share/doc/aria2/xmlrpc/aria2mon \
        share/doc/aria2/xmlrpc/aria2rpc \
        share/doc/aria2/xmlrpc/README.txt \
        share/doc/aria2/ru/aria2c.1.html \
        share/doc/aria2/ru/aria2c.1.asciidoc

PLIST_DIRS= share/doc/aria2/bash_completion \
        share/doc/aria2/xmlrpc \
        share/doc/aria2/ru \
        share/doc/aria2

MANLANG=    "" ru
MAN1=       aria2c.1

OPTIONS=    SQLITE "Support for Firefox cookies" Off

.include <bsd.port.pre.mk>

.if defined(WITH_SQLITE)
CONFIGURE_ARGS+=    --with-sqlite3
LIB_DEPENDS+=   sqlite3:${PORTSDIR}/databases/sqlite3
.else
CONFIGURE_ARGS+=    --without-sqlite3
.endif

.include <bsd.port.post.mk>