2006-10-14 11:09:13 +02:00
|
|
|
# New ports collection makefile for: gaim
|
|
|
|
# Date created: 26 Mar 1999
|
|
|
|
# Whom: Jim Mock <jim@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
# $MCom: ports/net-im/libgaim/Makefile,v 1.10 2007/03/11 06:36:56 marcus Exp $
|
2006-10-14 11:09:13 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= gaim
|
2007-01-20 08:32:47 +01:00
|
|
|
PORTVERSION= 2.0.0.b6
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
PORTREVISION?= 7
|
2006-10-14 11:09:13 +02:00
|
|
|
CATEGORIES?= net-im
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
2006-10-31 03:49:59 +01:00
|
|
|
PKGNAMEPREFIX?= lib
|
2007-01-20 08:32:47 +01:00
|
|
|
DISTNAME= ${PORTNAME}-2.0.0beta6
|
2006-10-14 11:09:13 +02:00
|
|
|
|
2006-10-31 03:49:59 +01:00
|
|
|
MAINTAINER?= marcus@FreeBSD.org
|
|
|
|
COMMENT?= Backend library for the Gaim multi-protocol messaging client
|
2006-10-14 11:09:13 +02:00
|
|
|
|
|
|
|
CONFLICTS?= ja-gaim-[0-9]* gaim-1*
|
|
|
|
|
|
|
|
USE_BZIP2= yes
|
2006-10-31 03:49:59 +01:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_GNOME?= gnomeprefix gnomehack intlhack glib20
|
2006-10-14 11:09:13 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2006-10-31 03:49:59 +01:00
|
|
|
CONFIGURE_ARGS?=--disable-gtkui \
|
|
|
|
--disable-consoleui \
|
|
|
|
--with-dynamic_prpls=${PRPL_MODULES}
|
2006-10-14 11:09:13 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" \
|
|
|
|
PTHREAD_LIB="${PTHREAD_LIBS}"
|
|
|
|
|
2006-10-31 03:49:59 +01:00
|
|
|
.if !defined(GAIM_SLAVE)
|
|
|
|
# Gaim slave ports that require the following functionality, must explicitly
|
|
|
|
# set these macros themselves.
|
|
|
|
USE_GETTEXT= yes
|
2007-01-22 07:28:14 +01:00
|
|
|
USE_ICONV= yes
|
2006-10-31 03:49:59 +01:00
|
|
|
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
|
2006-10-14 11:09:13 +02:00
|
|
|
|
|
|
|
OPTIONS= SILC "Secure Internet Live Conferencing support" off \
|
|
|
|
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 \
|
2006-10-31 03:49:59 +01:00
|
|
|
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
|
2006-10-14 11:09:13 +02:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2006-11-04 21:22:44 +01:00
|
|
|
.if ${OSVERSION} < 500000
|
|
|
|
IGNORE= does not build on 4.X
|
|
|
|
.endif
|
|
|
|
|
2007-04-06 19:58:45 +02:00
|
|
|
.if ${OSVERSION} > 700032 || (${OSVERSION} < 700000 && ${OSVERSION} > 602106)
|
2007-03-09 13:22:46 +01:00
|
|
|
CFLAGS+= -D_XOPEN_SOURCE_EXTENDED
|
|
|
|
.endif
|
|
|
|
|
2006-10-31 03:49:59 +01:00
|
|
|
.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}!=""
|
2006-10-14 11:09:13 +02:00
|
|
|
USE_GNOME+= evolutiondataserver
|
|
|
|
PLIST_SUB+= EVO=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gevolution
|
|
|
|
PLIST_SUB+= EVO="@comment not installed: "
|
|
|
|
.endif
|
|
|
|
|
2006-10-31 03:49:59 +01:00
|
|
|
.if defined(WITH_GTKUI) && !defined(WITHOUT_GSTREAMER)
|
2007-01-17 06:35:08 +01:00
|
|
|
USE_GSTREAMER+= core good
|
2006-10-31 03:49:59 +01:00
|
|
|
.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
|
|
|
|
|
2006-10-14 11:09:13 +02:00
|
|
|
.if defined(WITH_GNUTLS)
|
|
|
|
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
|
|
|
|
CONFIGURE_ARGS+= --enable-gnutls=yes
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-gnutls=no
|
|
|
|
.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 \
|
Presenting GNOME 2.18 for FreeBSD. GNOME 2.18 is a departure from recent GNOME
releases in that it focuses more on stability and functionality than on
new features. Not that it doesn't have its share of new and exciting
items. See http://www.gnome.org/start/2.18/ for all the goodies in
this release.
GNOME 2.18 for FreeBSD would not have been possible without the hard work
of the FreeBSD GNOME Team and our intrepid band of testers including
J. W. Ballantine, Pawel Worach, Yasuda Keisuke, Pascal Hofstee, miwi,
Yoshihiro Ota, Vladimir Grebenschikov, Jukka A. Ukkonen,
Phillip Neumann, Franz Klammer, and Neal Delmonico.
2007-03-19 06:14:07 +01:00
|
|
|
--with-nss-libs=${LOCALBASE}/lib/nss
|
2006-10-14 11:09:13 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-nss=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_SASL)
|
|
|
|
LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2
|
|
|
|
CONFIGURE_ARGS+= --enable-cyrus-sasl
|
|
|
|
.endif
|
|
|
|
|
2006-10-31 03:49:59 +01:00
|
|
|
.if defined(WITH_SILC)
|
2007-01-22 07:28:14 +01:00
|
|
|
LIB_DEPENDS+= silcclient-1.0.4:${PORTSDIR}/devel/silc-toolkit
|
|
|
|
CONFIGURE_ARGS+= --with-silc-includes=${LOCALBASE}/include/silc \
|
|
|
|
--with-silc-libs=${LOCALBASE}/lib
|
2006-10-31 03:49:59 +01:00
|
|
|
PLIST_SUB+= SILC=""
|
|
|
|
PRPL_MODULES:= ${PRPL_MODULES},silc
|
2006-10-14 11:09:13 +02:00
|
|
|
.else
|
2006-10-31 03:49:59 +01:00
|
|
|
PLIST_SUB+= SILC="@comment not installed: "
|
2006-10-14 11:09:13 +02:00
|
|
|
.endif
|
|
|
|
|
2006-10-31 03:49:59 +01:00
|
|
|
.if !defined(WITHOUT_BONJOUR)
|
2007-02-11 00:38:51 +01:00
|
|
|
LIB_DEPENDS+= avahi-core.5:${PORTSDIR}/net/avahi
|
2006-10-31 03:49:59 +01:00
|
|
|
PLIST_SUB+= BONJOUR=""
|
|
|
|
PRPL_MODULES:= ${PRPL_MODULES},bonjour
|
2006-10-14 11:09:13 +02:00
|
|
|
.else
|
2006-10-31 03:49:59 +01:00
|
|
|
PLIST_SUB+= BONJOUR="@comment not installed: "
|
2006-10-14 11:09:13 +02:00
|
|
|
.endif
|
|
|
|
|
2006-10-31 03:49:59 +01:00
|
|
|
.if defined(WITH_SAMETIME)
|
|
|
|
LIB_DEPENDS+= meanwhile.1:${PORTSDIR}/net-im/meanwhile
|
|
|
|
PLIST_SUB+= SAMETIME=""
|
|
|
|
PRPL_MODULES:= ${PRPL_MODULES},sametime
|
2006-10-14 11:09:13 +02:00
|
|
|
.else
|
2006-10-31 03:49:59 +01:00
|
|
|
PLIST_SUB+= SAMETIME="@comment not installed: "
|
2006-10-14 11:09:13 +02:00
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_TCLTK)
|
|
|
|
TCLTK_VER?= 8.4 # user can override it
|
|
|
|
TCLTK_VER_NODOT= ${TCLTK_VER:S/.//}
|
|
|
|
.if ${TCLTK_VER} != 8.3 && ${TCLTK_VER} != 8.4
|
|
|
|
.error Currently GAIM can only use Tcl/Tk 8.3 or 8.4
|
|
|
|
.endif
|
|
|
|
LIB_DEPENDS+= tk${TCLTK_VER_NODOT}:${PORTSDIR}/x11-toolkits/tk${TCLTK_VER_NODOT}
|
|
|
|
CONFIGURE_ARGS+= --with-tclconfig=${LOCALBASE}/lib/tcl${TCLTK_VER} \
|
|
|
|
--with-tkconfig=${LOCALBASE}/lib/tk${TCLTK_VER}
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include/tk${TCLTK_VER} -I${LOCALBASE}/include/tcl${TCLTK_VER}
|
|
|
|
PLIST_SUB+= TCL:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= TCL:="@comment not installed: "
|
|
|
|
.endif
|
|
|
|
|
2007-01-17 06:35:08 +01:00
|
|
|
.if !defined(WITHOUT_DBUS)
|
2006-10-31 03:49:59 +01:00
|
|
|
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
|
|
|
|
|
2006-10-14 11:09:13 +02:00
|
|
|
pre-everything::
|
|
|
|
.if defined(WITH_PERL) && ${PERL_LEVEL} < 500800
|
|
|
|
@${ECHO_MSG} "WARNING: Perl scripting disabled (Perl 5.8 requirement not met)."
|
|
|
|
.endif
|
|
|
|
.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' \
|
2006-10-31 03:49:59 +01:00
|
|
|
-e 's|-lpanel |-lpanel -lncurses|g' \
|
2006-10-14 11:09:13 +02:00
|
|
|
-e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g' \
|
2007-01-22 07:28:14 +01:00
|
|
|
-e 's|-lsilc -lsilcclient ${PTHREAD_LIBS} $$LIBDL|-lsilc -lsilcclient ${PTHREAD_LIBS} -liconv|' \
|
2006-10-14 11:09:13 +02:00
|
|
|
-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
|
2007-02-04 01:24:39 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|@bindir@|${PREFIX}/bin|' \
|
2006-10-14 11:09:13 +02:00
|
|
|
${WRKSRC}/gaim.service.in
|
|
|
|
@${REINPLACE_CMD} -e 's|/bin/bash|${SH}|' \
|
2006-10-31 03:49:59 +01:00
|
|
|
${WRKSRC}/libgaim/gaim-send \
|
|
|
|
${WRKSRC}/libgaim/gaim-send-async
|
2007-01-22 00:02:33 +01:00
|
|
|
@${REINPLACE_CMD} -e 's|/python|/env python|' \
|
2007-03-11 07:35:40 +01:00
|
|
|
${WRKSRC}/libgaim/gaim-remote \
|
|
|
|
${WRKSRC}/libgaim/gaim-url-handler
|
2006-10-31 03:49:59 +01:00
|
|
|
.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
|
2006-10-14 11:09:13 +02:00
|
|
|
|
|
|
|
.include <bsd.port.post.mk>
|