-
Notifications
You must be signed in to change notification settings - Fork 561
/
Copy pathbuild_tarballs.jl
67 lines (60 loc) · 2.63 KB
/
build_tarballs.jl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# Note that this script can accept some limited command-line arguments, run
# `julia build_tarballs.jl --help` to see a usage message.
using BinaryBuilder
name = "Xorg_libxcb"
version = v"1.13"
# Collection of sources required to build libxcb
sources = [
ArchiveSource("https://www.x.org/archive/individual/xcb/libxcb-$(version.major).$(version.minor).tar.bz2",
"188c8752193c50ff2dbe89db4554c63df2e26a2e47b0fa415a70918b5b851daa"),
]
# Bash recipe for building across all platforms
script = raw"""
cd $WORKSPACE/srcdir/libxcb-*/
CPPFLAGS="-I${prefix}/include"
# When compiling for things like ppc64le, we need newer `config.sub` files
update_configure_scripts
./configure --prefix=${prefix} --build=${MACHTYPE} --host=${target} --enable-malloc0returnsnull=no
make -j${nproc}
make install
"""
# These are the platforms we will build for by default, unless further
# platforms are passed in on the command line
platforms = [p for p in supported_platforms() if Sys.islinux(p) || Sys.isfreebsd(p)]
products = [
LibraryProduct("libxcb-composite", :libxcb_composite),
LibraryProduct("libxcb-damage", :libxcb_damage),
LibraryProduct("libxcb-dpms", :libxcb_dpms),
LibraryProduct("libxcb-dri2", :libxcb_dri2),
LibraryProduct("libxcb-dri3", :libxcb_dri3),
LibraryProduct("libxcb-glx", :libxcb_glx),
LibraryProduct("libxcb-present", :libxcb_present),
LibraryProduct("libxcb-randr", :libxcb_randr),
LibraryProduct("libxcb-record", :libxcb_record),
LibraryProduct("libxcb-render", :libxcb_render),
LibraryProduct("libxcb-res", :libxcb_res),
LibraryProduct("libxcb-screensaver", :libxcb_screensaver),
LibraryProduct("libxcb-shape", :libxcb_shape),
LibraryProduct("libxcb-shm", :libxcb_shm),
LibraryProduct("libxcb", :libxcb),
LibraryProduct("libxcb-sync", :libxcb_sync),
LibraryProduct("libxcb-xf86dri", :libxcb_xf86dri),
LibraryProduct("libxcb-xfixes", :libxcb_xfixes),
LibraryProduct("libxcb-xinerama", :libxcb_xinerama),
LibraryProduct("libxcb-xinput", :libxcb_xinput),
LibraryProduct("libxcb-xkb", :libxcb_xkb),
LibraryProduct("libxcb-xtest", :libxcb_xtest),
LibraryProduct("libxcb-xvmc", :libxcb_xvmc),
LibraryProduct("libxcb-xv", :libxcb_xv),
]
# Dependencies that must be installed before this package can be built
dependencies = [
BuildDependency("Xorg_util_macros_jll"),
BuildDependency("Xorg_xcb_proto_jll"),
Dependency("XSLT_jll"),
Dependency("Xorg_libXau_jll"),
Dependency("Xorg_libXdmcp_jll"),
Dependency("Xorg_libpthread_stubs_jll"),
]
# Build the tarballs.
build_tarballs(ARGS, name, version, sources, script, platforms, products, dependencies)