1 | # $Id: Portfile 19 2008-02-29 13:50:44Z simon $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mcabber |
---|
6 | version 0.9.6 |
---|
7 | categories net |
---|
8 | maintainers hitzemann.org:simon |
---|
9 | description Console Jabber client |
---|
10 | long_description \ |
---|
11 | mcabber is a small Jabber console client. It includes features like \ |
---|
12 | SSL, MUC, history logging, command completion, OpenPGP encryption, \ |
---|
13 | OTR and external action triggers. |
---|
14 | homepage http://www.lilotux.net/~mikael/mcabber/ |
---|
15 | platforms darwin |
---|
16 | master_sites http://www.lilotux.net/~mikael/mcabber/files/ |
---|
17 | extract.suffix .tar.bz2 |
---|
18 | use_bzip2 yes |
---|
19 | checksums md5 b3dc7d38f235b701a82a4926ea3caf91 \ |
---|
20 | sha1 7aa87943cce3e7c2cd42fe74960b53a0cd240331 \ |
---|
21 | rmd160 ac349286dbc2a9129e3601316532eb7ab1ba9e7b |
---|
22 | |
---|
23 | depends_lib lib:libgpgme:gpgme \ |
---|
24 | port:libiconv \ |
---|
25 | port:ncursesw \ |
---|
26 | port:glib2 \ |
---|
27 | port:gettext \ |
---|
28 | port:libotr |
---|
29 | |
---|
30 | depends_build bin:gawk:gawk \ |
---|
31 | bin:pkg-config:pkgconfig \ |
---|
32 | bin:gpgme-config:gpgme \ |
---|
33 | bin:gcrypt-config:libgcrypt |
---|
34 | |
---|
35 | configure.args --prefix=${prefix} \ |
---|
36 | --enable-otr \ |
---|
37 | --with-libotr-prefix=${prefix}/lib \ |
---|
38 | --with-libotr-inc-prefix=${prefix}/include \ |
---|
39 | --without-ssl \ |
---|
40 | --without-openssl |
---|
41 | |
---|
42 | configure.env LIBTOOL=glibtool |
---|
43 | |
---|
44 | #TODO |
---|
45 | #Check why I get errors during linking, until then keep disabled |
---|
46 | #variant gnutls { |
---|
47 | # configure.args-delete --without-ssl |
---|
48 | # configure.args-append --with-ssl |
---|
49 | # configure.args-append --with-libgnutls-extra-prefix=${prefix} |
---|
50 | # depends_lib-append port:gnutls |
---|
51 | # } |
---|
52 | |
---|
53 | variant ssl \ |
---|
54 | description "Use OpenSSL" { |
---|
55 | configure.args-delete --without-ssl |
---|
56 | configure.args-delete --without-openssl |
---|
57 | configure.args-append --with-ssl |
---|
58 | configure.args-append --with-openssl=${prefix} |
---|
59 | depends_lib-append port:openssl |
---|
60 | } |
---|
61 | |
---|
62 | variant aspell \ |
---|
63 | description "Use aspell spell checking" { |
---|
64 | configure.args-append --enable-aspell |
---|
65 | depends_lib-append port:aspell |
---|
66 | } |
---|
67 | |
---|
68 | post-configure { |
---|
69 | reinplace "s|#define HAVE_LOCALCHARSET_H 1|\/\* #undef HAVE_LOCALCHARSET_H \*\/|g" ${worksrcpath}/config.h |
---|
70 | } |
---|