2005-10-05 17:47:12 +02:00
|
|
|
# New ports collection makefile for: mcabber
|
|
|
|
# Date created: 2005-10-05
|
|
|
|
# Whom: vsevolod
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= mcabber
|
2008-10-18 23:38:27 +02:00
|
|
|
PORTVERSION= 0.9.9
|
2005-11-09 08:48:19 +01:00
|
|
|
CATEGORIES= net-im
|
2007-04-07 16:22:58 +02:00
|
|
|
MASTER_SITES= http://www.lilotux.net/~mikael/mcabber/files/ CENKES
|
2005-10-05 17:47:12 +02:00
|
|
|
|
2009-03-06 19:14:36 +01:00
|
|
|
MAINTAINER= dhn@FreeBSD.org
|
2005-10-05 17:47:12 +02:00
|
|
|
COMMENT= Small Jabber console client
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2008-04-18 20:53:53 +02:00
|
|
|
CONFIGURE_ARGS= --with-ssl --enable-sigwinch
|
2007-01-13 01:53:27 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
|
2005-10-05 17:47:12 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
USE_ICONV= yes
|
|
|
|
USE_GETTEXT= yes
|
|
|
|
USE_GNOME= glib20
|
2007-01-13 01:53:27 +01:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS= -L${LOCALBASE}/lib
|
2005-10-21 10:14:14 +02:00
|
|
|
|
2005-10-05 17:47:12 +02:00
|
|
|
MAN1= mcabber.1
|
2006-06-28 10:35:49 +02:00
|
|
|
|
2007-09-03 09:07:24 +02:00
|
|
|
OPTIONS= GPGME "Use security/gpgme for PGP support" off \
|
2007-10-29 13:21:36 +01:00
|
|
|
OTR "Off-the-record messaging support" off \
|
2007-09-03 09:07:24 +02:00
|
|
|
ASPELL "Use textproc/aspell for spell checking" off
|
|
|
|
|
2006-08-15 06:40:03 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2007-04-07 16:22:58 +02:00
|
|
|
.if ${OSVERSION} < 602107 || (${OSVERSION} > 700000 && ${OSVERSION} < 700033)
|
|
|
|
LIB_DEPENDS+= ncursesw.5:${PORTSDIR}/devel/ncurses
|
|
|
|
.endif
|
|
|
|
|
2007-09-03 09:07:24 +02:00
|
|
|
.if defined(WITH_GPGME)
|
|
|
|
LIB_DEPENDS+= gpgme.17:${PORTSDIR}/security/gpgme
|
|
|
|
CONFIGURE_ARGS+=--enable-gpgme
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-gpgme
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_ASPELL)
|
|
|
|
LIB_DEPENDS+= aspell.16:${PORTSDIR}/textproc/aspell
|
|
|
|
CONFIGURE_ARGS+=--enable-aspell
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-aspell
|
|
|
|
.endif
|
|
|
|
|
2007-10-29 13:21:36 +01:00
|
|
|
.if defined(WITH_OTR)
|
2008-10-07 23:15:03 +02:00
|
|
|
LIB_DEPENDS+= otr.4:${PORTSDIR}/security/libotr \
|
2009-01-06 14:01:11 +01:00
|
|
|
gcrypt.16:${PORTSDIR}/security/libgcrypt
|
2007-10-29 13:21:36 +01:00
|
|
|
CONFIGURE_ARGS+=--enable-otr
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--disable-otr
|
|
|
|
.endif
|
|
|
|
|
2006-06-28 10:35:49 +02:00
|
|
|
post-patch:
|
2007-06-14 23:19:35 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|$$"$${datadir}"|"$${datadir}"|;s|-O2||'\
|
|
|
|
${WRKSRC}/configure ${WRKSRC}/*/configure
|
2005-10-05 17:47:12 +02:00
|
|
|
|
|
|
|
post-install:
|
2007-06-14 23:19:35 +02:00
|
|
|
@${INSTALL} -d ${PREFIX}/share/applications/ ${EXAMPLESDIR}/
|
|
|
|
@${INSTALL} ${WRKSRC}/${PORTNAME}.desktop ${PREFIX}/share/applications/
|
2006-08-14 08:22:02 +02:00
|
|
|
@${CP} -R ${WRKSRC}/contrib ${DATADIR}/
|
2005-10-05 17:47:12 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/mcabberrc.example ${EXAMPLESDIR}/mcabberrc
|
|
|
|
|
2006-08-15 06:40:03 +02:00
|
|
|
.include <bsd.port.post.mk>
|