comparison graphics/weston/weston.sh @ 1216:6710613b88b9

misc: remove build function
author David Demelier <markand@malikania.fr>
date Wed, 29 Sep 2021 13:49:32 +0200
parents ddab65a5b3f5
children 27d1a83dc8d6
comparison
equal deleted inserted replaced
1215:3214f7fed454 1216:6710613b88b9
52 with_x="--enable-xwayland --enable-x11-compositor" 52 with_x="--enable-xwayland --enable-x11-compositor"
53 else 53 else
54 with_x="--disable-xwayland --disable-x11-compositor" 54 with_x="--disable-xwayland --disable-x11-compositor"
55 fi 55 fi
56 56
57 build() 57 rm -rf $PKGNAME-$PKGVERSION
58 { 58 tar xvf $PKGNAME-$PKGVERSION.tar.xz
59 rm -rf $PKGNAME-$PKGVERSION 59 cd $PKGNAME-$PKGVERSION
60 tar xvf $PKGNAME-$PKGVERSION.tar.xz
61 cd $PKGNAME-$PKGVERSION
62 60
63 # https://gitlab.freedesktop.org/wayland/weston/merge_requests/135 61 # https://gitlab.freedesktop.org/wayland/weston/merge_requests/135
64 patch -p1 < ../musl.patch 62 patch -p1 < ../musl.patch
65 patch -p0 < ../gobject.patch 63 patch -p0 < ../gobject.patch
66 autoreconf -vif 64 autoreconf -vif
67 CC="$CC" \ 65 CC="$CC" \
68 CFLAGS="$CFLAGS" \ 66 CFLAGS="$CFLAGS" \
69 LDFLAGS="$LDFLAGS" \ 67 LDFLAGS="$LDFLAGS" \
70 LIBS="$LIBS" \ 68 LIBS="$LIBS" \
71 ./configure \ 69 ./configure \
72 --build=$CBUILD \ 70 --build=$CBUILD \
73 --host=$CHOST \ 71 --host=$CHOST \
74 --prefix= \ 72 --prefix= \
75 $with_dbus \ 73 $with_dbus \
76 $with_pam \ 74 $with_pam \
77 $with_x 75 $with_x
78 make 76 make
79 make install DESTDIR=$DESTDIR 77 make install DESTDIR=$DESTDIR
80 find $DESTDIR -type f -name "*.la" -delete 78 find $DESTDIR -type f -name "*.la" -delete
81 79
82 cd .. 80 cd ..
83 rm -rf $PKGNAME-$PKGVERSION 81 rm -rf $PKGNAME-$PKGVERSION
84 }