1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/net-im/centericq/Makefile

138 lines
3.1 KiB
Makefile
Raw Normal View History

# Created by: Chris Piazza <cpiazza@FreeBSD.org>
# $FreeBSD$
PORTNAME= centericq
PORTVERSION= 4.21.0
PORTREVISION= 16
Move instant messaging related ports to newly created net-im category: net/aim -> net-im/aim net/amsn -> net-im/amsn net/ari-yahoo -> net-im/ari-yahoo net/ayttm -> net-im/ayttm net/bsflite -> net-im/bsflite net/ccmsn -> net-im/ccmsn net/centericq -> net-im/centericq net/cicquin -> net-im/cicquin net/coccinella -> net-im/coccinella net/convey -> net-im/convey net/echat -> net-im/echat net/ejabberd -> net-im/ejabberd net/firetalk -> net-im/firetalk net/fugu -> net-im/fugu net/gajim -> net-im/gajim net/gale -> net-im/gale net/ginsu -> net-im/ginsu net/gnome-jabber -> net-im/gnome-jabber net/gtkyahoo -> net-im/gtkyahoo net/gyach -> net-im/gyach net/icb -> net-im/icb net/icmpchat -> net-im/icmpchat net/icqlib -> net-im/icqlib net/imcom -> net-im/imcom net/jabberd -> net-im/jabberd net/jabber-pymsn -> net-im/jabber-pymsn net/jit -> net-im/jit net/kmerlin -> net-im/kmerlin net/kmess -> net-im/kmess net/konverse -> net-im/konverse net/kpopup -> net-im/kpopup net/libmsn -> net-im/libmsn net/libyahoo2 -> net-im/libyahoo2 net/linpopup -> net-im/linpopup net/linux-ymessenger -> net-im/linux-ymessenger net/mcabber -> net-im/mcabber net/mercury -> net-im/mercury net/micq -> net-im/micq net/mu-conference -> net-im/mu-conference net/naim -> net-im/naim net/pebrot -> net-im/pebrot net/pork -> net-im/pork net/py-msnp -> net-im/py-msnp net/py-pyxmpp -> net-im/py-pyxmpp net/p5-Jabber-Connection -> net-im/p5-Jabber-Connection net/p5-Net-AIM -> net-im/p5-Net-AIM net/p5-Net-AOLIM -> net-im/p5-Net-AOLIM net/p5-Net-ICQ2000 -> net-im/p5-Net-ICQ2000 net/p5-Net-MSN -> net-im/p5-Net-MSN net/p5-Net-NetSend -> net-im/p5-Net-NetSend net/p5-Net-OSCAR -> net-im/p5-Net-OSCAR net/simicq -> net-im/simicq net/sulci -> net-im/sulci net/tik -> net-im/tik net/tkabber -> net-im/tkabber net/tkabber-devel -> net-im/tkabber-devel net/tmsnc -> net-im/tmsnc net/vicq -> net-im/vicq net/vqcc-gtk -> net-im/vqcc-gtk net/xicq -> net-im/xicq net/ymessenger -> net-im/ymessenger net/ysm -> net-im/ysm Repocopied by: marcus
2005-11-09 07:48:19 +00:00
CATEGORIES= net-im
MASTER_SITES= http://thekonst.net/download/
MAINTAINER= ports@FreeBSD.org
2003-10-06 15:57:24 +00:00
COMMENT= A text mode menu- and window-driven IM interface
DEPRECATED= Fails to build with new utmpx
EXPIRATION_DATE= 2014-07-23
USES= iconv gmake tar:bzip2
USE_OPENSSL= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
CXXFLAGS+= -I${LOCALBASE}/include
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
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
MAN1= cicqconv.1 cicqsync.1
PORTDOCS= FAQ README
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${ARCH} == "amd64"
# Don't use optimization since it sefgaults in some cases otherwise.
CFLAGS:= ${CFLAGS:C/-O[0123456789]*/-O0/}
.endif
.if ${PORT_OPTIONS:MNLS}
USES+= gettext
PLIST_SUB+= NLS=""
.else
CONFIGURE_ARGS+=--disable-nls
PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MMULTIBYTE}
CONFIGURE_ARGS+= --enable-locales-fix
.endif
.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
.if ${PORT_OPTIONS:MMSN}
LIB_DEPENDS+= curl:${PORTSDIR}/ftp/curl
.else
CONFIGURE_ARGS+= --disable-msn
2003-10-06 15:57:24 +00:00
.endif
.if ! ${PORT_OPTIONS:MYAHOO}
2003-10-06 15:57:24 +00:00
CONFIGURE_ARGS+= --disable-yahoo
.endif
.if ! ${PORT_OPTIONS:MAIM}
2003-10-06 15:57:24 +00:00
CONFIGURE_ARGS+= --disable-aim
.endif
.if ! ${PORT_OPTIONS:MIRC}
2003-10-06 15:57:24 +00:00
CONFIGURE_ARGS+= --disable-irc
.endif
.if ! ${PORT_OPTIONS:MJABBER}
2003-10-06 15:57:24 +00:00
CONFIGURE_ARGS+= --disable-jabber
.endif
.if ${PORT_OPTIONS:MGPGME}
LIB_DEPENDS+= libgpgme.so:${PORTSDIR}/security/gpgme
CONFIGURE_ARGS+= --with-gpgme=${LOCALBASE}
.else
CONFIGURE_ARGS+= --without-gpgme
2003-10-06 15:57:24 +00:00
.endif
.if ! ${PORT_OPTIONS:MRSS}
2003-10-06 15:57:24 +00:00
CONFIGURE_ARGS+= --disable-rss
.endif
.if ! ${PORT_OPTIONS:MLJ}
2003-10-06 15:57:24 +00:00
CONFIGURE_ARGS+= --disable-lj
.endif
.if ${PORT_OPTIONS:MGG}
LIB_DEPENDS+= gadu.3:${PORTSDIR}/polish/ekg
LIBGADU= -lgadu
.else
CONFIGURE_ARGS+= --disable-gg
.endif
.include <bsd.port.pre.mk>
.if ${OSVERSION} > 900007
BROKEN= fails to build with new utmpx
.endif
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
@${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}|'
.if ${PORT_OPTIONS:MDOCS}
post-install:
@${MKDIR} ${DOCSDIR}
@(cd ${WRKSRC} ; ${INSTALL_DATA} ${PORTDOCS} ${DOCSDIR})
.endif
.include <bsd.port.post.mk>