Ticket #30174: centerim.ryandesign.cleanervariants.diff
File centerim.ryandesign.cleanervariants.diff, 2.9 KB (added by ryandesign (Ryan Carsten Schmidt), 13 years ago) |
---|
-
Portfile
4 4 PortSystem 1.0 5 5 6 6 name centerim 7 version 4.22.9 8 revision 3 7 version 4.22.10 9 8 categories net 10 9 platforms darwin 11 10 maintainers freebsd.org:miwi … … 13 12 14 13 description Console multi-IM client. 15 14 long_description Console client for AIM/ICQ/Yahoo/MSN/IRC/LiveJournal. 16 checksums md5 c43911508205e0277529230c8316a298 \ 17 sha1 ebe9f4ee2064a2fa10f1084ce26083ccd295673e \ 18 rmd160 253007e466a211ec740f7843538e4f686ab95cad 15 16 checksums sha1 46fbac7a55f33b0d4f42568cca21ed83770650e5 \ 17 rmd160 2514c871388edb98b4a8957f965ccee3450b968f 18 19 19 homepage http://www.centerim.org/ 20 20 master_sites ${homepage}download/releases/ 21 21 depends_lib port:libiconv port:gettext port:ncurses port:openssl \ … … 31 31 --without-libcurl 32 32 build.type gnu 33 33 34 variant msn description {Enable MSN support (requires curl+ssl)} { 35 depends_build-append port:pkgconfig 36 depends_lib-append port:curl 37 configure.args-delete --disable-msn --without-libcurl 38 configure.args-append --with-libcurl=${prefix} 39 pre-fetch { 40 set fd [open "|pkg-config --variable=supported_features libcurl"] 41 eval set features [gets $fd] 42 close $fd 43 if {[lsearch -exact $features SSL] == -1} { 44 return -code error "curl must be installed with +ssl to enable MSN support." 45 } 46 } 34 variant msn description {Enable Microsoft Messenger support} { 35 configure.args-delete --disable-msn 47 36 } 48 variant allproto description {Enable support for all protocols (requires curl+ssl)} { 37 38 variant yahoo description {Enable Yahoo! Messenger support} { 39 configure.args-delete --disable-yahoo 40 } 41 42 # Legacy compatibility variant; can be removed once most users have upgraded. 43 variant allproto requires msn yahoo description {Enable support for all protocols} {} 44 45 if {[variant_isset msn] || [variant_isset yahoo]} { 49 46 depends_build-append port:pkgconfig 50 47 depends_lib-append port:curl 51 configure.args-delete -- disable-msn --disable-yahoo --without-libcurl48 configure.args-delete --without-libcurl 52 49 configure.args-append --with-libcurl=${prefix} 53 pre- fetch{50 pre-configure { 54 51 set fd [open "|pkg-config --variable=supported_features libcurl"] 55 52 eval set features [gets $fd] 56 53 close $fd 57 54 if {[lsearch -exact $features SSL] == -1} { 58 return -code error "curl must be installed with +ssl to enable MSN and Yahoo support." 55 ui_error "curl must be installed with the +ssl variant" 56 return -code error "incompatible curl installation" 59 57 } 60 58 } 61 59 }