2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-11-15 03:00:10 -07:00
repo/wayland/libinput/build

42 lines
906 B
Plaintext
Raw Normal View History

2019-06-28 01:07:46 -06:00
#!/bin/sh -e
2021-07-09 03:30:40 -06:00
patch -p1 < evdev-wrap.patch
2021-07-08 07:26:10 -06:00
export CFLAGS="$CFLAGS -fPIC"
2021-07-09 03:30:40 -06:00
for pkg in mtdev evdev; do (
cd "$pkg"
2021-07-08 07:26:10 -06:00
./configure \
--prefix=/usr \
--disable-shared \
--disable-gcov
make
make DESTDIR="$OLDPWD" install
2021-07-09 03:30:40 -06:00
) done
2021-07-08 07:26:10 -06:00
# Build fails with clang due to -Werror (forced on) and
# -Wunused-command-line-argument which is triggered by.
# the below CFLAGS.
export CFLAGS="-Wno-unused-command-line-argument $CFLAGS"
2021-07-08 07:26:10 -06:00
export PKG_CONFIG_PATH="$PWD/usr/lib/pkgconfig"
export CFLAGS="$CFLAGS -I$PWD/usr/include -L$PWD/usr/lib"
2021-07-09 03:30:40 -06:00
export CFLAGS="$CFLAGS -I$PWD/usr/include/libevdev-1.0"
2019-10-07 15:07:48 -06:00
2019-06-28 01:07:46 -06:00
meson \
--prefix=/usr \
--sysconfdir=/etc \
--mandir=/usr/share/man \
--libexecdir=/usr/lib \
2021-07-09 03:30:40 -06:00
-Ddefault_library=both \
2019-06-28 01:07:46 -06:00
-Ddebug-gui=false \
-Ddocumentation=false \
-Dtests=false \
-Dlibwacom=false \
. output
ninja -C output
2019-10-07 15:07:48 -06:00
ninja -C output install