aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/jggtrans/Makefile
blob: 92d5385f771daea80b44d8c93cfb1ae386d81e77 (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
# Created by: Bartek Rutkowski <r@robakdesign.com>
# $FreeBSD$

PORTNAME=       jggtrans
PORTVERSION=        2.2.4
PORTREVISION=       2
CATEGORIES=     net-im polish
MASTER_SITES=       http://jggtrans.jajcus.net/downloads/ \
            http://freebsd.e.pl/distfiles/

MAINTAINER=     mg@fork.pl
COMMENT=        Jabberd XMPP to GG instant messaging service gateway

LIB_DEPENDS=        idn.17:${PORTSDIR}/dns/libidn \
            expat.6:${PORTSDIR}/textproc/expat2 \
            gadu.3:${PORTSDIR}/polish/libgadu

USE_GMAKE=      yes
GNU_CONFIGURE=      yes
USES=       gettext
USE_GNOME=      glib20 pkgconfig
CPPFLAGS+=      -I${LOCALBASE}/include
LDFLAGS+=       -L${LOCALBASE}/lib
CFLAGS+=        -I${LOCALBASE}/include

USE_RC_SUBR=        jggtrans

OPTIONS=        NODEBUG "Turn off debugging code" off \
            EJABBERD "Use transport with ejabberd" off

.include <bsd.port.pre.mk>

.if defined(WITH_NODEBUG)
CONFIGURE_ARGS+=    --disable-debug
.endif

.if defined(WITH_EJABBERD)
JABBER_USER?=   ejabberd
SUB_LIST+=  JABBER_REQUIRE=ejabberd
.else
JABBER_USER?=   jabber
SUB_LIST+=  JABBER_REQUIRE=jabberd
.endif

SUB_LIST+=  JABBER_USER=${JABBER_USER}

post-install:
    @${INSTALL_DATA} ${WRKSRC}/jggtrans.xml ${PREFIX}/etc/jggtrans.xml.sample
    @${CP} -n ${WRKSRC}/jggtrans.xml ${PREFIX}/etc/jggtrans.xml || ${TRUE}
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.post.mk>