diff options
author | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-01 19:33:33 +0800 |
---|---|---|
committer | ahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059> | 2007-05-01 19:33:33 +0800 |
commit | c162eef2b49772e82a79e85393717ea5bf42bd9b (patch) | |
tree | 4f7040f565eb58da6c46017d3b827a57e7d961cc /net-im/gaim/Makefile | |
parent | 0e22d0ed82e459e26b823ea055bdd9977ad8da83 (diff) | |
download | marcuscom-ports-c162eef2b49772e82a79e85393717ea5bf42bd9b.tar.gz marcuscom-ports-c162eef2b49772e82a79e85393717ea5bf42bd9b.tar.zst marcuscom-ports-c162eef2b49772e82a79e85393717ea5bf42bd9b.zip |
share/gnome -> share (gnome2-fifth-toe is done!)
git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@8715 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'net-im/gaim/Makefile')
-rw-r--r-- | net-im/gaim/Makefile | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/net-im/gaim/Makefile b/net-im/gaim/Makefile new file mode 100644 index 000000000..bf12f71a9 --- /dev/null +++ b/net-im/gaim/Makefile @@ -0,0 +1,141 @@ +# New ports collection makefile for: gaim +# Date created: 26 Mar 1999 +# Whom: Jim Mock <jim@FreeBSD.org> +# +# $FreeBSD$ +# + +PORTNAME= gaim +PORTVERSION= 1.5.0 +PORTREVISION= 11 +CATEGORIES?= net-im +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER?= marcus@FreeBSD.org +COMMENT= Multi-protocol instant messaging client + +LIB_DEPENDS= startup-notification-1.0:${PORTSDIR}/x11/startup-notification + +CONFLICTS?= ja-gaim-[0-9]* gaim-devel-2* + +USE_AUTOTOOLS= libtool:15 +USE_XLIB= yes +USE_GETTEXT= yes +USE_GMAKE= yes +USE_GNOME= gnomeprefix gnomehack gtk20 +WANT_GNOME= yes +USE_BZIP2= yes +USE_LDCONFIG= yes +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --enable-static=yes +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 gaim-remote.1 + +OPTIONS= BIG5 "With Big5 Chinese input fix" off \ + 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 \ + PERL "Perl scripting" off \ + TCLTK "Tcl/Tk scripting" off + +.include <bsd.port.pre.mk> + +.if ${HAVE_GNOME:Mevolutiondataserver}!="" +USE_GNOME+= evolutiondataserver +PLIST_SUB+= EVO="" +.else +CONFIGURE_ARGS+=--disable-gevolution +PLIST_SUB+= EVO="@comment " +.endif + +.if defined(WITH_GNUTLS) +LIB_DEPENDS+= gnutls.15:${PORTSDIR}/security/gnutls +.else +CONFIGURE_ARGS+= --disable-gnutls +.endif + +.if defined(WITH_SILC) +LIB_DEPENDS+= silcclient-1.0.4:${PORTSDIR}/devel/silc-toolkit +CONFIGURE_ARGS+= --with-silc-includes=${LOCALBASE}/include/silc +PLIST_SUB+= SILC="" +.else +PLIST_SUB+= SILC="@comment " +.endif + +.if !defined(WITHOUT_NSS) +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/nss +.else +CONFIGURE_ARGS+= --disable-nss +.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 +.else +CONFIGURE_ARGS+= --disable-perl +PLIST_SUB+= PERL:="@comment " +.endif + +.if !defined(WITHOUT_GTKSPELL) +LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell +.else +CONFIGURE_ARGS+= --disable-gtkspell +.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 " +.endif + +.if !defined(WITHOUT_AUDIO) +LIB_DEPENDS+= ao.3:${PORTSDIR}/audio/libao \ + audiofile.0:${PORTSDIR}/audio/libaudiofile +.else +CONFIGURE_ARGS+= --disable-audio +.endif + +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' \ + -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' \ + -e 's|echo aout|echo elf|g' \ + -e 's|TCL_MINOR_VERSION" -ne 3|TCL_MINOR_VERSION" -ne ${TCLTK_VER:E}|' \ + ${WRKSRC}/configure +.if defined(WITH_BIG5) +EXTRA_PATCHES+= ${FILESDIR}/extra-patch-src_gtkconv.c +.endif + +.include <bsd.port.post.mk> |