# New ports collection makefile for: gaim # Date created: 26 Mar 1999 # Whom: Jim Mock # # $FreeBSD$ # $MCom: ports/net-im/libpurple/Makefile,v 1.32 2010/05/10 04:21:19 marcus Exp $ # PORTNAME?= libpurple PORTVERSION= 2.10.6 PORTREVISION?= 0 CATEGORIES?= net-im MASTER_SITES= SF/pidgin/Pidgin/${PORTVERSION} DISTNAME= pidgin-${PORTVERSION} MAINTAINER?= marcus@FreeBSD.org COMMENT?= Backend library for the Pidgin multi-protocol messaging client USE_BZIP2= yes USE_GMAKE= yes USE_GNOME?= gnomeprefix gnomehack intlhack glib20 libxml2 GNU_CONFIGURE= yes CONFIGURE_ARGS?=--disable-gtkui \ --disable-consoleui \ --with-dynamic_prpls=${PRPL_MODULES:S/,$//} \ --enable-static \ --disable-nm CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \ PTHREAD_LIB="${PTHREAD_LIBS}" CFLAGS+= -D_XOPEN_SOURCE_EXTENDED CPPFLAGS+= -I${LOCALBASE}/include ${PTHREAD_CFLAGS} .if !defined(PIDGIN_SLAVE) # Pidgin slave ports that require the following functionality, must explicitly # set these macros themselves. USE_GETTEXT= yes USE_ICONV= yes USE_LDCONFIG= yes WANT_GNOME= yes USE_PYTHON= yes .if defined(PACKAGE_BUILDING) .undef WITHOUT_GNOME WITH_GNOME= yes .endif .endif PRPL_MODULES= OPTIONS= BONJOUR "Enable mDNS support" on \ DBUS "Enable DBUS bindings" on \ GNUTLS "Use GNUTLS for encryption support" off \ NSS "Use Mozilla NSS for encryption support" on \ SASL "Cyrus SASL support (for jabberd)" off \ GSTREAMER "Use GStreamer for playing sounds" on \ VV "Enable video and voice support" on \ IDN "Enable support for international domains" on \ PERL "Perl scripting" off \ TCLTK "Tcl/Tk scripting" off \ SAMETIME "The Lotus Sametime chat protocol" off \ SILC "The Secure Internet Live Conferencing protocol" off \ GG "The Gadu-Gadu chat protocol" on \ IRC "The Internet Relay Chat protocol" on \ JABBER "The Jabber/XMPP/Google Talk protocol" on \ MSN "The MSN Messenger protocol" on \ MYSPACE "The MySpaceIM protocol" on \ NOVELL "The Novell GroupWise chat protocol" on \ OSCAR "The AIM/ICQ/Oscar protocol" on \ QQ "The Tercent QQ chat protocol" on \ SIMPLE "The SIMPLE chat protocol" on \ YAHOO "The Yahoo! Messenger protocol" on \ ZEPHYR "The Zephyr chat protocol" on .if defined(WITH_GTKUI) OPTIONS+= GTKSPELL "Spell checking support" on \ CAP "Enable Contact Availability Prediction plugin" on .endif CONFIGURE_ARGS+=--disable-doxygen .include .if defined(WITH_TCLTK) USE_TK= yes CFLAGS+= -I${LOCALBASE}/include/tk${TK_VER} -I${LOCALBASE}/include/tcl${TCL_VER} CONFIGURE_ARGS+= --with-tclconfig=${LOCALBASE}/lib/tcl${TCL_VER} \ --with-tkconfig=${LOCALBASE}/lib/tk${TK_VER} PLIST_SUB+= TCL:="" .else CONFIGURE_ARGS+= --disable-tcl PLIST_SUB+= TCL:="@comment not installed: " .endif .include .if !defined(PIDGIN_SLAVE) .if ${HAVE_GNOME:Mgconf2}!="" || exists(${LOCALBASE}/bin/gconftool-2) USE_GNOME+= gconf2 GCONF_SCHEMAS= purple.schemas .endif .endif #.if defined(WITH_GTKUI) && ${HAVE_GNOME:Mevolutiondataserver}!="" #USE_GNOME+= evolutiondataserver #PLIST_SUB+= EVO="" #CONFIGURE_ARGS+= --enable-gevolution #.else CONFIGURE_ARGS+= --disable-gevolution PLIST_SUB+= EVO="@comment not installed: " #.endif .if !defined(WITHOUT_GSTREAMER) USE_GSTREAMER+= core good .else CONFIGURE_ARGS+=--disable-gstreamer .endif .if !defined(WITHOUT_VV) && !defined(WITHOUT_GSTREAMER) LIB_DEPENDS+= gstfarsight-0.10.0:${PORTSDIR}/net-im/farsight2 PLIST_SUB+= VV="" .else CONFIGURE_ARGS+=--disable-vv PLIST_SUB+= VV="@comment " .endif .if !defined(WITHOUT_IDN) LIB_DEPENDS+= idn.17:${PORTSDIR}/dns/libidn .else CONFIGURE_ARGS+=--disable-idn .endif .if defined(WITH_GTKUI) && !defined(WITHOUT_CAP) LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3 CONFIGURE_ARGS+=--enable-cap PLIST_SUB+= CAP="" .else CONFIGURE_ARGS+=--disable-cap PLIST_SUB+= CAP="@comment not installed: " .endif .if defined(WITH_GNUTLS) LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls CONFIGURE_ARGS+= --enable-gnutls=yes PLIST_SUB+= GNUTLS="" .else CONFIGURE_ARGS+= --enable-gnutls=no PLIST_SUB+= GNUTLS="@comment " .endif .if !defined(WITHOUT_NSS) LIB_DEPENDS+= nss3:${PORTSDIR}/security/nss CONFIGURE_ARGS+= --enable-nss=yes \ --with-nspr-includes=${LOCALBASE}/include/nspr \ --with-nspr-libs=${LOCALBASE}/lib \ --with-nss-includes=${LOCALBASE}/include/nss/nss \ --with-nss-libs=${LOCALBASE}/lib/nss PLIST_SUB+= NSS="" .else CONFIGURE_ARGS+= --enable-nss=no PLIST_SUB+= NSS="@comment " .endif .if defined(WITH_SASL) LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2 CONFIGURE_ARGS+= --enable-cyrus-sasl .endif .if !defined(WITHOUT_BONJOUR) LIB_DEPENDS+= avahi-client.3:${PORTSDIR}/net/avahi-app PLIST_SUB+= BONJOUR="" PRPL_MODULES:= bonjour,${PRPL_MODULES} .else CONFIGURE_ARGS+=--disable-avahi PLIST_SUB+= BONJOUR="@comment not installed: " .endif .if defined(WITH_GTKUI) && !defined(WITHOUT_GTKSPELL) LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell .else CONFIGURE_ARGS+= --disable-gtkspell .endif .if !defined(WITHOUT_DBUS) LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib .if !defined(PIDGIN_SLAVE) RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus .endif CONFIGURE_ARGS+= --enable-dbus PLIST_SUB+= DBUS="" .else CONFIGURE_ARGS+= --disable-dbus PLIST_SUB+= DBUS="@comment not installed: " .endif .if defined(WITH_PERL) USE_PERL5= yes CONFIGURE_ARGS+= --with-perl-lib=site PLIST_SUB+= PERL:="" .if !defined(PIDGIN_SLAVE) MAN3+= Purple.3 .endif .else CONFIGURE_ARGS+= --disable-perl PLIST_SUB+= PERL:="@comment not installed: " .endif .if defined(WITH_SAMETIME) LIB_DEPENDS+= meanwhile.1:${PORTSDIR}/net-im/meanwhile PLIST_SUB+= SAMETIME="" PRPL_MODULES:= sametime,${PRPL_MODULES} .else PLIST_SUB+= SAMETIME="@comment not installed: " CONFIGURE_ARGS+=--disable-meanwhile .endif .if defined(WITH_SILC) LIB_DEPENDS+= silcclient-1.1:${PORTSDIR}/devel/silc-toolkit CONFIGURE_ARGS+= --with-silc-includes=${LOCALBASE}/include/silc \ --with-silc-libs=${LOCALBASE}/lib PLIST_SUB+= SILC="" PRPL_MODULES:= silc,${PRPL_MODULES} .else PLIST_SUB+= SILC="@comment not installed: " .endif .if !defined(WITHOUT_GG) PLIST_SUB+= GG="" PRPL_MODULES:= gg,${PRPL_MODULES} .else PLIST_SUB+= GG="@comment not installed: " .endif .if !defined(WITHOUT_IRC) PLIST_SUB+= IRC="" PRPL_MODULES:= irc,${PRPL_MODULES} .else PLIST_SUB+= IRC="@comment not installed: " .endif .if !defined(WITHOUT_JABBER) PLIST_SUB+= JABBER="" PRPL_MODULES:= jabber,${PRPL_MODULES} .else PLIST_SUB+= JABBER="@comment not installed: " .endif .if !defined(WITHOUT_MSN) PLIST_SUB+= MSN="" PRPL_MODULES:= msn,${PRPL_MODULES} .else PLIST_SUB+= MSN="@comment not installed: " .endif .if !defined(WITHOUT_MYSPACE) PLIST_SUB+= MYSPACE="" PRPL_MODULES:= myspace,${PRPL_MODULES} .else PLIST_SUB+= MYSPACE="@comment not installed: " .endif .if !defined(WITHOUT_NOVELL) PLIST_SUB+= NOVELL="" PRPL_MODULES:= novell,${PRPL_MODULES} .else PLIST_SUB+= NOVELL="@comment not installed: " .endif .if !defined(WITHOUT_OSCAR) PLIST_SUB+= OSCAR="" PRPL_MODULES:= oscar,${PRPL_MODULES} .else PLIST_SUB+= OSCAR="@comment not installed: " .endif #.if !defined(WITHOUT_QQ) #PLIST_SUB+= QQ="" #PRPL_MODULES:= qq,${PRPL_MODULES} #.else #PLIST_SUB+= QQ="@comment not installed: " #.endif .if !defined(WITHOUT_SIMPLE) PLIST_SUB+= SIMPLE="" PRPL_MODULES:= simple,${PRPL_MODULES} .else PLIST_SUB+= SIMPLE="@comment not installed: " .endif .if !defined(WITHOUT_YAHOO) PLIST_SUB+= YAHOO="" PRPL_MODULES:= yahoo,${PRPL_MODULES} .else PLIST_SUB+= YAHOO="@comment not installed: " .endif .if !defined(WITHOUT_ZEPHYR) PLIST_SUB+= ZEPHYR="" PRPL_MODULES:= zephyr,${PRPL_MODULES} .else PLIST_SUB+= ZEPHYR="@comment not installed: " .endif pre-everything:: .if defined(WITHOUT_GNUTLS) && defined(WITHOUT_NSS) @${ECHO_MSG} "WARNING: In order to use MSN, you must enable the GNUTLS and/or NSS options." .endif post-patch: @${REINPLACE_CMD} -e 's|-lpthreads|${PTHREAD_LIBS:S/"//g}|g' \ -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \ -e 's|-lpanel |-lpanel -lncurses|g' \ -e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g' \ -e 's|-lsilc -lsilcclient ${PTHREAD_LIBS} $$LIBDL|-lsilc -lsilcclient ${PTHREAD_LIBS} -liconv|' \ -e 's|TCL_VERSION found but 8.3 required|TCL_VERSION found but ${TCLTK_VER} required|g' \ -e 's|TCL_MINOR_VERSION" -ne 3|TCL_MINOR_VERSION" -ne ${TCLTK_VER:E}|' \ ${WRKSRC}/configure @${REINPLACE_CMD} -e 's|/bin/bash|${SH}|' \ ${WRKSRC}/libpurple/purple-send \ ${WRKSRC}/libpurple/purple-send-async @${REINPLACE_CMD} -e 's|/python|/env python|' \ ${WRKSRC}/libpurple/purple-remote \ ${WRKSRC}/libpurple/purple-url-handler .if defined(PIDGIN_SLAVE) @${FIND} ${BUILD_WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \ 's|[$$][(]top_builddir[)]/libpurple/libpurple.la|${LOCALBASE}/lib/libpurple.la|g' .endif @${FIND} ${WRKSRC} -type f | ${XARGS} ${TOUCH} .include 5-081-1/+2 * Update to 1.6.5.2arved2005-05-084-57/+40 * Update to 1.6aarved2005-05-083-10/+7 * - Fix build on 4-stablearved2005-05-084-11/+30 * Fix dependenciesarved2005-05-081-9/+3 * Update to 0.5arved2005-05-082-5/+6 * Update to 0.43arved2005-05-083-8/+6 * Previous download URL was wrong, and couldn't fetch archive.thierry2005-05-082-4/+4 * unbreak build on sparc64 (remove NOT_FOR_ARCH)oliver2005-05-082-1/+16 * xrally --> ports/games/xrallyedwin2005-05-081-0/+1 * New port: xrallyedwin2005-05-086-0/+254 * fix pkg-plistoliver2005-05-081-0/+1 * fix build on alphaoliver2005-05-084-8/+89 * p5-Catalyst-Plugin-Session-FastMmap --> ports/www/p5-Catalyst-Plugin-Sessio...lth2005-05-081-0/+1 * Add p5-Catalyst-Plugin-Session-FastMmap 0.09, FastMmap sessions forlth2005-05-085-0/+50 * Upgrade to 1709_RC5.thierry2005-05-084-6/+6 * - Implement OPTIONSsem2005-05-083-16/+35 * 1: update to 20050507vanilla2005-05-0810-52/+30 * - Fix build on CURRENT (we have more math functions now)sem2005-05-081-3/+6 * - Use mime.types from misc/mime-supportoliver2005-05-082-5/+2 * last commit was done by using:oliver2005-05-080-0/+0 * - Use mime.types from misc/mime-supportoliver2005-05-084-12/+6 * o Add ja-postgresql80-man 8.0.2, Japanese online manualnork2005-05-0819-303/+77 * py-tvgrab --> ports/textproc/py-tvgrablioux2005-05-081-0/+1 * New port py-TVGrab version 0.5.1: A xmltv python library to writelioux2005-05-085-0/+108 * Chase dependency on p5-DBD-Pg.nork2005-05-087-18/+52 * Fix PLIST typolioux2005-05-081-1/+1 * py-dateutil --> ports/devel/py-dateutillioux2005-05-081-0/+1 * Add LATEST_LINK.nork2005-05-081-0/+1 * New port py-dateutil version 0.9: Provides powerful extensions to the standar...lioux2005-05-085-0/+62 * Add CONFLICTS p5-DBD-Pg and p5-DBD-Pg-13, each other.nork2005-05-082-0/+4 * p5-DBD-Pg-13 --> ports/databases/p5-DBD-Pg-13nork2005-05-081-0/+1 * Add p5-DBD-Pg-13 1.32, Provides access to PostgreSQLnork2005-05-086-26/+125 * - Add SSE support that is auto-detected from MACHINE_CPU:Msseahze2005-05-081-1/+7 * Fix the build on 4.X.marcus2005-05-081-0/+12 * Changed MASTER_SITES because of missing the distfile.sumikawa2005-05-081-1/+1 * - Update to 1.1.8ahze2005-05-083-7/+18 * - Update to 1.0.5ahze2005-05-083-20/+10 * Update to 1.1.perky2005-05-086-18/+14 * - Add missing gconf schema for djvaahze2005-05-081-0/+1 * Fix the build with Glib/GTK+ 1.2.marcus2005-05-084-8/+170 * Use a LIB_DEPENDS to bring in the libsoup dependency. This will be changedmarcus2005-05-081-1/+1 * use gnomehack instead of own REINPLACE_CMD to fix the pkgconfig locationoliver2005-05-081-3/+3 * use gnomehack instead of own REINPLACE_CMD to fix the pkgconfig locationoliver2005-05-081-6/+1 * Unbreak, pkg-plist was fixed in graphics/jumpgislawrance2005-05-081-2/+0 * Fix pkg-plist for packageslawrance2005-05-081-0/+1 * BROKEN: Installs file in /etckris2005-05-081-0/+2 * BROKEN: incomplete pkg-plistkris2005-05-082-0/+4 * BROKEN: Incomplete pkg-plistkris2005-05-087-0/+14 * Mark BROKEN on sparc64.thierry2005-05-081-1/+7 * Update to adzap 20050506kris2005-05-082-3/+3 * Update to 2.0.a2jylefort2005-05-083-9/+13 * childsplay_plugins --> ports/games/childsplay_pluginspav2005-05-081-0/+1 * Additional games for childsplay.pav2005-05-087-0/+360 * - Package score filepav2005-05-084-17/+11 * Update to 2.7.6jylefort2005-05-0818-114/+48 * Unbreak with new pkgconfigkwm2005-05-08