mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-19 21:02:01 +03:00
edd57d380d
- 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.
28 lines
470 B
Bash
28 lines
470 B
Bash
source $setup
|
|
|
|
tar -xf $src
|
|
mv libusb-* libusb
|
|
|
|
mkdir build
|
|
cd build
|
|
|
|
if [ -n "$libudev" ]; then
|
|
export CFLAGS="${CFLAGS:=} -isystem $libudev/include"
|
|
export LDFLAGS="${LDFLAGS:=} -L$libudev/lib"
|
|
fi
|
|
|
|
../libusb/configure \
|
|
--prefix=$out \
|
|
--host=$host \
|
|
--enable-static \
|
|
--disable-shared
|
|
|
|
make
|
|
|
|
make install
|
|
|
|
if [ -n "$libudev" ]; then
|
|
ln -s $libudev/lib/pkgconfig/*.pc $out/lib/pkgconfig/
|
|
echo "Requires: libudev" >> $out/lib/pkgconfig/libusb-1.0.pc
|
|
fi
|