aboutsummaryrefslogtreecommitdiffstats
path: root/www/aria/Makefile
blob: d25de8169349f2dcf83ce97f9a1c6a911d4972f3 (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
# New ports collection makefile for:   aria
# Date created:        30 March 2001
# Whom:                Yukihiro Nakai <nakai@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   aria
PORTVERSION=    0.10.2.t5
PORTREVISION=   1
CATEGORIES= www
MASTER_SITES=   http://rabien.virtualave.net/linux/storage/sources/ \
        http://aria.rednoah.com/storage/sources/
DISTNAME=   ${PORTNAME}-${PORTVERSION:S/.t/test/}

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

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 500113
BROKEN=         "Does not build"
.endif

USE_BZIP2=  yes
USE_GNOME=  gtk12
USE_OPENSSL=    yes
USE_GMAKE=  yes
USE_X_PREFIX=   yes
USE_LIBTOOL=    yes
CONFIGURE_ENV=  CPPFLAGS="-I${LOCALBASE}/include" \
        LIBS="-L${LOCALBASE}/lib"

pre-patch:
    @${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS}|g; \
        s|-lssl|-lcrypto -lssl|g; \
        s|DATADIRNAME=lib|DATADIRNAME=share|g' ${WRKSRC}/configure
    @${PERL} -pi -e 's|^CXXFLAGS.*|CXXFLAGS = \@CXXFLAGS\@|' \
        ${WRKSRC}/src/Makefile.in

post-install:
.if !defined(NOPORTDOCS)
    ${MKDIR} ${PREFIX}/share/doc/${PORTNAME}
    ${INSTALL_DATA} ${WRKSRC}/README ${PREFIX}/share/doc/${PORTNAME}/
    ${INSTALL_DATA} ${WRKSRC}/README.euc ${PREFIX}/share/doc/${PORTNAME}/
.endif

.include <bsd.port.post.mk>