1 | # $Id: Portfile 42722 2008-11-30 00:37:07Z toby@macports.org $ |
---|
2 | |
---|
3 | PortSystem 1.0 |
---|
4 | |
---|
5 | name mcabber |
---|
6 | version 0.9.9 |
---|
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://mcabber.com/ |
---|
15 | platforms darwin |
---|
16 | master_sites http://mcabber.com/files/ |
---|
17 | extract.suffix .tar.bz2 |
---|
18 | use_bzip2 yes |
---|
19 | checksums md5 189fb9d23f5a8412bc660884528475ea \ |
---|
20 | sha1 334f483f554098af3768d5746bc0395bfe663c91 \ |
---|
21 | rmd160 6babdbfff6c2b5ab4a1336de412dc726b7ca0e4a |
---|
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 | bin:gmkdir:coreutils |
---|
35 | |
---|
36 | configure.args --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 | } |
---|