shrub/nix/nixcrpkgs/pkgs/xcb-util-image/util_image_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

21 lines
405 B
Bash

source $setup
tar -xf $src
mv xcb-* util
mkdir build
cd build
PKG_CONFIG=pkg-config-cross \
../util/configure --prefix=$out $configure_flags
make
make install
# xcb-util-image-0.4.0/image/xcb_image.c includes <xcb/xcb_aux.h>
echo "Requires: xcb-aux" >> $out/lib/pkgconfig/xcb-image.pc
ln -sf $libxcb/lib/pkgconfig/*.pc $out/lib/pkgconfig/
ln -sf $libxcb_util/lib/pkgconfig/*.pc $out/lib/pkgconfig/