2013-05-01 18:06:30 +00:00
|
|
|
# Created by: Chris Piazza <cpiazza@FreeBSD.org>
|
1999-12-25 21:51:44 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-09 18:14:07 +00:00
|
|
|
PORTNAME= centericq
|
2005-09-03 05:56:30 +00:00
|
|
|
PORTVERSION= 4.21.0
|
2013-10-20 19:20:15 +00:00
|
|
|
PORTREVISION= 16
|
2005-11-09 07:48:19 +00:00
|
|
|
CATEGORIES= net-im
|
2008-01-05 07:02:51 +00:00
|
|
|
MASTER_SITES= http://thekonst.net/download/
|
1999-12-25 21:51:44 +00:00
|
|
|
|
2014-07-06 15:24:02 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
2003-10-06 15:57:24 +00:00
|
|
|
COMMENT= A text mode menu- and window-driven IM interface
|
1999-12-25 21:51:44 +00:00
|
|
|
|
2014-06-23 20:39:14 +00:00
|
|
|
DEPRECATED= Fails to build with new utmpx
|
|
|
|
EXPIRATION_DATE= 2014-07-23
|
|
|
|
|
2014-05-26 14:54:10 +00:00
|
|
|
USES= iconv gmake tar:bzip2
|
2002-12-20 05:33:16 +00:00
|
|
|
USE_OPENSSL= yes
|
2001-08-14 17:47:29 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
CXXFLAGS+= -I${LOCALBASE}/include
|
2003-09-04 03:01:45 +00:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib -lstdc++
|
2003-07-26 18:08:42 +00:00
|
|
|
CONFIGURE_ARGS= --with-openssl --disable-konst
|
2003-10-06 15:57:24 +00:00
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
OPTIONS_DEFINE= NLS MULTIBYTE FRIBIDI MSN YAHOO AIM IRC JABBER GPGME RSS LJ GG
|
|
|
|
FRIBIDI_DESC= Fribidi Support
|
|
|
|
MSN_DESC= MSN Protocol
|
|
|
|
YAHOO_DESC= Yahoo! Messenger Protocol
|
|
|
|
AIM_DESC= AOL's Instant Messenger Protocol
|
|
|
|
IRC_DESC= IRC Protocol
|
|
|
|
GPGME_DESC= PGP encrypted Jabber messages
|
|
|
|
RSS_DESC= RSS Support
|
|
|
|
LJ_DESC= LiveJournal Support
|
|
|
|
GG_DESC= Gadu-Gadu Protocol Support
|
|
|
|
|
|
|
|
OPTIONS_DEFAULT= GPGME
|
2004-08-13 06:57:46 +00:00
|
|
|
|
2004-09-02 16:17:37 +00:00
|
|
|
MAN1= cicqconv.1 cicqsync.1
|
|
|
|
|
|
|
|
PORTDOCS= FAQ README
|
|
|
|
|
2013-09-20 22:13:34 +00:00
|
|
|
NO_STAGE= yes
|
2013-05-01 18:06:30 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2010-03-20 14:20:32 +00:00
|
|
|
|
2007-04-11 23:07:41 +00:00
|
|
|
.if ${ARCH} == "amd64"
|
|
|
|
# Don't use optimization since it sefgaults in some cases otherwise.
|
|
|
|
CFLAGS:= ${CFLAGS:C/-O[0123456789]*/-O0/}
|
|
|
|
.endif
|
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ${PORT_OPTIONS:MNLS}
|
|
|
|
USES+= gettext
|
|
|
|
PLIST_SUB+= NLS=""
|
|
|
|
.else
|
2004-04-12 05:39:20 +00:00
|
|
|
CONFIGURE_ARGS+=--disable-nls
|
|
|
|
PLIST_SUB+= NLS="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ${PORT_OPTIONS:MMULTIBYTE}
|
2004-01-17 16:48:04 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-locales-fix
|
|
|
|
.endif
|
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ${PORT_OPTIONS:MFRIBIDI}
|
2009-08-22 17:36:57 +00:00
|
|
|
LIB_DEPENDS+= fribidi.3:${PORTSDIR}/converters/fribidi
|
2003-10-06 15:57:24 +00:00
|
|
|
CONFIGURE_ARGS+= --with-fribidi
|
|
|
|
.endif
|
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ${PORT_OPTIONS:MMSN}
|
2013-07-11 16:26:26 +00:00
|
|
|
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
|
2013-05-01 18:06:30 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-msn
|
2003-10-06 15:57:24 +00:00
|
|
|
.endif
|
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MYAHOO}
|
2003-10-06 15:57:24 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-yahoo
|
|
|
|
.endif
|
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MAIM}
|
2003-10-06 15:57:24 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-aim
|
|
|
|
.endif
|
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MIRC}
|
2003-10-06 15:57:24 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-irc
|
|
|
|
.endif
|
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MJABBER}
|
2003-10-06 15:57:24 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-jabber
|
2013-05-01 18:06:30 +00:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${PORT_OPTIONS:MGPGME}
|
2013-10-20 19:20:15 +00:00
|
|
|
LIB_DEPENDS+= libgpgme.so:${PORTSDIR}/security/gpgme
|
2005-10-04 02:42:24 +00:00
|
|
|
CONFIGURE_ARGS+= --with-gpgme=${LOCALBASE}
|
2013-05-01 18:06:30 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gpgme
|
2003-10-06 15:57:24 +00:00
|
|
|
.endif
|
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MRSS}
|
2003-10-06 15:57:24 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-rss
|
|
|
|
.endif
|
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ! ${PORT_OPTIONS:MLJ}
|
2003-10-06 15:57:24 +00:00
|
|
|
CONFIGURE_ARGS+= --disable-lj
|
|
|
|
.endif
|
2001-08-14 17:47:29 +00:00
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ${PORT_OPTIONS:MGG}
|
2005-10-19 01:59:28 +00:00
|
|
|
LIB_DEPENDS+= gadu.3:${PORTSDIR}/polish/ekg
|
|
|
|
LIBGADU= -lgadu
|
2013-05-01 18:06:30 +00:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gg
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if ${OSVERSION} > 900007
|
|
|
|
BROKEN= fails to build with new utmpx
|
2004-04-12 05:39:20 +00:00
|
|
|
.endif
|
|
|
|
|
2004-08-20 19:56:50 +00:00
|
|
|
post-patch:
|
2002-07-16 11:54:09 +00:00
|
|
|
.for file in kkconsui-0.1/include/conf.h kkstrtext-0.1/conf.h kksystr-0.1/include/conf.h
|
|
|
|
@(cd ${WRKSRC} ; \
|
|
|
|
${MV} -f ${file} ${file}.orig ; \
|
|
|
|
${GREP} -v "_G_config.h" ${file}.orig > ${file})
|
|
|
|
.endfor
|
2005-10-19 01:59:28 +00:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile*" -type f -print0 | \
|
|
|
|
${XARGS} -0 \
|
|
|
|
${REINPLACE_CMD} -E \
|
|
|
|
-e "s|-I\$$\(top_srcdir\)/libgadu-0.1|-I${LOCALBASE}/include|" \
|
|
|
|
-e "s|-L\$$\(top_srcdir\)/libgadu-0.1|-L${LOCALBASE}/lib|" \
|
|
|
|
-e 's|libgadu-0.1/*||' \
|
|
|
|
-e 's|libgadu-0.1||' \
|
|
|
|
-e 's|-llibgadu|${LIBGADU}|'
|
2003-10-08 19:03:09 +00:00
|
|
|
|
2013-05-01 18:06:30 +00:00
|
|
|
.if ${PORT_OPTIONS:MDOCS}
|
2002-05-14 02:14:16 +00:00
|
|
|
post-install:
|
|
|
|
@${MKDIR} ${DOCSDIR}
|
2004-01-17 16:48:04 +00:00
|
|
|
@(cd ${WRKSRC} ; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
|
2002-05-14 02:14:16 +00:00
|
|
|
.endif
|
|
|
|
|
2004-08-07 21:05:18 +00:00
|
|
|
.include <bsd.port.post.mk>
|