Ticket #14522: Portfile

File Portfile, 2.5 KB (added by simon@…, 16 years ago)
Line 
1# $Id: Portfile 19 2008-02-29 13:50:44Z simon $
2
3PortSystem          1.0
4
5name                mcabber
6version             0.9.6
7categories          net
8maintainers         hitzemann.org:simon
9description         Console Jabber client
10long_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.
14homepage            http://www.lilotux.net/~mikael/mcabber/
15platforms           darwin
16master_sites        http://www.lilotux.net/~mikael/mcabber/files/
17extract.suffix      .tar.bz2
18use_bzip2           yes
19checksums           md5 b3dc7d38f235b701a82a4926ea3caf91 \
20                    sha1 7aa87943cce3e7c2cd42fe74960b53a0cd240331 \
21                    rmd160 ac349286dbc2a9129e3601316532eb7ab1ba9e7b
22
23depends_lib          lib:libgpgme:gpgme \
24                     port:libiconv \
25                     port:ncursesw \
26                     port:glib2 \
27                     port:gettext \
28                     port:libotr
29
30depends_build        bin:gawk:gawk \
31                     bin:pkg-config:pkgconfig \
32                     bin:gpgme-config:gpgme \
33                     bin:gcrypt-config:libgcrypt
34
35configure.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
42configure.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
53variant ssl \
54description "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
62variant aspell \
63description "Use aspell spell checking" {
64                    configure.args-append --enable-aspell
65                    depends_lib-append port:aspell
66               }
67
68post-configure {
69                    reinplace "s|#define HAVE_LOCALCHARSET_H 1|\/\* #undef HAVE_LOCALCHARSET_H \*\/|g" ${worksrcpath}/config.h
70               }