2013-04-23 16:20:25 +02:00
|
|
|
# Created by: mph
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1998-06-28 05:22:37 +02:00
|
|
|
|
2007-09-18 19:23:57 +02:00
|
|
|
PORTNAME= climm
|
2010-03-20 23:40:50 +01:00
|
|
|
PORTVERSION= 0.7.1
|
2016-03-27 16:57:59 +02:00
|
|
|
PORTREVISION= 12
|
2005-11-09 08:48:19 +01:00
|
|
|
CATEGORIES= net-im
|
2007-09-18 19:23:57 +02:00
|
|
|
MASTER_SITES= http://www.climm.org/source/ \
|
|
|
|
http://http.bg.climm.org/source/
|
1998-06-28 05:22:37 +02:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2010-02-23 19:07:14 +01:00
|
|
|
MAINTAINER= johans@FreeBSD.org
|
2007-09-18 19:23:57 +02:00
|
|
|
COMMENT= CLI-based Multi-Messenger
|
2002-04-21 15:27:10 +02:00
|
|
|
|
2014-01-17 12:03:15 +01:00
|
|
|
USES= gmake pkgconfig
|
2002-04-22 19:56:04 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2007-12-27 17:01:34 +01:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2000-05-22 10:25:02 +02:00
|
|
|
|
2014-07-16 05:00:46 +02:00
|
|
|
OPTIONS_DEFINE= ICONV P2P TCL OTR REMOTE XMPP DOCS
|
2012-06-16 22:54:21 +02:00
|
|
|
OPTIONS_DEFAULT=ICONV P2P TCL OTR REMOTE
|
|
|
|
P2P_DESC= Enable Peer2peer connection support
|
|
|
|
OTR_DESC= Enable OTR encryption support
|
|
|
|
REMOTE_DESC= Enable Remote control fifo support
|
|
|
|
XMPP_DESC= Enable XMPP Jabber support
|
2003-01-13 15:17:05 +01:00
|
|
|
|
2012-06-16 22:54:21 +02:00
|
|
|
.include <bsd.port.options.mk>
|
2007-12-27 17:01:34 +01:00
|
|
|
|
2012-06-16 22:54:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MOTR}
|
2008-02-26 08:31:41 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2009-06-25 18:29:45 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-otr
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS+= libotr.so.2:security/libotr3
|
2012-06-16 22:54:21 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-otr
|
2003-05-19 03:20:11 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-16 22:54:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MICONV}
|
2013-04-27 13:59:28 +02:00
|
|
|
USES+= iconv
|
2012-06-16 22:54:21 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-iconv
|
2005-06-11 14:41:01 +02:00
|
|
|
.endif
|
|
|
|
|
2012-09-08 08:35:18 +02:00
|
|
|
.if ${PORT_OPTIONS:MP2P}
|
2012-06-16 22:54:21 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-peer2peer
|
|
|
|
.else
|
2009-06-25 18:29:45 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-peer2peer
|
2005-06-11 14:41:01 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-16 22:54:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MTCL}
|
2014-01-17 12:03:15 +01:00
|
|
|
USES+= tcl
|
2012-06-16 22:54:21 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-tcl
|
2005-06-11 14:41:01 +02:00
|
|
|
.endif
|
|
|
|
|
2012-06-16 22:54:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MREMOTE}
|
|
|
|
CONFIGURE_ARGS+= --enable-remote
|
|
|
|
.else
|
2005-06-11 14:41:01 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-remote
|
|
|
|
.endif
|
|
|
|
|
2012-06-16 22:54:21 +02:00
|
|
|
.if ${PORT_OPTIONS:MXMPP}
|
2009-06-25 18:29:45 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CONFIGURE_ARGS+= --enable-xmpp --enable-ssl=gnutls \
|
|
|
|
--with-libgcrypt-prefix=${LOCALBASE}
|
2012-07-26 09:19:30 +02:00
|
|
|
CONFIGURE_ENV+= LIBGNUTLS_CONFIG="${LOCALBASE}/bin/pkgconf gnutls"
|
2016-04-01 16:16:16 +02:00
|
|
|
LIB_DEPENDS+= libiksemel.so:textproc/iksemel \
|
|
|
|
libgnutls.so:security/gnutls \
|
|
|
|
libgcrypt.so:security/libgcrypt \
|
|
|
|
libgpg-error.so:security/libgpg-error
|
2012-06-16 22:54:21 +02:00
|
|
|
.else
|
2017-03-15 15:45:30 +01:00
|
|
|
USES+= ssl
|
2012-06-16 22:54:21 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-xmpp --enable-ssl=openssl
|
2007-12-27 17:01:34 +01:00
|
|
|
.endif
|
|
|
|
|
2006-01-26 18:38:29 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS =/s/ doc//' ${WRKSRC}/Makefile.in
|
2011-01-10 23:11:56 +01:00
|
|
|
@${REINPLACE_CMD} -e '/^noinst_LIBRARIES/d' ${WRKSRC}/src/Makefile.in
|
2009-09-09 10:59:47 +02:00
|
|
|
@${REINPLACE_CMD} -e '/ac_lib/s/tcl8\./tcl8/g' \
|
|
|
|
-e '/libgnutls_config_version=/s/--version/--modversion/' \
|
|
|
|
${WRKSRC}/configure
|
2006-01-26 18:38:29 +01:00
|
|
|
|
2002-04-20 17:42:43 +02:00
|
|
|
post-install:
|
2014-01-17 12:03:15 +01:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/climm.1 ${STAGEDIR}${PREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/climmrc.5 ${STAGEDIR}${PREFIX}/man/man5
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/climmcmds.7 ${STAGEDIR}${PREFIX}/man/man7
|
|
|
|
@${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.for ext in i18n logformat png txt xpm
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.${ext} ${STAGEDIR}${DOCSDIR}
|
|
|
|
.endfor
|
1998-06-28 05:22:37 +02:00
|
|
|
|
2012-06-16 22:54:21 +02:00
|
|
|
.include <bsd.port.mk>
|