mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-07-01 00:58:42 +08:00
33 lines
607 B
Bash
33 lines
607 B
Bash
BUILD_DEPENDS=(liborbital llvm mesa mesa-glu zlib)
|
|
|
|
function recipe_version {
|
|
printf "1.0.0"
|
|
skip=1
|
|
}
|
|
|
|
function recipe_prepare {
|
|
rm -rf source
|
|
mkdir source
|
|
cp gears.c source
|
|
}
|
|
|
|
function recipe_build {
|
|
sysroot="$(realpath ../sysroot)"
|
|
set -x
|
|
"${CXX}" -O2 -I "$sysroot/include" -L "$sysroot/lib" gears.c -o gears -static -lorbital $("${PKG_CONFIG}" --libs glu) -lz
|
|
set +x
|
|
skip=1
|
|
}
|
|
|
|
function recipe_clean {
|
|
"$REDOX_MAKE" clean
|
|
skip=1
|
|
}
|
|
|
|
function recipe_stage {
|
|
dest="$(realpath $1)"
|
|
mkdir -pv "$dest/bin"
|
|
cp -v "gears" "$dest/bin/gears"
|
|
skip=1
|
|
}
|