#!/bin/sh
packages="gl-pal
bullet-mini
vr-pal
glfw-pal
halive
animation-pal
linear-extra
lens-extra
openvr-hs
pd-hs
bindings-GLFW
freetype-gl-mini
text-gl
extensible-ecs"

cd ..

for i in $packages; do
    git clone --recursive https://github.com/lukexi/$i.git
done

cd rumpus

# Checkout bindings-GLFW workaround (no longer necessary on GHC 8.0.2)
(cd ../bindings-GLFW && git checkout win-halive-fix)
# Apply needed patch for MSYS2 support to freetype mainline
(cd ../freetype-gl-mini && git apply freetype-gl-strdup-fix.patch)

# Copy necessary DLLs to /usr/local/bin
(cd ../openvr-hs && ./copyLibWin.sh)
(cd ../pd-hs && ./copyLibWin.sh)

#!/bin/sh
packages="gl-pal
bullet-mini
vr-pal
glfw-pal
halive
animation-pal
linear-extra
lens-extra
openvr-hs
pd-hs
bindings-GLFW
freetype-gl-mini
text-gl
extensible-ecs"

cd ..

for i in $packages; do
    git clone --recursive https://github.com/lukexi/$i.git
done

cd rumpus

# Checkout bindings-GLFW workaround (no longer necessary on GHC 8.0.2)
(cd ../bindings-GLFW && git checkout win-halive-fix)

# Copy necessary DLLs to /usr/local/bin
(cd ../openvr-hs && ./copyLibWin.sh)
(cd ../pd-hs && ./copyLibWin.sh)

Remove obviated freetype patch in build script
Remove obviated freetype patch in build script
