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
|
2008-02-26 08:31:41 +01:00
|
|
|
PORTVERSION= 0.6.2
|
2008-03-03 12:57:08 +01:00
|
|
|
PORTREVISION= 1
|
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
|
|
|
|
|
2007-06-11 14:17:30 +02:00
|
|
|
MAINTAINER= johans@stack.nl
|
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
|
2004-12-15 11:45:11 +01:00
|
|
|
USE_OPENSSL= yes
|
2002-04-22 19:56:04 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-04-12 05:26:56 +02:00
|
|
|
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
|
2003-01-13 15:17:05 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
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 \
|
|
|
|
SSL "SSL/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
|
|
|
|
|
|
|
.if defined(WITHOUT_SSL)
|
|
|
|
CONFIGURE_ARGS+= --disable-ssl --disable-otr
|
|
|
|
.else
|
|
|
|
. if defined(WITHOUT_XMPP)
|
|
|
|
CONFIGURE_ARGS+= --enable-ssl=openssl
|
|
|
|
. else
|
2008-02-26 08:31:41 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-ssl=gnutls --with-libgnutls-prefix=${LOCALBASE}
|
2007-12-27 17:01:34 +01:00
|
|
|
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
|
|
|
|
. endif
|
2008-02-26 08:31:41 +01:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CONFIGURE_ARGS+= --with-libgcrypt-prefix=${LOCALBASE}
|
2007-12-27 17:01:34 +01:00
|
|
|
LIB_DEPENDS+= gcrypt:${PORTSDIR}/security/libgcrypt \
|
|
|
|
otr:${PORTSDIR}/security/libotr \
|
|
|
|
gpg-error:${PORTSDIR}/security/libgpg-error
|
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
|
|
|
|
|
|
|
|
.if defined(WITHOUT_P2P) || defined(WITHOUT_SSL)
|
2007-12-27 17:01:34 +01:00
|
|
|
CONFIGURE_ARGS+= --disable-peer2peer --disable-ssl
|
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)
|
|
|
|
CONFIGURE_ARGS+= --disable-xmpp
|
|
|
|
.else
|
|
|
|
LIB_DEPENDS+= gloox:${PORTSDIR}/net-im/gloox
|
|
|
|
CONFIGURE_ARGS+= --enable-xmpp
|
|
|
|
.endif
|
|
|
|
|
2006-01-26 18:38:29 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e '/^SUBDIRS =/s/ doc//' ${WRKSRC}/Makefile.in
|
2007-12-27 17:01:34 +01:00
|
|
|
@${REINPLACE_CMD} -e '/ac_lib/s/tcl8\.4/tcl84/' ${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>
|