Mercurial > vanilla
comparison graphics/weston/weston.sh @ 1222:325631424c65
misc: bring back build function
author | David Demelier <markand@malikania.fr> |
---|---|
date | Wed, 27 Oct 2021 11:32:16 +0200 |
parents | a47aaf9743a0 |
children | 9867e578b1a9 |
comparison
equal
deleted
inserted
replaced
1221:a47aaf9743a0 | 1222:325631424c65 |
---|---|
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 rm -rf $PKGNAME-$PKGVERSION | 57 build() |
58 tar xvf $PKGNAME-$PKGVERSION.tar.xz | 58 { |
59 cd $PKGNAME-$PKGVERSION | 59 rm -rf $PKGNAME-$PKGVERSION |
60 tar xvf $PKGNAME-$PKGVERSION.tar.xz | |
61 cd $PKGNAME-$PKGVERSION | |
60 | 62 |
61 # https://gitlab.freedesktop.org/wayland/weston/merge_requests/135 | 63 # https://gitlab.freedesktop.org/wayland/weston/merge_requests/135 |
62 patch -p1 < ../musl.patch | 64 patch -p1 < ../musl.patch |
63 patch -p0 < ../gobject.patch | 65 patch -p0 < ../gobject.patch |
64 autoreconf -vif | 66 autoreconf -vif |
65 CC="$CC" \ | 67 CC="$CC" \ |
66 CFLAGS="$CFLAGS" \ | 68 CFLAGS="$CFLAGS" \ |
67 LDFLAGS="$LDFLAGS" \ | 69 LDFLAGS="$LDFLAGS" \ |
68 LIBS="$LIBS" \ | 70 LIBS="$LIBS" \ |
69 ./configure \ | 71 ./configure \ |
70 --build=$CBUILD \ | 72 --build=$CBUILD \ |
71 --host=$CHOST \ | 73 --host=$CHOST \ |
72 --prefix=/usr \ | 74 --prefix= \ |
73 $with_dbus \ | 75 $with_dbus \ |
74 $with_pam \ | 76 $with_pam \ |
75 $with_x | 77 $with_x |
76 make | 78 make |
77 make install DESTDIR=$DESTDIR | 79 make install DESTDIR=$DESTDIR |
78 find $DESTDIR -type f -name "*.la" -delete | 80 find $DESTDIR -type f -name "*.la" -delete |
79 | 81 |
80 cd .. | 82 cd .. |
81 rm -rf $PKGNAME-$PKGVERSION | 83 rm -rf $PKGNAME-$PKGVERSION |
84 } |