mirror of
https://gitlab.redox-os.org/redox-os/redox.git
synced 2026-06-24 22:04:19 +08:00
Merge branch 'dyn-link-duke' into 'master'
Dynamically linked Duke Nukem See merge request redox-os/cookbook!518
This commit is contained in:
commit
289becea87
@ -5,22 +5,28 @@ patches = ["redox.patch"]
|
||||
|
||||
[build]
|
||||
dependencies = [
|
||||
"sdl1",
|
||||
"sdl1-mixer",
|
||||
"liborbital",
|
||||
"libiconv",
|
||||
"libogg",
|
||||
"libvorbis",
|
||||
"sdl1",
|
||||
"sdl1-mixer",
|
||||
"liborbital",
|
||||
"libiconv",
|
||||
"libogg",
|
||||
"libvorbis",
|
||||
]
|
||||
template = "custom"
|
||||
script = """
|
||||
DYNAMIC_INIT
|
||||
|
||||
# Copy source to build directory
|
||||
rsync -av --delete "${COOKBOOK_SOURCE}/" ./
|
||||
|
||||
export CFLAGS="-I${COOKBOOK_SYSROOT}/include -I${COOKBOOK_SYSROOT}/include/SDL"
|
||||
export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib -static"
|
||||
export SDLCONFIG="${COOKBOOK_SYSROOT}/bin/sdl-config --prefix=${COOKBOOK_SYSROOT}"
|
||||
|
||||
export LDFLAGS="-L${COOKBOOK_SYSROOT}/lib"
|
||||
if [[ -n "${COOKBOOK_PREFER_STATIC}" ]]; then
|
||||
LDFLAGS+=" -static"
|
||||
fi
|
||||
|
||||
PLATFORM=REDOX "${COOKBOOK_MAKE}" -j"$($NPROC)"
|
||||
|
||||
mkdir -pv "${COOKBOOK_STAGE}/usr/games"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user