# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4 # $Id$ PortSystem 1.0 name pidgin version 2.11.0 revision 1 categories net platforms darwin license GPL-2+ maintainers devans openmaintainer description Multi-protocol Instant Messaging client long_description Pidgin is an Open Source clone of America OnLine's \ Instant Messenger client that uses GTK+ version 2. It \ features multiple groups, group chat, user information \ fetching and registration, time stamping, and more. It \ also supports other IM protocols, including Yahoo!, MSN, \ ICQ, Jabber, Napster, IRC, and Zephyr via included \ plugins. homepage http://www.pidgin.im/ master_sites sourceforge:project/pidgin/Pidgin/${version} checksums rmd160 14edb897935f94eb57c09e3a6e5dbe41136941c5 \ sha256 f72613440586da3bdba6d58e718dce1b2c310adf8946de66d8077823e57b3333 use_bzip2 yes # Python is only required if --enable-dbus is used, and only for # the build process to generate the dbus code, not for running pidgin. # set 'pbranch' to desired perl version for perl plugin support # currently 5.24 (#52081) set pbranch 5.24 depends_build port:pkgconfig \ port:intltool \ port:autoconf \ port:automake \ port:libtool \ port:gsed \ port:python27 depends_lib path:lib/pkgconfig/glib-2.0.pc:glib2 \ port:libxml2 \ port:gconf \ port:libidn \ port:gnutls \ port:perl${pbranch} patchfiles patch-configure.ac.diff \ patch-libpurple-internal.h.diff \ patch-pidgin-gtkdocklet-gtk.c.diff \ patch-finch_libgnt_Makefile.am.diff \ patch-finch_libgnt_gntwm.c.diff # reconfigure using upstream autogen.sh for intltool 0.51 compatibility post-patch { xinstall -m 755 ${filespath}/autogen.sh ${worksrcpath} } configure.cmd ./autogen.sh # --disable-dependency-tracking was added because a +universal perl will result in # PERL_CFLAGS containing multiple -arch arguments... this is the easiest workaround configure.args --disable-avahi \ --disable-consoleui \ --disable-farstream \ --disable-gstreamer \ --disable-gstreamer-interfaces \ --disable-gtkspell \ --disable-meanwhile \ --disable-nm \ --disable-screensaver \ --disable-sm \ --disable-startup-notification \ --disable-schemas-install \ --disable-vv \ --disable-nss \ --mandir=${prefix}/share/man \ --with-python=${prefix}/bin/python2.7 \ --disable-dependency-tracking \ --without-x configure.args-append ac_cv_path_perlpath=${prefix}/bin/perl${pbranch} configure.ldflags-append -bind_at_load configure.cppflags-append -no-cpp-precomp subport libpurple { configure.args-append --disable-gtkui \ --disable-pixmaps-install \ --disable-nls pre-activate { if {![catch {set installed [lindex [registry_active pidgin] 0]}]} { set _version [lindex $installed 1] if {[vercmp $_version 2.10.9] < 0} { registry_deactivate_composite pidgin "" [list ports_nodepcheck 1] } } } } subport finch { depends_lib-append port:libpurple \ port:ncurses configure.args-delete --disable-consoleui configure.args-append --disable-gtkui \ --disable-pixmaps-install \ --disable-nls \ --disable-gestures \ --enable-consoleui \ --with-ncurses-headers=${prefix}/include } if {${subport} eq $name} { depends_lib-append port:libpurple \ port:audiofile \ port:gtk2 \ port:libao variant x11 conflicts quartz { depends_lib-append port:xorg-libX11 \ port:xorg-libXext \ port:xorg-libXScrnSaver \ port:xorg-libice \ port:xorg-libsm configure.args-delete --without-x \ --disable-screensaver \ --disable-sm configure.args-append --with-x \ --x-includes=${prefix}/include \ --x-libraries=${prefix}/lib \ --enable-screensaver \ --enable-sm } if {[variant_isset quartz]} { default_variants -x11 } else { default_variants +x11 } variant quartz conflicts x11 { configure.args-append --disable-gestures } variant spellcheck description {Allow spell checking} { depends_lib-append port:gtkspell2 configure.args-delete --disable-gtkspell } post-activate { system "dbus-uuidgen --ensure" system "${prefix}/bin/gtk-update-icon-cache -f -t ${prefix}/share/icons/hicolor" system "export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` && \ gconftool-2 --makefile-install-rule ${prefix}/etc/gconf/schemas/*.schemas" } } if {${subport} ne "libpurple"} { post-destroot { foreach file [glob -nocomplain -directory ${destroot}${prefix}/bin purple-*] { delete $file } foreach file [glob -nocomplain -directory ${destroot}${prefix}/lib pkgconfig/purple.pc libpurple* purple-2] { delete $file } delete ${destroot}${prefix}/include/libpurple \ ${destroot}${prefix}/share/aclocal \ ${destroot}${prefix}/share/man/man3/Purple.3pm \ ${destroot}${prefix}/share/purple \ ${destroot}${prefix}/share/sounds/purple \ } } post-destroot { fs-traverse file ${destroot}${prefix}/lib/perl5 { if {[file tail ${file}] == "perllocal.pod"} { delete ${file} } } } livecheck.type regex livecheck.url http://sourceforge.net/projects/pidgin/files/Pidgin/ livecheck.regex "\/Pidgin\/(\\d+(?:\\.\\d+)*)\/"