Ticket #39255: Portfile

File Portfile, 1.9 KB (added by Tom.Schoonjans@…, 11 years ago)

gtkextra3 3.1.0 Portfile

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
3PortSystem              1.0
4PortGroup               active_variants 1.1
5
6name                    gtkextra3
7version                 3.1.0
8revision                0
9categories              gnome devel
10license                     LGPL
11platforms               darwin
12maintainers             me.com:Tom.Schoonjans
13description             Extra GTK+2 Widgets
14
15long_description        GtkExtra is a useful set of widgets for creating \
16                        GUIs for the Xwindows system using GTK+2. You can \
17                        use it complementary to GTK+ and it is written in \
18                        C. It is also Free Software and released under the \
19                        LGPL license.
20
21homepage                http://gtkextra.sourceforge.net/
22master_sites            sourceforge:project/gtkextra/3.1
23distname                gtkextra-${version}
24
25depends_lib             port:gtk2
26
27depends_build           port:pkgconfig
28
29checksums               sha1 f3758908d1d6913cbc9536c6f170be041f8a048f \
30                        rmd160 1da191cc5544b568ad5aa76e6a288b642b6bd268
31
32
33pre-configure {
34    if {![variant_isset quartz] && ![variant_isset x11]} {
35        error "Either +x11 or +quartz is required"
36    }
37}
38
39configure.args          --disable-tests
40
41if {![variant_isset quartz]} {
42    default_variants +x11
43}
44
45variant quartz conflicts x11 {
46        require_active_variants path:lib/pkgconfig/cairo.pc:cairo quartz
47        require_active_variants path:lib/pkgconfig/pango.pc:pango quartz
48        require_active_variants path:lib/pkgconfig/gtk+-2.0.pc:gtk2 quartz
49}
50
51
52variant x11 conflicts quartz {
53        require_active_variants path:lib/pkgconfig/cairo.pc:cairo x11
54        require_active_variants path:lib/pkgconfig/pango.pc:pango x11
55        require_active_variants path:lib/pkgconfig/gtk+-2.0.pc:gtk2 x11
56}