ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/mports/trunk/net-im/pidgin/Makefile
Revision: 11852
Committed: Mon Sep 5 14:25:53 2011 UTC (12 years, 7 months ago) by laffer1
File size: 5626 byte(s)
Log Message:
on second thought, let's add gconf2

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

Properties

Name Value
cvs2svn:cvs-rev 1.27