1999-04-19 02:15:51 +02:00
|
|
|
# New ports collection makefile for: gaim
|
|
|
|
# Date created: 26 Mar 1999
|
1999-08-12 11:20:45 +02:00
|
|
|
# Whom: Jim Mock <jim@FreeBSD.org>
|
1999-08-30 16:24:37 +02:00
|
|
|
# $FreeBSD$
|
1999-04-19 02:15:51 +02:00
|
|
|
#
|
|
|
|
|
2002-02-20 08:55:15 +01:00
|
|
|
PORTNAME= gaim
|
2004-01-10 20:19:00 +01:00
|
|
|
PORTVERSION= 0.75
|
2004-03-25 18:38:45 +01:00
|
|
|
PORTREVISION= 8
|
2002-03-24 06:59:08 +01:00
|
|
|
CATEGORIES?= net
|
2002-09-13 21:40:59 +02:00
|
|
|
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
|
2000-06-14 15:21:38 +02:00
|
|
|
MASTER_SITE_SUBDIR= ${PORTNAME}
|
1999-04-19 02:15:51 +02:00
|
|
|
|
2002-04-06 01:26:36 +02:00
|
|
|
MAINTAINER?= marcus@FreeBSD.org
|
2003-04-05 19:55:30 +02:00
|
|
|
COMMENT= Gtk+-2.0 open-source 'clone' of AOL's Instant Messenger client
|
2002-02-20 08:55:15 +01:00
|
|
|
|
2003-10-10 23:20:36 +02:00
|
|
|
LIB_DEPENDS= startup-notification-1.0:${PORTSDIR}/x11/startup-notification
|
|
|
|
|
2003-11-01 01:47:00 +01:00
|
|
|
CONFLICTS?= ja-gaim-*
|
|
|
|
|
2002-02-20 08:55:15 +01:00
|
|
|
USE_X_PREFIX= yes
|
|
|
|
USE_GMAKE= yes
|
2002-06-26 02:31:45 +02:00
|
|
|
USE_REINPLACE= yes
|
2003-04-05 19:55:30 +02:00
|
|
|
USE_GNOME= gnomeprefix gnomehack gtk20
|
2002-06-26 02:31:45 +02:00
|
|
|
USE_PERL5= yes
|
2003-09-03 03:13:36 +02:00
|
|
|
USE_BZIP2= yes
|
2003-07-17 06:54:47 +02:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
GNU_CONFIGURE= yes
|
2003-10-10 19:33:31 +02:00
|
|
|
CONFIGURE_ARGS= --enable-static=yes
|
2003-10-13 06:42:36 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include -I${X11BASE}/include ${PTHREAD_CFLAGS}" \
|
|
|
|
LIBS="-L${LOCALBASE}/lib -L${X11BASE}/lib ${PTHREAD_LIBS}" \
|
2003-10-13 00:44:44 +02:00
|
|
|
PTHREAD_LIB="${PTHREAD_LIBS}"
|
1999-05-29 05:56:15 +02:00
|
|
|
|
2003-07-19 02:26:21 +02:00
|
|
|
MAN1= gaim.1 gaim-remote.1
|
2000-03-27 08:07:33 +02:00
|
|
|
|
2003-10-21 08:12:29 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2003-10-12 01:03:16 +02:00
|
|
|
.if exists(${LOCALBASE}/lib/libgnutls.so) && !defined(WITHOUT_GNUTLS)
|
2003-09-26 22:24:27 +02:00
|
|
|
WITH_GNUTLS= yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_GNUTLS)
|
|
|
|
LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gnutls
|
|
|
|
.endif
|
|
|
|
|
2003-12-18 04:49:21 +01:00
|
|
|
.if !defined(WITHOUT_NSS)
|
2003-10-10 19:33:31 +02:00
|
|
|
LIB_DEPENDS+= nss3:${PORTSDIR}/security/nss
|
|
|
|
CONFIGURE_ARGS+= --with-nspr-includes=${LOCALBASE}/include/nspr \
|
|
|
|
--with-nspr-libs=${LOCALBASE}/lib \
|
|
|
|
--with-nss-includes=${LOCALBASE}/include/nss/nss \
|
|
|
|
--with-nss-libs=${LOCALBASE}/lib
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --enable-nss=no
|
|
|
|
.endif
|
|
|
|
|
2003-09-03 03:13:36 +02:00
|
|
|
.if ${PERL_LEVEL} < 500800
|
|
|
|
CONFIGURE_ARGS+= --disable-perl
|
|
|
|
PLIST_SUB+= PERL:="@comment "
|
|
|
|
.else
|
2003-10-13 23:30:41 +02:00
|
|
|
CONFIGURE_ARGS+= --with-perl-lib=site
|
2003-09-03 03:13:36 +02:00
|
|
|
PLIST_SUB+= PERL:=""
|
|
|
|
.endif
|
|
|
|
|
2003-04-05 19:55:30 +02:00
|
|
|
.ifndef(WITHOUT_GTKSPELL)
|
|
|
|
LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell2
|
2003-04-10 20:58:35 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --disable-gtkspell
|
2002-04-15 23:47:48 +02:00
|
|
|
.endif
|
2002-07-28 19:49:26 +02:00
|
|
|
|
2003-09-26 22:24:27 +02:00
|
|
|
.if defined(TCL_VER)
|
|
|
|
_TCL_DVER= ${TCL_VER:S/.//}
|
|
|
|
_TCL_VER= ${_TCL_DVER:C/(.)/\1./}
|
|
|
|
.if ${_TCL_VER} != 8.3
|
|
|
|
. error Currently GAIM can only use Tcl/Tk 8.3
|
|
|
|
.endif
|
2003-12-17 20:12:25 +01:00
|
|
|
LIB_DEPENDS+= tk${_TCL_DVER}:${PORTSDIR}/x11-toolkits/tk${_TCL_DVER}
|
2003-09-26 22:24:27 +02:00
|
|
|
CONFIGURE_ARGS+=--with-tclconfig=${LOCALBASE}/lib/tcl${_TCL_VER} \
|
|
|
|
--with-tkconfig=${LOCALBASE}/lib/tk${_TCL_VER}
|
|
|
|
CFLAGS+= -I${LOCALBASE}/include/tk${_TCL_VER} -I${LOCALBASE}/include/tcl${_TCL_VER}
|
|
|
|
PLIST_SUB+= TCL:=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= TCL:="@comment "
|
|
|
|
.endif
|
|
|
|
|
2003-04-05 19:55:30 +02:00
|
|
|
.ifndef(WITHOUT_AUDIO)
|
2003-04-05 20:28:52 +02:00
|
|
|
LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao \
|
|
|
|
audiofile.0:${PORTSDIR}/audio/libaudiofile
|
2003-04-10 20:58:35 +02:00
|
|
|
.else
|
2003-04-11 04:50:03 +02:00
|
|
|
CONFIGURE_ARGS+= --disable-audio
|
2000-10-05 09:22:56 +02:00
|
|
|
.endif
|
2000-10-03 20:35:24 +02:00
|
|
|
|
2003-04-05 19:55:30 +02:00
|
|
|
pre-everything::
|
|
|
|
@${ECHO_MSG} ""
|
|
|
|
@${ECHO_MSG} "Gaim has the following tunable option(s):"
|
2003-09-26 22:24:27 +02:00
|
|
|
@${ECHO_MSG} " WITHOUT_GTKSPELL Turns off spell checking"
|
|
|
|
@${ECHO_MSG} " WITHOUT_AUDIO Disable audio support"
|
2003-10-23 22:46:11 +02:00
|
|
|
@${ECHO_MSG} " WITH_GNUTLS Enable GNUTLS encryption support"
|
|
|
|
@${ECHO_MSG} " WITHOUT_GNUTLS Disable GNUTLS encryption support"
|
|
|
|
@${ECHO_MSG} " WITHOUT_NSS Disable Mozilla NSS encryption support"
|
2003-09-26 22:24:27 +02:00
|
|
|
@${ECHO_MSG} " TCL_VER Use Tcl/Tk (version)"
|
2003-04-05 19:55:30 +02:00
|
|
|
@${ECHO_MSG} ""
|
2003-12-18 04:49:21 +01:00
|
|
|
.if !defined(WITH_GNUTLS) && defined(WITHOUT_NSS)
|
2004-01-11 05:20:52 +01:00
|
|
|
@${ECHO_MSG} "WARNING: In order to use MSN, you must define WITH_GNUTLS and/or WITH_NSS."
|
2003-10-10 23:27:52 +02:00
|
|
|
@${ECHO_MSG} ""
|
|
|
|
.endif
|
2002-10-12 06:11:58 +02:00
|
|
|
|
2002-07-11 19:47:16 +02:00
|
|
|
post-patch:
|
2003-09-26 22:24:27 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|-lpthreads|${PTHREAD_LIBS:S/"//g}|g' \
|
|
|
|
-e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
|
|
|
|
-e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g' \
|
|
|
|
-e 's|TCL_VERSION found but 8.3 required|TCL_VERSION found but ${_TCL_VER} required|g' \
|
|
|
|
-e 's|TCL_MINOR_VERSION" -ne 3|TCL_MINOR_VERSION" -ne ${_TCL_VER:E}|' \
|
|
|
|
${WRKSRC}/configure
|
1999-04-19 02:15:51 +02:00
|
|
|
|
2003-09-03 03:13:36 +02:00
|
|
|
.include <bsd.port.post.mk>
|