Mercurial > vanilla
comparison lib/libinput/libinput.sh @ 766:e91fbcb3d1ef
vanilla: consolidate FHS
author | David Demelier <markand@malikania.fr> |
---|---|
date | Fri, 09 Aug 2019 20:10:00 +0200 |
parents | 25cecc6dca48 |
children | 6633bc51db0e |
comparison
equal
deleted
inserted
replaced
765:859f76ffb512 | 766:e91fbcb3d1ef |
---|---|
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} | 31 : ${DOXYGEN:=no} # TODO: set to yes once graphics is fixed. |
32 : ${WACOM:=yes} | 32 : ${WACOM:=yes} |
33 | 33 |
34 if [ "$DOXYGEN" = "yes" ]; then | 34 if [ "$DOXYGEN" = "yes" ]; then |
35 PKGDEPENDS="dev/doxygen $PKGDEPENDS" | 35 PKGDEPENDS="dev/doxygen $PKGDEPENDS" |
36 with_doxygen="-D documentation=true" | 36 with_doxygen="-D documentation=true" |
52 cd $PKGNAME-$PKGVERSION | 52 cd $PKGNAME-$PKGVERSION |
53 | 53 |
54 CC="$CC" \ | 54 CC="$CC" \ |
55 CFLAGS="$CFLAGS" \ | 55 CFLAGS="$CFLAGS" \ |
56 LDFLAGS="$LDFLAGS" \ | 56 LDFLAGS="$LDFLAGS" \ |
57 meson \ | 57 meson . build \ |
58 --prefix / \ | 58 --prefix / \ |
59 --buildtype release \ | 59 --buildtype release \ |
60 --default-library shared \ | 60 --default-library shared \ |
61 -D debug-gui=false \ | 61 -D debug-gui=false \ |
62 -D tests=false \ | 62 -D tests=false \ |
63 -D libdir=lib \ | 63 -D libdir=lib \ |
64 $with_doxygen \ | 64 $with_doxygen \ |
65 $with_wacom \ | 65 $with_wacom |
66 . build | |
67 ninja -C build | 66 ninja -C build |
68 DESTDIR=$DESTDIR ninja -C build install | 67 DESTDIR=$DESTDIR ninja -C build install |
68 sed -i -e "s|prefix=/|prefix=|" $DESTDIR/lib/pkgconfig/*.pc | |
69 | 69 |
70 cd .. | 70 cd .. |
71 rm -rf $PKGNAME-$PKGVERSION | 71 rm -rf $PKGNAME-$PKGVERSION |
72 } | 72 } |