shrub/nix/nixcrpkgs/pkgs/libx11/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

25 lines
513 B
Bash

source $setup
tar -xf $src
mv libX11-* libx11
mkdir build
cd build
PKG_CONFIG=pkg-config-cross \
../libx11/configure --prefix $out $configure_flags
make
make install
# Make static linking work.
sed -i 's/Requires.private/Requires/' $out/lib/pkgconfig/*.pc
ln -s x11-xcb.pc $out/lib/pkgconfig/X11-xcb.pc
ln -s x11.pc $out/lib/pkgconfig/X11.pc
ln -sf $xproto/lib/pkgconfig/*.pc $out/lib/pkgconfig/
ln -sf $kbproto/lib/pkgconfig/*.pc $out/lib/pkgconfig/
ln -sf $libxcb/lib/pkgconfig/*.pc $out/lib/pkgconfig/