wip update
[nyanlinux.git] / builders / xf86-input-evdev-71036116be11b8c9d39ce153738875c44183cc60 / builder.sh
blobec8e3aea629c0c637c8b26eb105a372bf372cc9a
1 src_name=xf86-input-evdev
2 git_commit=${pkg_name##*-}
3 slot=$git_commit
4 git_url0=git://gitlab.freedesktop.org/xorg/driver/$src_name
6 src_dir=$src_dir_root/$src_name
7 pkg_dir=$pkgs_dir_root/$pkg_name
8 mkdir -p $pkgs_dir_root
9 rm -Rf $pkg_dir
10 cp -r $src_dir $pkg_dir
12 cd $pkg_dir
14 if test x$git_commit != x; then
15 git checkout --force $git_commit
16 git reset --hard
19 PATH_SAVED=$PATH
20 export PATH=$sdk_autoconf_path/bin:$sdk_automake_path/bin:$sdk_libtool_path/bin:$PATH
21 export "ACLOCAL_PATH=\
22 /nyan/pkg-config/current/share/aclocal:\
23 /nyan/libtool/current/share/aclocal:\
24 /nyan/util-macro/current/share/aclocal"
26 export NOCONFIGURE=1
27 ./autogen.sh
28 unset NOCONFIGURE
30 export PATH=$PATH_SAVED
31 unset ACLOCAL
33 build_dir=$builds_dir_root/$pkg_name
34 rm -Rf $build_dir
35 mkdir -p $build_dir
36 cd $build_dir
38 export "PKG_CONFIG_LIBDIR=\
39 /nyan/mudev/current/lib/pkgconfig:\
40 /nyan/mtdev/current/lib/pkgconfig:\
41 /nyan/libevdev/current/lib/pkgconfig:\
42 /nyan/drm/current/lib/pkgconfig:\
43 /nyan/mesa-gl/current/lib/pkgconfig:\
44 /nyan/pixman/current/lib/pkgconfig:\
45 /nyan/libpciaccess/current/lib/pkgconfig:\
46 /nyan/xserver/current/lib/pkgconfig:\
47 /nyan/xorgproto/current/share/pkgconfig:\
48 /nyan/util-macro/current/share/pkgconfig"
50 # misconfiguration
51 export 'CPPFLAGS=-I/nyan/mtdev/current/include -I/nyan/mudev/current/include'
52 export 'CFLAGS=-O2 -pipe -fPIC'
53 export "CC=gcc -isystem /nyan/glibc/current/include -isystem /nyan/linux-headers/current/include -B/nyan/glibc/current/lib -L/nyan/glibc/current/lib -Wl,-rpath-link,/nyan/glibc/current/lib -static-libgcc"
54 $pkg_dir/configure --prefix=/nyan/xf86-input-evdev/$slot
55 unset CPPFLAGS
56 unset CFLAGS
57 unset CC
59 make -j $threads_n
60 make install
62 # cleanup and tidying
63 rm -Rf /nyan/$src_name/$slot/share/man
64 rm -f /nyan/$src_name/$slot/lib/xorg/modules/input/*.la
65 strip -s /nyan/$src_name/$slot/lib/xorg/modules/input/*.so || true
67 rm -Rf $build_dir $pkg_dir