Ticket #45781: Portfile

File Portfile, 1.9 KB (added by Tom.Schoonjans@…, 10 years ago)
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id$
3
4PortSystem              1.0
5PortGroup               active_variants 1.1
6
7name                    gtkextra3
8version                 3.1.1
9revision                0
10categories              gnome devel
11license                     LGPL
12platforms               darwin
13maintainers             me.com:Tom.Schoonjans
14description             Extra GTK+2 Widgets
15
16long_description        GtkExtra is a useful set of widgets for creating \
17                        GUIs for the Xwindows system using GTK+2. You can \
18                        use it complementary to GTK+ and it is written in \
19                        C. It is also Free Software and released under the \
20                        LGPL license.
21
22homepage                http://gtkextra.sourceforge.net/
23master_sites            sourceforge:project/gtkextra/3.1
24distname                gtkextra-${version}
25
26depends_lib             port:gtk2
27
28depends_build           port:pkgconfig
29
30checksums               sha1 e0a6f738232ef748c7927d7b5c05c9252ce1e123 \
31                        rmd160 7266879228429a5eb6670b2839572f3eda0d9b48
32
33
34pre-fetch {
35    if {![variant_isset quartz] && ![variant_isset x11]} {
36        error "Either +x11 or +quartz is required"
37    }
38}
39
40configure.args          --disable-tests
41
42if {![variant_isset quartz]} {
43    default_variants +x11
44}
45
46variant quartz conflicts x11 {
47        require_active_variants path:lib/pkgconfig/cairo.pc:cairo quartz
48        require_active_variants path:lib/pkgconfig/pango.pc:pango quartz
49        require_active_variants path:lib/pkgconfig/gtk+-2.0.pc:gtk2 quartz
50}
51
52
53variant x11 conflicts quartz {
54        require_active_variants path:lib/pkgconfig/cairo.pc:cairo x11
55        require_active_variants path:lib/pkgconfig/pango.pc:pango x11
56        require_active_variants path:lib/pkgconfig/gtk+-2.0.pc:gtk2 x11
57}