aboutsummaryrefslogtreecommitdiff
path: root/xorg/xorg-server/build
blob: a45dc211988ed3ec114b40f15e17c6b1021a8520 (plain)
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
#!/bin/sh -e

export xcvt=$PWD/tmp

(
    export DESTDIR=$xcvt
    cd xcvt

    # Make it a static library, so we don't need it.
    clsed 's,shared_library,static_library,' lib/meson.build

    cl-meson \
        . output

    ninja -C output
    ninja -C output install
)

patch -p1 < rootless_modesetting.patch

export LIBXCVT_CFLAGS="-I$xcvt/usr/include"
export LIBXCVT_LIBS="-L$xcvt/usr/lib -lxcvt"
export PKG_CONFIG_PATH="$xcvt/usr/lib/pkgconfig"

./configure \
    --prefix=/usr \
    --localstatedir=/var \
    --disable-shared \
    --disable-systemd-logind \
    --disable-unit-tests \
    --enable-glx \
    --enable-dri \
    --enable-dri2 \
    --enable-dri3 \
    --enable-glamor \
    --enable-xorg \
    --with-systemd-daemon=off

make
make DESTDIR="$1" install

rm -f "$1/usr/share/X11/xorg.conf.d/10-evdev.conf"