urbit/nix/nixcrpkgs/pkgs/libxcb/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

29 lines
471 B
Bash

source $setup
tar -xf $src
mv libxcb-* libxcb
cd libxcb
for patch in $patches; do
echo applying patch $patch
patch -p1 -i $patch
done
cd ..
mkdir build
cd build
PKG_CONFIG=pkg-config-cross \
../libxcb/configure --prefix=$out $configure_flags
make
make install
# Make static linking work.
sed -i 's/Requires.private/Requires/' $out/lib/pkgconfig/*.pc
sed -i 's/Libs.private/Libs/' $out/lib/pkgconfig/*.pc
ln -sf $libxau/lib/pkgconfig/*.pc $out/lib/pkgconfig/