@@ -2,15 +2,15 @@ using BinDeps
2
2
3
3
@BinDeps . setup
4
4
5
+ group = library_group (" gtk" )
6
+
5
7
deps = [
6
- gtk = library_dependency (" gtk" , aliases = [" libgtk-3" , " libgtk-3-0" ])
7
- @windows_only begin
8
- gdk = library_dependency (" gdk" , aliases = [" libgdk-3-0" ])
9
- gdk_pixbuf = library_dependency (" gdk_pixbuf" , aliases = [" libgdk_pixbuf-2.0-0" ])
10
- glib = library_dependency (" glib" , aliases = [" libglib-2.0-0" ], os = :Windows )
11
- gobject = library_dependency (" gobject" , aliases = [" libgobject-2.0-0" , " libgobject-2.0" , " libgobject-2_0-0" ], os = :Windows )
12
- gio = library_dependency (" gio" , aliases = [" libgio-2.0-0" ])
13
- end
8
+ gtk = library_dependency (" gtk" , aliases = [" libgtk-3" , " libgtk-3-0" ], group = group)
9
+ glib = library_dependency (" glib" , aliases = [" libglib-2.0" , " libglib-2.0-0" ], group = group)
10
+ gdk = library_dependency (" gdk" , aliases = [" libgdk-3-0" , " libgdk-3.0" ], group = group)
11
+ gdk_pixbuf = library_dependency (" gdk_pixbuf" , aliases = [" libgdk_pixbuf-2.0-0" , " libgdk_pixbuf-2.0.0" ], group = group)
12
+ gio = library_dependency (" gio" , aliases = [" libgio-2.0-0" ," libgio-2.0.0" ], group = group)
13
+ gobject = library_dependency (" gobject" , aliases = [" libgobject-2.0.0" , " libgobject-2.0-0" , " libgobject-2.0" , " libgobject-2_0-0" ], group = group)
14
14
]
15
15
16
16
@linux_only begin
20
20
21
21
@windows_only begin
22
22
using WinRPM
23
- provides (WinRPM. RPM," gtk3" , [gtk,gdk,gdk_pixbuf,glib,gio], os = :Windows )
23
+ provides (WinRPM. RPM," gtk3" , [gtk,gdk,gdk_pixbuf,glib,gio], os = :Windows )
24
24
provides (WinRPM. RPM," libgobject-2_0-0" , [gobject], os = :Windows )
25
25
end
26
26
27
- if OS_NAME == :Windows
27
+ @osx_only begin
28
+ using Homebrew
29
+ provides (Homebrew. HB, " gtk+3" , [gtk, gdk, gobject], os = :Darwin , onload =
30
+ """
31
+ function __init__()
32
+ if "XDG_DATA_DIRS" in ENV
33
+ ENV["XDG_DATA_DIRS"] *= ":" * joinpath("$(Homebrew. brew_prefix) ", "share")
34
+ else
35
+ ENV["XDG_DATA_DIRS"] = joinpath("$(Homebrew. brew_prefix) ", "share")
36
+ end
37
+ end
38
+ """ )
39
+ provides (Homebrew. HB, " glib" , [glib, gio], os = :Darwin )
40
+ provides (Homebrew. HB, " gdk-pixbuf" , gdk_pixbuf, os = :Darwin )
41
+ end
42
+
28
43
@BinDeps . install [
29
44
:gtk => :libgtk ,
30
45
:gdk => :libgdk ,
31
46
:gdk_pixbuf => :libgdk_pixbuf ,
32
47
:gio => :libgio ,
33
48
:gobject => :libgobject ,
34
49
:glib => :libglib
35
- ]
36
- else
37
- @BinDeps . install
38
- end
50
+ ]
0 commit comments