shrub/nix/nixcrpkgs/pkgs/libxi/builder.sh
benjamin-tlon edd57d380d
Finish cc-release cross-compilation. (#1202)
- Fixes the IPC bug
- Fixes the terminfo bug
- Moves the OSX SDK out of our nixcrpkgs fork.
- Vendor nixcrpkgs instead of having it be a submodule.
2019-04-23 19:50:38 -07:00

22 lines
456 B
Bash

source $setup
tar -xf $src
mv libXi-* libxi
mkdir build
cd build
PKG_CONFIG=pkg-config-cross \
../libxi/configure --prefix=$out $configure_flags
make
make install
sed -i 's/Requires.private/Requires/' $out/lib/pkgconfig/*.pc
ln -sf $inputproto/lib/pkgconfig/*.pc $out/lib/pkgconfig/
ln -sf $libx11/lib/pkgconfig/*.pc $out/lib/pkgconfig/
ln -sf $libxext/lib/pkgconfig/*.pc $out/lib/pkgconfig/
ln -sf $libxfixes/lib/pkgconfig/*.pc $out/lib/pkgconfig/