Ticket #23934: Portfile-centerim.diff

File Portfile-centerim.diff, 2.2 KB (added by macports@…, 14 years ago)

Portfile patch to support centerim 4.22.9

  • Portfile

    old new  
     1# -*- 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
    12# $Id: Portfile 61377 2009-12-09 23:32:32Z jmr@macports.org $
    23
    34PortSystem 1.0
    45name                    centerim
    5 version                 4.22.7
     6version                 4.22.9
    67revision            1
    78categories              net
    89maintainers             nomaintainer
    910platforms               darwin
    1011description             Console multi-IM client.
    11 long_description        Console client for AIM/ICQ/Yahoo/IRC/LiveJournal.
    12 checksums               md5     2db303baa9b7680c2cccb3314bfa7ae2 \
    13                         sha1    c0b3433ed260fca23f8e10999c1cf91895489b35 \
    14                         rmd160  83c579db34fe6e7c5d539cf78102a2de6b89f47a
     12long_description        Console client for AIM/ICQ/Yahoo/MSN/IRC/LiveJournal.
     13checksums               md5     c43911508205e0277529230c8316a298 \
     14                sha1    ebe9f4ee2064a2fa10f1084ce26083ccd295673e \
     15                rmd160  253007e466a211ec740f7843538e4f686ab95cad
    1516homepage                http://www.centerim.org/
    1617master_sites            ${homepage}download/releases/
    17 use_bzip2               yes
     18use_bzip2               no
    1819depends_lib             port:libiconv port:gettext port:ncurses port:openssl \
    1920                        port:jpeg port:gpgme
    20 patchfiles              patch-configure.diff \
    21                         patch-kkconsui_include_conscommon.h.diff
     21patchfiles              patch-configure.diff
    2222
    2323configure.args          --disable-msn \
     24                        --disable-yahoo \
    2425                        --with-libiconv-prefix=${prefix} \
    2526                        --with-libintl-prefix=${prefix} \
    2627                        --with-ssl --with-openssl=${prefix}/include \
     
    4243        }
    4344    }
    4445}
     46variant allproto description {Enable support for all protocols (requires curl+ssl)} {
     47    depends_build-append port:pkgconfig
     48    depends_lib-append port:curl
     49    configure.args-delete --disable-msn --disable-yahoo --without-libcurl
     50    configure.args-append --with-libcurl=${prefix}
     51    pre-fetch {
     52        set fd [open "|pkg-config --variable=supported_features libcurl"]
     53        eval set features [gets $fd]
     54        close $fd
     55        if {[lsearch -exact $features SSL] == -1} {
     56            return -code error "curl must be installed with +ssl to enable MSN and Yahoo support."
     57        }
     58    }
     59}