Tweak net-im/jggtrans version 2.2.4_2
[dports.git] / net-im / jggtrans / Makefile
1 # Created by: Bartek Rutkowski <r@robakdesign.com>
2 # $FreeBSD: net-im/jggtrans/Makefile 318883 2013-05-23 16:10:43Z jgh $
3
4 PORTNAME=               jggtrans
5 PORTVERSION=            2.2.4
6 PORTREVISION=           2
7 CATEGORIES=             net-im polish
8 MASTER_SITES=           http://jggtrans.jajcus.net/downloads/ \
9                         http://freebsd.e.pl/distfiles/
10
11 MAINTAINER=             mg@fork.pl
12 COMMENT=                Jabberd XMPP to GG instant messaging service gateway
13
14 LIB_DEPENDS=            idn.17:${PORTSDIR}/dns/libidn \
15                         expat.6:${PORTSDIR}/textproc/expat2 \
16                         gadu.3:${PORTSDIR}/polish/libgadu
17
18 USE_GMAKE=              yes
19 GNU_CONFIGURE=          yes
20 USES=           gettext
21 USE_GNOME=              glib20 pkgconfig
22 CPPFLAGS+=              -I${LOCALBASE}/include
23 LDFLAGS+=               -L${LOCALBASE}/lib
24 CFLAGS+=                -I${LOCALBASE}/include
25
26 USE_RC_SUBR=            jggtrans
27
28 OPTIONS_DEFINE= DEBUG EJABBERD
29 EJABBERD_DESC=  transport with ejabberd
30
31 .include <bsd.port.options.mk>
32
33 .if ! ${PORT_OPTIONS:MDEBUG}
34 CONFIGURE_ARGS+=        --disable-debug
35 .endif
36
37 .if ${PORT_OPTIONS:MEJABBERD}
38 JABBER_USER?=   ejabberd
39 SUB_LIST+=      JABBER_REQUIRE=ejabberd
40 .else
41 JABBER_USER?=   jabber
42 SUB_LIST+=      JABBER_REQUIRE=jabberd
43 .endif
44
45 SUB_LIST+=      JABBER_USER=${JABBER_USER}
46
47 post-install:
48         @${INSTALL_DATA} ${WRKSRC}/jggtrans.xml ${PREFIX}/etc/jggtrans.xml.sample
49         @${CP} -n ${WRKSRC}/jggtrans.xml ${PREFIX}/etc/jggtrans.xml || ${TRUE}
50         @${CAT} ${PKGMESSAGE}
51
52 .include <bsd.port.mk>