comparison lib/libinput/libinput.sh @ 1084:f198032757d6

lib/libinput: fix build until sphinx is available
author David Demelier <markand@malikania.fr>
date Wed, 04 Sep 2019 08:54:08 +0200
parents ddab65a5b3f5
children 3dece1f7570b
comparison
equal deleted inserted replaced
1083:917674fbedb0 1084:f198032757d6
20 PKGREVISION=1 20 PKGREVISION=1
21 PKGLICENSE="MIT" 21 PKGLICENSE="MIT"
22 PKGSUMMARY="library to handle input devices in wayland" 22 PKGSUMMARY="library to handle input devices in wayland"
23 PKGDOWNLOAD="https://www.freedesktop.org/software/$PKGNAME/$PKGNAME-$PKGVERSION.tar.xz" 23 PKGDOWNLOAD="https://www.freedesktop.org/software/$PKGNAME/$PKGNAME-$PKGVERSION.tar.xz"
24 PKGDEPENDS="libevdev mtdev" 24 PKGDEPENDS="libevdev mtdev"
25 PKGOPTIONS="DOXYGEN WACOM" 25 PKGOPTIONS="WACOM"
26 26
27 : ${CC:=clang} 27 : ${CC:=clang}
28 : ${CFLAGS:=-O2} 28 : ${CFLAGS:=-O2}
29 : ${LDFLAGS:=} 29 : ${LDFLAGS:=}
30 : ${LIBS:=} 30 : ${LIBS:=}
31 : ${DOXYGEN:=yes}
32 : ${WACOM:=yes} 31 : ${WACOM:=yes}
33
34 if [ "$DOXYGEN" = "yes" ]; then
35 PKGDEPENDS="doxygen $PKGDEPENDS"
36 with_doxygen="-D documentation=true"
37 else
38 with_doxygen="-D documentation=false"
39 fi
40 32
41 if [ "$WACOM" = "yes" ]; then 33 if [ "$WACOM" = "yes" ]; then
42 PKGDEPENDS="libwacom $PKGDEPENDS" 34 PKGDEPENDS="libwacom $PKGDEPENDS"
43 with_wacom="-D libwacom=true" 35 with_wacom="-D libwacom=true"
44 else 36 else
49 { 41 {
50 rm -rf $PKGNAME-$PKGVERSION 42 rm -rf $PKGNAME-$PKGVERSION
51 tar xvf $PKGNAME-$PKGVERSION.tar.xz 43 tar xvf $PKGNAME-$PKGVERSION.tar.xz
52 cd $PKGNAME-$PKGVERSION 44 cd $PKGNAME-$PKGVERSION
53 45
46 # TODO: -D documentation=false: enable once sphinx is available.
54 CC="$CC" \ 47 CC="$CC" \
55 CFLAGS="$CFLAGS" \ 48 CFLAGS="$CFLAGS" \
56 LDFLAGS="$LDFLAGS" \ 49 LDFLAGS="$LDFLAGS" \
57 meson . build \ 50 meson . build \
58 --prefix / \ 51 --prefix / \
59 --buildtype release \ 52 --buildtype release \
60 --default-library shared \ 53 --default-library shared \
54 -D documentation=false \
61 -D debug-gui=false \ 55 -D debug-gui=false \
62 -D tests=false \ 56 -D tests=false \
63 -D libdir=lib \ 57 -D libdir=lib \
64 $with_doxygen \ 58 $with_doxygen \
65 $with_wacom 59 $with_wacom