comparison x11/xorg-server/xorg-server.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
53 with_wayland="--enable-xwayland" 53 with_wayland="--enable-xwayland"
54 else 54 else
55 with_wayland="--disable-xwayland" 55 with_wayland="--disable-xwayland"
56 fi 56 fi
57 57
58 build() 58 rm -rf $PKGNAME-$PKGVERSION
59 { 59 tar xvf $PKGNAME-$PKGVERSION.tar.gz
60 rm -rf $PKGNAME-$PKGVERSION 60 cd $PKGNAME-$PKGVERSION
61 tar xvf $PKGNAME-$PKGVERSION.tar.gz
62 cd $PKGNAME-$PKGVERSION
63 61
64 CC="$CC" \ 62 CC="$CC" \
65 CFLAGS="$CFLAGS" \ 63 CFLAGS="$CFLAGS" \
66 LDFLAGS="$LDFLAGS" \ 64 LDFLAGS="$LDFLAGS" \
67 LIBS="$LIBS" \ 65 LIBS="$LIBS" \
68 ./configure \ 66 ./configure \
69 --build=$CBUILD \ 67 --build=$CBUILD \
70 --host=$CHOST \ 68 --host=$CHOST \
71 --prefix= \ 69 --prefix= \
72 --enable-pciaccess \ 70 --enable-pciaccess \
73 --enable-libdrm \ 71 --enable-libdrm \
74 --disable-systemd-logind \ 72 --disable-systemd-logind \
75 --disable-unit-tests \ 73 --disable-unit-tests \
76 $with_glamor \ 74 $with_glamor \
77 $with_udev \ 75 $with_udev \
78 $with_wayland 76 $with_wayland
79 make 77 make
80 make install DESTDIR=$DESTDIR 78 make install DESTDIR=$DESTDIR
81 find $DESTDIR -type f -name "*.la" -delete 79 find $DESTDIR -type f -name "*.la" -delete
82 80
83 cd .. 81 cd ..
84 rm -rf $PKGNAME-$PKGVERSION 82 rm -rf $PKGNAME-$PKGVERSION
85 }