aboutsummaryrefslogtreecommitdiffstats
path: root/net-im/libgaim/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'net-im/libgaim/Makefile')
-rw-r--r--net-im/libgaim/Makefile167
1 files changed, 118 insertions, 49 deletions
diff --git a/net-im/libgaim/Makefile b/net-im/libgaim/Makefile
index a5dffa2099c3..e42f40fd0f1f 100644
--- a/net-im/libgaim/Makefile
+++ b/net-im/libgaim/Makefile
@@ -3,53 +3,82 @@
# Whom: Jim Mock <jim@FreeBSD.org>
#
# $FreeBSD$
-# $MCom: ports/net-im/gaim-devel/Makefile,v 1.5 2006/10/13 05:45:01 mezz Exp $
+# $MCom: ports-stable/net-im/libgaim/Makefile,v 1.4 2006/10/29 18:55:28 marcus Exp $
#
PORTNAME= gaim
-PORTVERSION= 2.0.0.b3.1
-PORTREVISION= 3
+PORTVERSION= 2.0.0.b4
+PORTREVISION?= 0
CATEGORIES?= net-im
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
MASTER_SITE_SUBDIR= ${PORTNAME}
-PKGNAMESUFFIX= -devel
-DISTNAME= gaim-2.0.0beta3.1
+PKGNAMEPREFIX?= lib
+DISTNAME= gaim-2.0.0beta4
-MAINTAINER= marcus@FreeBSD.org
-COMMENT= Multi-protocol instant messaging client
-
-LIB_DEPENDS= startup-notification-1.0:${PORTSDIR}/x11/startup-notification
+MAINTAINER?= marcus@FreeBSD.org
+COMMENT?= Backend library for the Gaim multi-protocol messaging client
CONFLICTS?= ja-gaim-[0-9]* gaim-1*
-USE_XLIB= yes
-USE_PYTHON= yes
-USE_GETTEXT= yes
-USE_GMAKE= yes
-USE_GNOME= gnomeprefix gnomehack intlhack gtk20
-WANT_GNOME= yes
USE_BZIP2= yes
-USE_LDCONFIG= yes
+USE_GMAKE= yes
+USE_GNOME?= gnomeprefix gnomehack intlhack glib20
GNU_CONFIGURE= yes
+CONFIGURE_ARGS?=--disable-gtkui \
+ --disable-consoleui \
+ --with-dynamic_prpls=${PRPL_MODULES}
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" \
PTHREAD_LIB="${PTHREAD_LIBS}"
-MAN1= gaim.1
+.if !defined(GAIM_SLAVE)
+# Gaim slave ports that require the following functionality, must explicitly
+# set these macros themselves.
+USE_GETTEXT= yes
+USE_LDCONFIG= yes
+WANT_GNOME= yes
+USE_PYTHON= yes
+
+.if defined(PACKAGE_BUILDING)
+.undef WITHOUT_GNOME
+WITH_GNOME= yes
+.endif
+
+MAN1= gaim.1 gaim-text.1
+
+.endif
+
+PRPL_MODULES= gg,irc,jabber,msn,novell,oscar,qq,simple,yahoo,zephyr
OPTIONS= SILC "Secure Internet Live Conferencing support" off \
- GTKSPELL "Spell checking support" on \
AUDIO "Audio support" on \
GNUTLS "GNUTLS encryption support" off \
NSS "Mozilla NSS encryption support" on \
SASL "Cyrus SASL support (for jabberd)" off \
DBUS "Enable DBUS bindings" on \
PERL "Perl scripting" off \
- TCLTK "Tcl/Tk scripting" off \
+ BONJOUR "Enable mDNS support" on \
+ SAMETIME "Enable Sametime client support" off \
+ TCLTK "Tcl/Tk scripting" off
+
+.if defined(WITH_GTKUI)
+OPTIONS+= GTKSPELL "Spell checking support" on \
+ GSTREAMER "Use GStreamer for playing sounds" on \
+ CAP "Enable Contact Availability Prediction plugin" on
+.endif
+
+CONFIGURE_ARGS+=--disable-doxygen
.include <bsd.port.pre.mk>
-.if ${HAVE_GNOME:Mevolutiondataserver}!=""
+.if !defined(GAIM_SLAVE)
+.if ${HAVE_GNOME:Mgconf2}!="" || exists(${LOCALBASE}/bin/gconftool-2)
+USE_GNOME+= gconf2
+GCONF_SCHEMAS= gaim.schemas
+.endif
+.endif
+
+.if defined(WITH_GTKUI) && ${HAVE_GNOME:Mevolutiondataserver}!=""
USE_GNOME+= evolutiondataserver
PLIST_SUB+= EVO=""
.else
@@ -57,6 +86,20 @@ CONFIGURE_ARGS+= --disable-gevolution
PLIST_SUB+= EVO="@comment not installed: "
.endif
+.if defined(WITH_GTKUI) && !defined(WITHOUT_GSTREAMER)
+LIB_DEPENDS+= gstreamer-0.10.0:${PORTSDIR}/multimedia/gstreamer
+.else
+CONFIGURE_ARGS+=--disable-gstreamer
+.endif
+
+.if defined(WITH_GTKUI) && !defined(WITHOUT_CAP)
+LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3
+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
@@ -64,14 +107,6 @@ CONFIGURE_ARGS+= --enable-gnutls=yes
CONFIGURE_ARGS+= --enable-gnutls=no
.endif
-.if defined(WITH_SILC)
-LIB_DEPENDS+= silcclient-1.0.3:${PORTSDIR}/devel/silc-toolkit
-CONFIGURE_ARGS+= --with-silc-includes=${LOCALBASE}/include/silc
-PLIST_SUB+= SILC=""
-.else
-PLIST_SUB+= SILC="@comment not installed: "
-.endif
-
.if !defined(WITHOUT_NSS)
LIB_DEPENDS+= nss3:${PORTSDIR}/security/nss
CONFIGURE_ARGS+= --enable-nss=yes \
@@ -88,31 +123,29 @@ LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2
CONFIGURE_ARGS+= --enable-cyrus-sasl
.endif
-.if defined(WITH_DBUS)
-LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
-RUN_DEPENDS+= ${PYTHON_SITELIBDIR}/dbus/__init__.py:${PORTSDIR}/devel/py-dbus
-CONFIGURE_ARGS+= --enable-dbus
-PLIST_SUB+= DBUS=""
+.if defined(WITH_SILC)
+LIB_DEPENDS+= silcclient-1.0.3:${PORTSDIR}/devel/silc-toolkit
+CONFIGURE_ARGS+= --with-silc-includes=${LOCALBASE}/include/silc
+PLIST_SUB+= SILC=""
+PRPL_MODULES:= ${PRPL_MODULES},silc
.else
-CONFIGURE_ARGS+= --disable-dbus
-PLIST_SUB+= DBUS="@comment not installed: "
+PLIST_SUB+= SILC="@comment not installed: "
.endif
-.if defined(WITH_PERL) && ${PERL_LEVEL} >= 500800
-USE_PERL5= yes
-CONFIGURE_ARGS+= --with-perl-lib=site
-PLIST_SUB+= PERL:=""
-MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
-MAN3+= Gaim.3
+.if !defined(WITHOUT_BONJOUR)
+LIB_DEPENDS+= avahi-core.4:${PORTSDIR}/net/avahi
+PLIST_SUB+= BONJOUR=""
+PRPL_MODULES:= ${PRPL_MODULES},bonjour
.else
-CONFIGURE_ARGS+= --disable-perl
-PLIST_SUB+= PERL:="@comment not installed: "
+PLIST_SUB+= BONJOUR="@comment not installed: "
.endif
-.if !defined(WITHOUT_GTKSPELL)
-LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
+.if defined(WITH_SAMETIME)
+LIB_DEPENDS+= meanwhile.1:${PORTSDIR}/net-im/meanwhile
+PLIST_SUB+= SAMETIME=""
+PRPL_MODULES:= ${PRPL_MODULES},sametime
.else
-CONFIGURE_ARGS+= --disable-gtkspell
+PLIST_SUB+= SAMETIME="@comment not installed: "
.endif
.if defined(WITH_TCLTK)
@@ -137,6 +170,37 @@ LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao \
CONFIGURE_ARGS+= --disable-audio
.endif
+.if defined(WITH_DBUS)
+LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
+.if !defined(GAIM_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) && ${PERL_LEVEL} >= 500800
+USE_PERL5= yes
+CONFIGURE_ARGS+= --with-perl-lib=site
+PLIST_SUB+= PERL:=""
+.if !defined(GAIM_SLAVE)
+MAN3PREFIX= ${PREFIX}/lib/perl5/${PERL_VERSION}
+MAN3+= Gaim.3
+.endif
+.else
+CONFIGURE_ARGS+= --disable-perl
+PLIST_SUB+= PERL:="@comment not installed: "
+.endif
+
+.if defined(WITH_GTKUI) && !defined(WITHOUT_GTKSPELL)
+LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
+.else
+CONFIGURE_ARGS+= --disable-gtkspell
+.endif
+
pre-everything::
.if defined(WITH_PERL) && ${PERL_LEVEL} < 500800
@${ECHO_MSG} "WARNING: Perl scripting disabled (Perl 5.8 requirement not met)."
@@ -148,6 +212,7 @@ pre-everything::
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} -ldl|-lsilc -lsilcclient ${PTHREAD_LIBS} -liconv|' \
-e 's|TCL_VERSION found but 8.3 required|TCL_VERSION found but ${TCLTK_VER} required|g' \
@@ -155,9 +220,13 @@ post-patch:
${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|{exec_prefix}|${PREFIX}|' \
${WRKSRC}/gaim.service.in
- @${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
- ${WRKSRC}/src/gaim-remote.py
@${REINPLACE_CMD} -e 's|/bin/bash|${SH}|' \
- ${WRKSRC}/src/gaim-send ${WRKSRC}/src/gaim-send-async
+ ${WRKSRC}/libgaim/gaim-send \
+ ${WRKSRC}/libgaim/gaim-send-async
+.if defined(GAIM_SLAVE)
+ @${FIND} ${BUILD_WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
+ 's|[$$][(]top_builddir[)]/libgaim/libgaim.la|${LOCALBASE}/lib/libgaim.la|g' \
+ ${WRKSRC}/gtk/Makefile.in
+.endif
.include <bsd.port.post.mk>