comparison graphics/wayland/wayland.sh @ 828:2a99d51e3ad3

graphics/wayland: many fixes and rename DOXYGEN to DOCS option
author David Demelier <markand@malikania.fr>
date Thu, 22 Aug 2019 20:30:00 +0200
parents 6633bc51db0e
children a133976e0783
comparison
equal deleted inserted replaced
827:89fe0fbb2e62 828:2a99d51e3ad3
18 PKGNAME=wayland 18 PKGNAME=wayland
19 PKGVERSION=1.16.93 19 PKGVERSION=1.16.93
20 PKGREVISION=1 20 PKGREVISION=1
21 PKGLICENSE="MIT" 21 PKGLICENSE="MIT"
22 PKGSUMMARY="displayer server protocol" 22 PKGSUMMARY="displayer server protocol"
23 PKGDOWNLOAD="https://wayland.freedesktop.org/releases/wayland-1.16.93.tar.xz" 23 PKGDOWNLOAD="https://wayland.freedesktop.org/releases/$PKGNAME-$PKGVERSION.tar.xz"
24 PKGDEPENDS="lib/expat" 24 PKGDEPENDS="lib/expat"
25 PKGOPTIONS="DTD DOXYGEN" 25 PKGOPTIONS="DTD DOCS"
26 26
27 : ${CHOST:=$(uname -m)-linux-musl} 27 : ${CHOST:=$(uname -m)-linux-musl}
28 : ${CBUILD:=$(uname -m)-linux-musl} 28 : ${CBUILD:=$(uname -m)-linux-musl}
29 : ${CC:=clang} 29 : ${CC:=clang}
30 : ${CFLAGS:=-O2} 30 : ${CFLAGS:=-O2}
31 : ${LDFLAGS:=} 31 : ${LDFLAGS:=}
32 : ${LIBS:=} 32 : ${LIBS:=}
33 : ${DTD:=yes} 33 : ${DTD:=yes}
34 : ${DOXYGEN:=yes} 34 : ${DOCS:=yes}
35 35
36 if [ "$DTD" = "yes" ]; then 36 if [ "$DTD" = "yes" ]; then
37 PKGDEPENDS="text/libxml2 $PKGDEPENDS" 37 PKGDEPENDS="text/libxml2 $PKGDEPENDS"
38 with_dtd="--enable-dtd-validation" 38 with_dtd="--enable-dtd-validation"
39 else 39 else
40 with_dtd="--disable-dtd-validation" 40 with_dtd="--disable-dtd-validation"
41 fi 41 fi
42 42
43 if [ "$DOXYGEN" = "yes" ]; then 43 if [ "$DOCS" = "yes" ]; then
44 PKGDEPENDS="dev/doxygen $PKGDEPENDS" 44 PKGDEPENDS="graphics/graphviz:build dev/doxygen:build text/xmlto:build $PKGDEPENDS"
45 with_doxygen="--enable-documentation" 45 with_docs="--enable-documentation"
46 else 46 else
47 with_doxygen="--disable-documentation" 47 with_docs="--disable-documentation"
48 fi 48 fi
49 49
50 build() 50 build()
51 { 51 {
52 rm -rf $PKGNAME-$PKGVERSION 52 rm -rf $PKGNAME-$PKGVERSION
60 ./configure \ 60 ./configure \
61 --build=$CBUILD \ 61 --build=$CBUILD \
62 --host=$CHOST \ 62 --host=$CHOST \
63 --prefix= \ 63 --prefix= \
64 $with_dtd \ 64 $with_dtd \
65 $with_doxygen 65 $with_docs
66 make 66 make
67 make install DESTDIR=$DESTDIR 67 make install DESTDIR=$DESTDIR
68 find $DESTDIR -type f -name "*.la" -delete 68 find $DESTDIR -type f -name "*.la" -delete
69 69
70 cd .. 70 cd ..