aboutsummaryrefslogtreecommitdiffstats
path: root/ftp/pavuk/Makefile
blob: 6b6cc2d2f7f1a5e8b56ef6bb74bb0295ab1732db (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
# New ports collection makefile for:    pavuk
# Date created:             19 March 1998
# Whom:                 Andrey Zakhvatov
#
# $FreeBSD$
#

PORTNAME=   pavuk
PORTVERSION=    0.9.28
PORTREVISION=   3
CATEGORIES= ftp www
MASTER_SITES=   ${MASTER_SITE_SUNSITE} \
        http://www.idata.sk/~ondrej/sw/
MASTER_SITE_SUBDIR= apps/www/mirroring
DISTNAME=   ${PORTNAME}-0.9pl28
EXTRACT_SUFX=   .tgz

MAINTAINER= ports@FreeBSD.org
COMMENT=    HTTP, FTP and Gopher mirroring tool

LIB_DEPENDS=    intl.5:${PORTSDIR}/devel/gettext-old

USE_OPENSSL=    yes
WANT_GNOME= yes
USE_REINPLACE=  yes
GNU_CONFIGURE=  yes
CONFIGURE_ENV=  CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
CONFIGURE_ARGS= --with-locale-dir=${LOCALBASE}/share/locale \
        --disable-debug --disable-gnome --enable-threads

MAN1=       pavuk.1

CPPFLAGS=   -I${LOCALBASE}/include
LDFLAGS=    -L${LOCALBASE}/lib

.include <bsd.port.pre.mk>

.if ${HAVE_GNOME:Mgtk12}!=""
USE_GNOME=  gtk12
CONFIGURE_ARGS+=    --with-gtk-config="${GTK_CONFIG}"
.else
CONFIGURE_ARGS+=    --disable-gtk
.endif

pre-patch:
    @${REINPLACE_CMD} -e \
        's|-pthread -DHAVE_MT|${PTHREAD_CFLAGS} -DHAVE_MT|g ; \
         s|-pthread|${PTHREAD_LIBS}|g ; \
         s|-lpthreads|${PTHREAD_LIBS}|g' ${WRKSRC}/configure
    @${FIND}  ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
        's|$$(datadir)/icons|$$(pkgdatadir)/icons|g'

post-install:
    ${INSTALL_DATA} ${WRKSRC}/pavuk_authinfo.sample ${PREFIX}/etc
    ${INSTALL_DATA} ${WRKSRC}/pavukrc.sample ${PREFIX}/etc
.if !defined(NOPORTDOCS)
    @${MKDIR} ${DOCSDIR}
.for f in AUTHORS BUGS CREDITS ChangeLog FAQ MAILINGLIST NEWS README
    ${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}
.endfor
.endif

.include <bsd.port.post.mk>