aboutsummaryrefslogtreecommitdiffstats
path: root/net/grsync/Makefile
blob: 18a374c6fc2d89987bb19f207c89efd29c8d2a13 (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
# New ports collection makefile for:    grsync
# Date created:     24 August 2007
# Whom:         Ganael Laplanche <ganael.laplanche@martymac.org>
#
# $FreeBSD$
#

PORTNAME=   grsync
PORTVERSION=    1.1.1
PORTREVISION=   1
CATEGORIES= net ipv6
MASTER_SITES=   http://www.opbyte.it/release/ \
        GENTOO/distfiles \
        LOCAL/chinsan

MAINTAINER= martymac@FreeBSD.org
COMMENT=    GTK frontend for rsync

RUN_DEPENDS=    rsync:${PORTSDIR}/net/rsync

USE_GNOME=  gtk20 desktopfileutils
GNU_CONFIGURE=  yes
USE_GMAKE=  yes

INSTALLS_ICONS= yes

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

.if !defined(WITHOUT_NLS)
USE_GETTEXT=    yes
PLIST_SUB+= NLS=""
.else
PLIST_SUB+= NLS="@comment "
.endif

MAN1=       grsync.1 grsync-batch.1

post-patch:
.if defined(WITHOUT_NLS)
    @${REINPLACE_CMD} 's/^ALL_LINGUAS=.*/ALL_LINGUAS=""/' \
        ${WRKSRC}/configure
.endif

post-install:
    @-update-desktop-database

.include <bsd.port.mk>