source: trunk/dports/x11/lablgtk2/Portfile

Last change on this file was 148046, checked in by mcalhoun@…, 2 years 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
RevLine 
[78210]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
[20498]2# $Id: Portfile 148046 2016-04-25 16:05:14Z mcalhoun@macports.org $
[7165]3
[60064]4PortSystem          1.0
[96995]5PortGroup           ocaml 1.0
[115964]6PortGroup           active_variants 1.1
[34377]7
[60064]8name                lablgtk2
[131008]9version             2.18.3
[137992]10revision            1
[131008]11set download_id     1479
[60064]12categories          x11 ml
[78210]13platforms           darwin
[60064]14maintainers         nomaintainer
[89410]15# the apps have a much more restrictive license than the library code
16license             {LGPL-2 Restrictive/Distributable}
[78210]17
[60064]18description         Objective Caml interface to gtk+ 2.x
[78210]19
[60064]20long_description    LablGTK2 is is an Objective Caml interface to gtk+ 2.x. \
[115964]21                    It uses the rich type system of Objective Caml to provide a \
[60064]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+.
[78206]25
26homepage            http://lablgtk.forge.ocamlcore.org/
[131008]27master_sites        https://forge.ocamlcore.org/frs/download.php/${download_id}/
[60064]28distname            lablgtk-${version}
[69171]29
[131008]30checksums           rmd160  33fc2a3c126c6cda6db8a9e8d9556fbafcfc13d2 \
31                    sha256  975bebf2f9ca74dc3bf7431ebb640ff6a924bb80c8ee5f4467c475a7e4b0cbaf
[69171]32
[131008]33depends_build       port:pkgconfig \
34                    port:ocaml-camlp4
35
[66893]36depends_lib         port:ocaml \
[88485]37                    port:ocaml-findlib \
[66893]38                    port:gtk2 \
39                    port:libglade2 \
40                    port:libgnomecanvas \
41                    port:libgnomeui
[78210]42
[97293]43configure.args      --with-libdir=${ocamlfind_dir} \
[96995]44                    --without-gl \
[78210]45                    --with-glade \
46                    --with-gnomecanvas \
47                    --with-gnomeui \
48                    --without-panel \
[115964]49                    --without-rsvg \
[78210]50                    --without-gtkspell \
[115964]51                    --without-gtksourceview \
52                    --without-gtksourceview2
[78210]53
[93108]54build.target        world doc
[60064]55use_parallel_build  no
[13650]56
[96995]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
[115964]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
[34377]73variant rsvg description "enable rsvg support" {
[78210]74    configure.args-delete   --without-rsvg
75    configure.args-append   --with-rsvg
76    depends_lib-append      port:librsvg
[13650]77}
[24043]78
[34377]79variant gtksourceview description "enable gtksourceview support" {
[78210]80    configure.args-delete   --without-gtksourceview
81    configure.args-append   --with-gtksourceview
82    depends_lib-append      port:gtksourceview
[34377]83}
84
[115964]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
[148046]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
[115964]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
[78210]110livecheck.type      regex
111livecheck.regex     {lablgtk-([0-9]+(\.[0-9]+)+)\.}
Note: See TracBrowser for help on using the repository browser.