source: trunk/dports/irc/xchat2/Portfile @ 102946

Last change on this file since 102946 was 102946, checked in by jeremyhu@…, 7 years ago

xchat2: Fix missing link against gmodule

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.8 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 102946 2013-02-11 04:30:25Z jeremyhu@macports.org $
3
4PortSystem          1.0
5
6name                xchat2
7version             2.8.8
8revision            6
9set branch          [join [lrange [split ${version} .] 0 1] .]
10categories          irc
11maintainers         nomaintainer
12description         GTK+2 IRC client
13homepage            http://www.xchat.org/
14platforms           darwin
15license             GPL-2+
16
17long_description \
18    XChat2 is a graphical IRC client based on GTK2 that has \
19    many features and can be scripted with Perl and/or Python.
20
21master_sites        http://xchat.org/files/source/${branch}/
22patch_sites         http://xchat.org/files/source/${branch}/patches/
23
24distname            xchat-${version}
25use_bzip2           yes
26
27checksums           md5     6775c44f38e84d06c06c336b32c4a452 \
28                    sha1    a4ac161e4e40f4bbabc492675a1ff4380dba8d68 \
29                    rmd160  1bc3e0ff00e15c83588dd21a3ef3e8e34f953331
30
31depends_build       port:pkgconfig
32depends_lib         port:gtk2 port:libsexy path:bin/perl:perl5 port:libpng
33
34patchfiles          patch-gtk2.19.7.diff patch-glib-2.32.diff patch-gmodule.diff
35patch.pre_args      -p1
36
37post-extract {
38    system "touch ${worksrcpath}/NEWS"
39    system "touch ${worksrcpath}/ABOUT-NLS"
40}
41
42use_autoconf        yes
43
44configure.args      --disable-python --disable-mmx --enable-ipv6 \
45                    --disable-openssl --disable-dependency-tracking
46universal_variant   no
47
48variant xft conflicts quartz description "Enable Xft2 font support" {
49    configure.args-append --enable-xft
50}
51
52variant ssl description "Enable SSL using openssl" {
53    configure.args-delete --disable-openssl
54    configure.args-append --enable-openssl
55    depends_lib-append port:openssl
56}
57
58variant quartz conflicts xft {
59    configure.args-append --disable-xlib
60}
61
62variant python25 description "Enable Python plugin, using python25" conflicts python26 python27 {
63    configure.args-delete --disable-python
64    configure.args-append --enable-python
65    depends_lib-append port:python25
66    configure.env pythonpath="${prefix}/bin/python2.5"
67}
68
69variant python26 description "Enable Python plugin, using python26" conflicts python25 python27 {
70    configure.args-delete --disable-python
71    configure.args-append --enable-python
72    depends_lib-append port:python26
73    configure.env pythonpath="${prefix}/bin/python2.6"
74}
75
76variant python27 description "Enable Python plugin, using python27" conflicts python25 python26 {
77    configure.args-delete --disable-python
78    configure.args-append --enable-python
79    depends_lib-append port:python27
80    configure.env pythonpath="${prefix}/bin/python2.7"
81}
82
83livecheck.url       http://www.xchat.org/files/source/${branch}/?S=D
84livecheck.regex     xchat-(\[0-9.\]+)${extract.suffix}
Note: See TracBrowser for help on using the repository browser.