diff --git a/recipes/glutin/recipe.sh b/recipes/glutin/recipe.sh index 9e2a08af8af5572dde7b33b274b6a690910e6435..fe95257fbbdb954471e72d55c463b57ea93b0fde 100644 --- a/recipes/glutin/recipe.sh +++ b/recipes/glutin/recipe.sh @@ -1,6 +1,6 @@ GIT=https://gitlab.redox-os.org/redox-os/glutin.git GIT_UPSTREAM=https://github.com/tomaka/glutin.git -BUILD_DEPENDS=(mesa) +BUILD_DEPENDS=(mesa zlib) BRANCH=redox CARGOFLAGS="--example window" @@ -12,7 +12,15 @@ function recipe_build { -L "${sysroot}/lib" \ -l OSMesa \ -l glapi \ + -l z \ -l stdc++ \ -C link-args="-Wl,--whole-archive -lpthread -Wl,--no-whole-archive" skip=1 } + +function recipe_stage { + dest="$(realpath $1)" + mkdir -pv "$dest/bin" + cp -v "target/${TARGET}/release/examples/window" "$dest/bin/glutin" + skip=1 +} diff --git a/recipes/hematite/recipe.sh b/recipes/hematite/recipe.sh index 1eac2e09ae7281cad9456db4c3ba93ad2c039ba4..07766496995927fa3281d18dcb50cdd9e38da839 100644 --- a/recipes/hematite/recipe.sh +++ b/recipes/hematite/recipe.sh @@ -1,6 +1,6 @@ GIT=https://gitlab.redox-os.org/redox-os/hematite.git GIT_UPSTREAM=https://github.com/PistonDevelopers/hematite.git -BUILD_DEPENDS=(mesa) +BUILD_DEPENDS=(mesa zlib) BRANCH=redox function recipe_build { @@ -11,6 +11,7 @@ function recipe_build { -L "${sysroot}/lib" \ -l OSMesa \ -l glapi \ + -l z \ -l stdc++ \ -C link-args="-Wl,--whole-archive -lpthread -Wl,--no-whole-archive" skip=1 diff --git a/recipes/rust-cairo/recipe.sh b/recipes/rust-cairo/recipe.sh index 345db4c83f49d769902311eda7fa1b70f0001ed6..f2fea6aaea7b2a9e9e1602d28f9d24baf64b8aaf 100644 --- a/recipes/rust-cairo/recipe.sh +++ b/recipes/rust-cairo/recipe.sh @@ -12,7 +12,13 @@ function recipe_build { -l pixman-1 \ -l freetype \ -l png \ - -l z + -l z skip=1 } +function recipe_stage { + dest="$(realpath $1)" + mkdir -pv "$dest/bin" + cp -v "target/${TARGET}/release/examples/gui" "$dest/bin/rust-cairo" + skip=1 +} diff --git a/recipes/winit/recipe.sh b/recipes/winit/recipe.sh index eaa6196bbc92a0d745c62838c75794096dad74a1..8f18b82ca87b2974ffabfcef797726eddbe38e43 100644 --- a/recipes/winit/recipe.sh +++ b/recipes/winit/recipe.sh @@ -2,3 +2,10 @@ GIT=https://gitlab.redox-os.org/redox-os/winit.git GIT_UPSTREAM=https://github.com/tomaka/winit.git BRANCH=redox CARGOFLAGS="--example window" + +function recipe_stage { + dest="$(realpath $1)" + mkdir -pv "$dest/bin" + cp -v "target/${TARGET}/release/examples/window" "$dest/bin/winit" + skip=1 +}