1998-06-28 05:22:37 +02:00
|
|
|
# New ports collection makefile for: micq
|
1998-10-26 18:58:30 +01:00
|
|
|
# Date created: 11 Oct 1998
|
1998-06-28 05:22:37 +02:00
|
|
|
# Whom: 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
|
2011-07-03 13:40:49 +02:00
|
|
|
PORTREVISION= 3
|
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
|
|
|
|
2003-02-02 16:15:19 +01:00
|
|
|
USE_GMAKE= yes
|
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
|
|
|
|
2007-09-18 19:23:57 +02:00
|
|
|
MAN1= climm.1
|
|
|
|
MAN5= climmrc.5
|
|
|
|
MAN7= climmcmds.7
|
2001-03-21 19:55:23 +01:00
|
|
|
|
2007-12-27 17:01:34 +01:00
|
|
|
OPTIONS= LIBICONV "Iconv character set conversion" on \
|
|
|
|
P2P "Peer2peer connection support" on \
|
|
|
|
TCL "TCL scripting support" on \
|
2009-06-25 18:29:45 +02:00
|
|
|
OTR "OTR encryption support" on \
|
2008-02-26 08:31:41 +01:00
|
|
|
REMOTE "Remote control fifo support" on \
|
|
|
|
XMPP "XMPP Jabber support" off
|
2003-01-13 15:17:05 +01:00
|
|
|
|
2007-12-27 17:40:05 +01:00
|
|
|
.include <bsd.port.pre.mk>
|
2007-12-27 17:01:34 +01:00
|
|
|
|
2009-06-25 18:29:45 +02:00
|
|
|
.if defined(WITHOUT_OTR)
|
|
|
|
CONFIGURE_ARGS+= --disable-otr
|
2007-12-27 17:01:34 +01:00
|
|
|
.else
|
2008-02-26 08:31:41 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
2009-06-25 18:29:45 +02:00
|
|
|
CONFIGURE_ARGS+= --enable-otr
|
|
|
|
LIB_DEPENDS+= otr:${PORTSDIR}/security/libotr
|
2003-05-19 03:20:11 +02:00
|
|
|
.endif
|
|
|
|
|
2007-12-27 17:01:34 +01:00
|
|
|
.if defined(WITHOUT_LIBICONV)
|
|
|
|
CONFIGURE_ARGS+= --disable-iconv
|
|
|
|
.else
|
|
|
|
USE_ICONV= yes
|
2005-06-11 14:41:01 +02:00
|
|
|
.endif
|
|
|
|
|
2009-06-25 18:29:45 +02:00
|
|
|
.if defined(WITHOUT_P2P)
|
|
|
|
CONFIGURE_ARGS+= --disable-peer2peer
|
2005-06-11 14:41:01 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_TCL)
|
|
|
|
CONFIGURE_ARGS+= --disable-tcl
|
2007-12-27 17:01:34 +01:00
|
|
|
.else
|
|
|
|
USE_TCL= yes
|
2007-12-27 17:40:05 +01:00
|
|
|
.include "${PORTSDIR}/Mk/bsd.tcl.mk"
|
2005-06-11 14:41:01 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITHOUT_REMOTE)
|
|
|
|
CONFIGURE_ARGS+= --disable-remote
|
|
|
|
.endif
|
|
|
|
|
2007-12-27 17:01:34 +01:00
|
|
|
.if defined(WITHOUT_XMPP)
|
2009-06-25 18:29:45 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+= --disable-xmpp --enable-ssl=openssl
|
2007-12-27 17:01:34 +01:00
|
|
|
.else
|
2009-06-25 18:29:45 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CONFIGURE_ARGS+= --enable-xmpp --enable-ssl=gnutls \
|
|
|
|
--with-libgcrypt-prefix=${LOCALBASE}
|
2009-09-09 10:59:47 +02:00
|
|
|
CONFIGURE_ENV+= LIBGNUTLS_CONFIG="${LOCALBASE}/bin/pkg-config gnutls"
|
|
|
|
BUILD_DEPENDS+= pkg-config:${PORTSDIR}/devel/pkg-config
|
2009-06-25 18:29:45 +02:00
|
|
|
LIB_DEPENDS+= iksemel:${PORTSDIR}/textproc/iksemel \
|
|
|
|
gnutls:${PORTSDIR}/security/gnutls \
|
|
|
|
gcrypt:${PORTSDIR}/security/libgcrypt \
|
|
|
|
gpg-error:${PORTSDIR}/security/libgpg-error
|
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:
|
2007-09-18 19:23:57 +02:00
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/climm.1 ${MANPREFIX}/man/man1
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/climmrc.5 ${MANPREFIX}/man/man5
|
|
|
|
${INSTALL_MAN} ${WRKSRC}/doc/climmcmds.7 ${MANPREFIX}/man/man7
|
1998-06-28 05:22:37 +02:00
|
|
|
.if !defined(NOPORTDOCS)
|
2002-04-21 15:27:10 +02:00
|
|
|
@${MKDIR} ${DOCSDIR}
|
2007-12-27 17:01:34 +01:00
|
|
|
. for ext in i18n logformat png txt xpm
|
2003-01-13 15:17:05 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/doc/*.${ext} ${DOCSDIR}
|
2007-12-27 17:01:34 +01:00
|
|
|
. endfor
|
1998-06-28 05:22:37 +02:00
|
|
|
.endif
|
|
|
|
|
2007-12-27 17:40:05 +01:00
|
|
|
.include <bsd.port.post.mk>
|