source: trunk/dports/irc/xchat2/Portfile

Last change on this file was 139229, checked in by jeremyhu@…, 2 years ago

misc: Change port:openssl dependency to path:lib/libssl.dylib:openssl

This should allow usage of libressl as a replacement for openssl in relevant
ports. Not all ports have been tested, but libressl aims for API
compatibility with OpenSSL, so it is expected to work.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 139229 2015-08-08 03:10:35Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                xchat2
7version             2.8.8
8revision            10
9set branch [join [lrange [split ${version} .] 0 1] .]
10categories          irc
11platforms           darwin
12license             GPL-2+
13maintainers         nomaintainer
14
15description         GTK+2 IRC client
16long_description    XChat2 is a graphical IRC client based on GTK2 \
17                    that has many features and can be scripted with \
18                    Perl and/or Python.
19homepage            http://www.xchat.org/
20
21depends_build       port:pkgconfig
22depends_lib         port:gtk2 \
23                    port:libpng \
24                    port:libsexy \
25                    path:bin/perl:perl5
26
27master_sites        http://xchat.org/files/source/${branch}/
28patch_sites         http://xchat.org/files/source/${branch}/patches/
29
30distname            xchat-${version}
31use_bzip2           yes
32checksums           md5     6775c44f38e84d06c06c336b32c4a452 \
33                    sha1    a4ac161e4e40f4bbabc492675a1ff4380dba8d68 \
34                    rmd160  1bc3e0ff00e15c83588dd21a3ef3e8e34f953331
35
36post-extract {
37    touch ${worksrcpath}/NEWS ${worksrcpath}/ABOUT-NLS
38}
39
40patch.pre_args      -p1
41patchfiles          patch-gtk2.19.7.diff \
42                    patch-glib-2.32.diff \
43                    patch-gmodule.diff
44
45use_autoconf        yes
46
47configure.args      --disable-python \
48                    --disable-mmx \
49                    --enable-ipv6 \
50                    --disable-openssl \
51                    --disable-dependency-tracking
52
53universal_variant   no
54
55variant xft conflicts quartz description {Enable Xft2 font support} {
56    configure.args-append   --enable-xft
57}
58
59variant ssl description {Enable SSL using OpenSSL} {
60    configure.args-replace  --disable-openssl --enable-openssl
61    depends_lib-append      path:lib/libssl.dylib:openssl
62}
63
64variant quartz conflicts xft {
65    configure.args-append   --disable-xlib
66}
67
68# TODO: Remove after 2016-05-21.
69variant python25 description {Legacy variant} requires python27 {}
70variant python26 description {Legacy variant} requires python27 {}
71
72variant python27 description {Enable Python 2.7 plugin} {
73    configure.args-replace  --disable-python --enable-python
74    depends_lib-append      port:python27
75    configure.env           pythonpath="${prefix}/bin/python2.7"
76}
77
78livecheck.url   http://www.xchat.org/files/source/${branch}/?S=D
79livecheck.regex xchat-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.