freetype:update and moved to /usr/lib
[nyanlinux.git] / builders / libevdev-1 / builder.sh
blob246096c7d8ad9b58503a6ce5cf004951e36cdf8b
1 src_name=libevdev
2 slot=1
3 version=1.11.0
4 archive_name=$src_name-$version.tar.xz
5 url0=http://www.freedesktop.org/software/$src_name/$archive_name
7 pkg_dir=$pkgs_dir_root/$src_name-$version
8 rm -Rf $pkg_dir
9 mkdir -p $pkgs_dir_root
10 cp -f $src_dir_root/$archive_name $pkgs_dir_root
11 cd $pkgs_dir_root
12 tar xf $archive_name
14 build_dir=$builds_dir_root/$pkg_name-$version
15 rm -Rf $build_dir
16 mkdir -p $build_dir
17 cd $build_dir
19 export PKG_CONFIG_LIBDIR=
21 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"
22 export 'CFLAGS=-O2 -pipe -fPIC'
23 export PYTHON=$sdk_python3_path/bin/python3
24 $pkg_dir/configure \
25 --prefix=/nyan/libevdev/$slot \
26 --disable-shared
27 unset PYTHON
28 unset CFLAGS
29 unset CC
31 make -j $threads_n
32 make install
34 # cleanup and tidying
35 rm -Rf /nyan/$src_name/$slot/share
36 rm -f /nyan/$src_name/$slot/lib/*.la
37 strip -s /nyan/$src_name/$slot/bin/* || true
39 rm -Rf $build_dir $pkg_dir