ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/net-im/pidgin/Makefile
Revision: 4592
Committed: Tue Apr 1 04:51:10 2008 UTC (16 years, 1 month ago) by laffer1
File size: 6024 byte(s)
Log Message:
Update pidgin to 2.4.0.  This needs more testing

File Contents

# Content
1 # New ports collection makefile for: pidgin
2 # Date created: 16 Oct 2007
3 # Whom: Lucas Holt <luke@MidnightBSD.org>
4 #
5 # $MidnightBSD: mports/net-im/pidgin/Makefile,v 1.4 2008/03/30 22:14:37 laffer1 Exp $
6 #
7
8 PORTNAME= pidgin
9 PORTVERSION= 2.4.0
10 CATEGORIES= net-im
11
12 MAINTAINER= ports@MidnightBSD.org
13 COMMENT= Pidgin multi-protocol messaging client (GTK+ UI)
14 LICENSE= gpl2
15
16 LIB_DEPENDS= startup-notification-1.0:${PORTSDIR}/x11/startup-notification
17
18 CONFLICTS= libpurple-[0-9*] gaim-1*
19
20 WITH_GTKUI= yes
21 WITHOUT_GSTREAMER= yes
22
23 USE_LDCONFIG= yes
24 USE_GNOME= gnomeprefix gnomehack intlhack gtk20
25 WANT_GNOME= yes
26 CONFIGURE_ARGS= --disable-consoleui
27
28 MASTER_SITES= ${MASTER_SITE_SOURCEFORGE}
29 MASTER_SITE_SUBDIR= pidgin
30 DISTNAME= pidgin-${PORTVERSION}
31
32 USE_BZIP2= yes
33 USE_GMAKE= yes
34 USE_GNOME?= gnomeprefix gnomehack intlhack glib20
35 INSTALL_ICONS= yes
36 GNU_CONFIGURE= yes
37 CONFIGURE_ARGS?=--disable-gtkui \
38 --disable-consoleui \
39 --with-dynamic_prpls=${PRPL_MODULES} \
40 --datarootdir=${FAKE_DESTDIR}${PREFIX}/share
41 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
42 LIBS="-L${LOCALBASE}/lib ${PTHREAD_LIBS}" \
43 PTHREAD_LIB="${PTHREAD_LIBS}"
44
45 PRPL_MODULES= gg,irc,jabber,msn,novell,oscar,qq,simple,yahoo,zephyr
46
47 OPTIONS= SILC "Secure Internet Live Conferencing support" off \
48 GNUTLS "GNUTLS encryption support" on \
49 NSS "Mozilla NSS encryption support" off \
50 SASL "Cyrus SASL support (for jabberd)" off \
51 DBUS "Enable DBUS bindings" on \
52 PERL "Perl scripting" off \
53 BONJOUR "Enable mDNS support" on \
54 SAMETIME "Enable Sametime client support" off \
55 TCLTK "Tcl/Tk scripting" off
56
57 .if defined(WITH_GTKUI)
58 OPTIONS+= GTKSPELL "Spell checking support" on \
59 GSTREAMER "Use GStreamer for playing sounds" on \
60 CAP "Enable Contact Availability Prediction plugin" on
61 .endif
62
63 CONFIGURE_ARGS+=--disable-doxygen
64
65 .include <bsd.port.pre.mk>
66
67 .if defined(WITH_GTKUI) && ${HAVE_GNOME:Mevolutiondataserver}!=""
68 USE_GNOME+= evolutiondataserver
69 PLIST_SUB+= EVO=""
70 .else
71 CONFIGURE_ARGS+= --disable-gevolution
72 PLIST_SUB+= EVO="@comment not installed: "
73 .endif
74
75 .if defined(WITH_GTKUI) && !defined(WITHOUT_GSTREAMER)
76 USE_GSTREAMER+= core good
77 .else
78 CONFIGURE_ARGS+=--disable-gstreamer
79 .endif
80
81 .if defined(WITH_GTKUI) && !defined(WITHOUT_CAP)
82 LIB_DEPENDS+= sqlite3.8:${PORTSDIR}/databases/sqlite3
83 PLIST_SUB+= CAP=""
84 .else
85 CONFIGURE_ARGS+=--disable-cap
86 PLIST_SUB+= CAP="@comment not installed: "
87 .endif
88
89 .if !defined(WITHOUT_GNUTLS)
90 LIB_DEPENDS+= gnutls:${PORTSDIR}/security/gnutls
91 CONFIGURE_ARGS+= --enable-gnutls=yes
92 .else
93 CONFIGURE_ARGS+= --enable-gnutls=no
94 .endif
95
96 .if defined(WITH_NSS)
97 LIB_DEPENDS+= nss3:${PORTSDIR}/security/nss
98 CONFIGURE_ARGS+= --enable-nss=yes \
99 --with-nspr-includes=${LOCALBASE}/include/nspr \
100 --with-nspr-libs=${LOCALBASE}/lib \
101 --with-nss-includes=${LOCALBASE}/include/nss/nss \
102 --with-nss-libs=${LOCALBASE}/lib/nss
103 .else
104 CONFIGURE_ARGS+= --enable-nss=no
105 .endif
106
107 .if defined(WITH_SASL)
108 LIB_DEPENDS+= sasl2:${PORTSDIR}/security/cyrus-sasl2
109 CONFIGURE_ARGS+= --enable-cyrus-sasl
110 .endif
111
112 .if defined(WITH_SILC)
113 LIB_DEPENDS+= silcclient-1.0.4:${PORTSDIR}/devel/silc-toolkit
114 CONFIGURE_ARGS+= --with-silc-includes=${LOCALBASE}/include/silc \
115 --with-silc-libs=${LOCALBASE}/lib
116 PLIST_SUB+= SILC=""
117 PRPL_MODULES:= ${PRPL_MODULES},silc
118 .else
119 PLIST_SUB+= SILC="@comment not installed: "
120 .endif
121
122 .if !defined(WITHOUT_BONJOUR)
123 LIB_DEPENDS+= avahi-core.5:${PORTSDIR}/net/avahi
124 PLIST_SUB+= BONJOUR=""
125 PRPL_MODULES:= ${PRPL_MODULES},bonjour
126 .else
127 PLIST_SUB+= BONJOUR="@comment not installed: "
128 .endif
129
130 .if defined(WITH_SAMETIME)
131 LIB_DEPENDS+= meanwhile.1:${PORTSDIR}/net-im/meanwhile
132 PLIST_SUB+= SAMETIME=""
133 PRPL_MODULES:= ${PRPL_MODULES},sametime
134 .else
135 PLIST_SUB+= SAMETIME="@comment not installed: "
136 .endif
137
138 .if defined(WITH_TCLTK)
139 TCLTK_VER?= 8.4 # user can override it
140 TCLTK_VER_NODOT= ${TCLTK_VER:S/.//}
141 .if ${TCLTK_VER} != 8.3 && ${TCLTK_VER} != 8.4
142 .error Currently Pidgin can only use Tcl/Tk 8.3 or 8.4
143 .endif
144 LIB_DEPENDS+= tk${TCLTK_VER_NODOT}:${PORTSDIR}/x11-toolkits/tk${TCLTK_VER_NODOT}
145 CONFIGURE_ARGS+= --with-tclconfig=${LOCALBASE}/lib/tcl${TCLTK_VER} \
146 --with-tkconfig=${LOCALBASE}/lib/tk${TCLTK_VER}
147 CFLAGS+= -I${LOCALBASE}/include/tk${TCLTK_VER} -I${LOCALBASE}/include/tcl${TCLTK_VER}
148 PLIST_SUB+= TCL:=""
149 .else
150 PLIST_SUB+= TCL:="@comment not installed: "
151 .endif
152
153 .if !defined(WITHOUT_DBUS)
154 LIB_DEPENDS+= dbus-glib-1.2:${PORTSDIR}/devel/dbus-glib
155 CONFIGURE_ARGS+= --enable-dbus
156 PLIST_SUB+= DBUS=""
157 .else
158 CONFIGURE_ARGS+= --disable-dbus
159 PLIST_SUB+= DBUS="@comment not installed: "
160 .endif
161
162 .if defined(WITH_PERL)
163 USE_PERL5= yes
164 CONFIGURE_ARGS+= --with-perl-lib=site
165 PLIST_SUB+= PERL:=""
166 .else
167 CONFIGURE_ARGS+= --disable-perl
168 PLIST_SUB+= PERL:="@comment not installed: "
169 .endif
170
171 .if defined(WITH_GTKUI) && !defined(WITHOUT_GTKSPELL)
172 LIB_DEPENDS+= gtkspell.0:${PORTSDIR}/textproc/gtkspell
173 .else
174 CONFIGURE_ARGS+= --disable-gtkspell
175 .endif
176
177 pre-everything::
178 .if defined(WITHOUT_GNUTLS) && defined(WITHOUT_NSS)
179 @${ECHO_MSG} "WARNING: In order to use MSN, you must enable the GNUTLS and/or NSS options."
180 .endif
181
182 post-patch:
183 @${REINPLACE_CMD} -e 's|-lpthreads|${PTHREAD_LIBS:S/"//g}|g' \
184 -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
185 -e 's|-lpanel |-lpanel -lncurses|g' \
186 -e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g' \
187 -e 's|-lsilc -lsilcclient ${PTHREAD_LIBS} $$LIBDL|-lsilc -lsilcclient ${PTHREAD_LIBS} -liconv|' \
188 -e 's|TCL_VERSION found but 8.3 required|TCL_VERSION found but ${TCLTK_VER} required|g' \
189 -e 's|TCL_MINOR_VERSION" -ne 3|TCL_MINOR_VERSION" -ne ${TCLTK_VER:E}|' \
190 ${WRKSRC}/configure
191 @${REINPLACE_CMD} -e 's|/bin/bash|${SH}|' \
192 ${WRKSRC}/libpurple/purple-send \
193 ${WRKSRC}/libpurple/purple-send-async
194 @${REINPLACE_CMD} -e 's|/python|/env python|' \
195 ${WRKSRC}/libpurple/purple-remote \
196 ${WRKSRC}/libpurple/purple-url-handler
197 # @${FIND} ${BUILD_WRKSRC} -name Makefile.in | ${XARGS} ${REINPLACE_CMD} -e \
198 # 's|[$$][(]top_builddir[)]/libpurple/libpurple.la|${LOCALBASE}/lib/libpurple.la|g'
199
200 .include <bsd.port.post.mk>

Properties

Name Value
cvs2svn:cvs-rev 1.5