Ticket #17486: Portfile

File Portfile, 2.5 KB (added by jsg8pitt@…, 15 years ago)

A new portfile that reflects the changes.

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