Mercurial > vanilla
comparison graphics/wayland/wayland.sh @ 227:67d604c78632
graphics/wayland: initial import, closes #1390
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 20 Mar 2019 21:00:00 +0100 |
parents | |
children | 7828241c9634 |
comparison
equal
deleted
inserted
replaced
226:2ba19e602247 | 227:67d604c78632 |
---|---|
1 #!/bin/sh | |
2 # | |
3 # Copyright (c) 2019 David Demelier <markand@malikania.fr> | |
4 # | |
5 # Permission to use, copy, modify, and/or distribute this software for any | |
6 # purpose with or without fee is hereby granted, provided that the above | |
7 # copyright notice and this permission notice appear in all copies. | |
8 # | |
9 # THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | |
10 # WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | |
11 # MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | |
12 # ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | |
13 # WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | |
14 # ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | |
15 # OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | |
16 # | |
17 | |
18 PKGNAME=wayland | |
19 PKGVERSION=1.16.93 | |
20 PKGREVISION=1 | |
21 PKGLICENSE="MIT" | |
22 PKGSUMMARY="displayer server protocol" | |
23 PKGDOWNLOAD="https://wayland.freedesktop.org/releases/wayland-1.16.93.tar.xz" | |
24 PKGDEPENDS="lib/expat" | |
25 PKGOPTIONS="DTD DOXYGEN" | |
26 | |
27 : ${CHOST:=$(uname -m)-linux-musl} | |
28 : ${CBUILD:=$(uname -m)-linux-musl} | |
29 : ${CC:=gcc} | |
30 : ${CFLAGS:=-O2} | |
31 : ${LDFLAGS:=} | |
32 : ${LIBS:=} | |
33 : ${DTD:=yes} | |
34 : ${DOXYGEN:=yes} | |
35 | |
36 if [ "$DTD" = "yes" ]; then | |
37 PKGDEPENDS="lib/libxml2 $PKGDEPENDS" | |
38 with_dtd="--enable-dtd-validation" | |
39 else | |
40 with_dtd="--disable-dtd-validation" | |
41 fi | |
42 | |
43 if [ "$DOXYGEN" = "yes" ]; then | |
44 PKGDEPENDS="dev/doxygen $PKGDEPENDS" | |
45 with_doxygen="--enable-documentation" | |
46 else | |
47 with_doxygen="--disable-documentation" | |
48 fi | |
49 | |
50 build() | |
51 { | |
52 rm -rf $PKGNAME-$PKGVERSION | |
53 tar xvaf $PKGNAME-$PKGVERSION.tar.xz | |
54 pushd $PKGNAME-$PKGVERSION | |
55 | |
56 CC="$CC" \ | |
57 CFLAGS="$CFLAGS" \ | |
58 LDFLAGS="$LDFLAGS" \ | |
59 LIBS="$LIBS" \ | |
60 ./configure \ | |
61 --build=$CBUILD \ | |
62 --host=$CHOST \ | |
63 --prefix=/usr \ | |
64 --disable-static \ | |
65 $with_dtd \ | |
66 $with_doxygen | |
67 make | |
68 make install DESTDIR=$DESTDIR | |
69 rm -f $DESTDIR/usr/lib/libwayland-{egl,server,client,cursor}.la | |
70 | |
71 popd | |
72 rm -rf $PKGNAME-$PKGVERSION | |
73 } |