source: trunk/dports/x11/lablgtk2/Portfile

Last change on this file was 148046, checked in by mcalhoun@…, 15 months ago

lablgtk2: remove dependencies which conflict with quartz variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.7 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 148046 2016-04-25 16:05:14Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           ocaml 1.0
6PortGroup           active_variants 1.1
7
8name                lablgtk2
9version             2.18.3
10revision            1
11set download_id     1479
12categories          x11 ml
13platforms           darwin
14maintainers         nomaintainer
15# the apps have a much more restrictive license than the library code
16license             {LGPL-2 Restrictive/Distributable}
17
18description         Objective Caml interface to gtk+ 2.x
19
20long_description    LablGTK2 is is an Objective Caml interface to gtk+ 2.x. \
21                    It uses the rich type system of Objective Caml to provide a \
22                    strongly typed, yet very comfortable, object-oriented interface to \
23                    gtk+. This is not that easy if you know the dynamic typing approach \
24                    taken by gtk+.
25
26homepage            http://lablgtk.forge.ocamlcore.org/
27master_sites        https://forge.ocamlcore.org/frs/download.php/${download_id}/
28distname            lablgtk-${version}
29
30checksums           rmd160  33fc2a3c126c6cda6db8a9e8d9556fbafcfc13d2 \
31                    sha256  975bebf2f9ca74dc3bf7431ebb640ff6a924bb80c8ee5f4467c475a7e4b0cbaf
32
33depends_build       port:pkgconfig \
34                    port:ocaml-camlp4
35
36depends_lib         port:ocaml \
37                    port:ocaml-findlib \
38                    port:gtk2 \
39                    port:libglade2 \
40                    port:libgnomecanvas \
41                    port:libgnomeui
42
43configure.args      --with-libdir=${ocamlfind_dir} \
44                    --without-gl \
45                    --with-glade \
46                    --with-gnomecanvas \
47                    --with-gnomeui \
48                    --without-panel \
49                    --without-rsvg \
50                    --without-gtkspell \
51                    --without-gtksourceview \
52                    --without-gtksourceview2
53
54build.target        world doc
55use_parallel_build  no
56
57pre-destroot { xinstall -m 755 -d "${destroot}${prefix}/lib/ocaml/site-libs/stublibs" }
58
59destroot.target     old-install
60
61post-destroot {
62    xinstall -m 755 -d ${ocamlfind_destdir}/lablgtk2 \
63        ${destroot}${prefix}/share/doc/${name}
64    file copy ${worksrcpath}/doc/html ${destroot}${prefix}/share/doc/${name}/
65}
66
67variant gl description "enable gtkglarea support" {
68    configure.args-delete   --without-gl
69    configure.args-append   --with-gl
70    depends_lib-append      port:lablgl port:gtkglarea2
71}
72
73variant rsvg description "enable rsvg support" {
74    configure.args-delete   --without-rsvg
75    configure.args-append   --with-rsvg
76    depends_lib-append      port:librsvg
77}
78
79variant gtksourceview description "enable gtksourceview support" {
80    configure.args-delete   --without-gtksourceview
81    configure.args-append   --with-gtksourceview
82    depends_lib-append      port:gtksourceview
83}
84
85variant gtksourceview2 description "enable gtksourceview2 support" {
86    configure.args-delete   --without-gtksourceview2
87    configure.args-append   --with-gtksourceview2
88    depends_lib-append      port:gtksourceview2
89}
90
91variant x11 conflicts quartz {
92    configure.args-append   --without-quartz
93}
94
95variant quartz conflicts x11 {
96    configure.args-append   --with-quartz
97
98    # for now, libgnomeui does not install if gtk2 was installed with +quartz
99    depends_lib-delete      port:libgnomeui
100    configure.args-replace  --with-gnomeui --without-gnomeui
101}
102
103if {![variant_isset quartz]} {
104    default_variants +x11
105    require_active_variants gtk2 x11 quartz
106} else {
107    require_active_variants gtk2 quartz x11
108}
109
110livecheck.type      regex
111livecheck.regex     {lablgtk-([0-9]+(\.[0-9]+)+)\.}
Note: See TracBrowser for help on using the repository browser.