Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
cookbook
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
redox-os
cookbook
Commits
51e3b83d
Verified
Commit
51e3b83d
authored
3 weeks ago
by
Josh Megnauth
Browse files
Options
Downloads
Patches
Plain Diff
Dynamically linked DevilutionX
parent
f9a89554
No related branches found
Branches containing commit
No related tags found
1 merge request
!451
Dynamically linked DevilutionX
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
recipes/games/devilutionx/recipe.toml
+29
-14
29 additions, 14 deletions
recipes/games/devilutionx/recipe.toml
with
29 additions
and
14 deletions
recipes/games/devilutionx/recipe.toml
+
29
−
14
View file @
51e3b83d
[source]
tar
=
"https://github.com/diasurgical/devilutionX/archive/refs/tags/1.5.
1
.tar.gz"
blake3
=
"
8425152bf50a692573d17ba85a8445734a564a372eba2190223bf0aa04f31d86
"
tar
=
"https://github.com/diasurgical/devilutionX/archive/refs/tags/1.5.
4
.tar.gz"
blake3
=
"
d4a61ff3a7c69d86a29158918aad48ab9c4866c6a22a3e8da5feadbb7d23b3ca
"
[build]
template
=
"custom"
dependencies
=
[
"libiconv"
,
"liborbital"
,
"sdl1"
,
]
dependencies
=
[
"libiconv"
,
"liborbital"
,
"sdl1"
]
script
=
"""
export CFLAGS="${CFLAGS} -I${COOKBOOK_SYSROOT}/include"
export CXXFLAGS="${CXXFLAGS} -I${COOKBOOK_SYSROOT}/include"
DYNAMIC_INIT
# export CFLAGS="${CFLAGS} -I${COOKBOOK_SYSROOT}/include"
# export CXXFLAGS="${CXXFLAGS} -I${COOKBOOK_SYSROOT}/include"
# export LDFLAGS="${LDFLAGS} -L${COOKBOOK_SYSROOT}/lib"
COOKBOOK_CONFIGURE="cmake"
COOKBOOK_CONFIGURE_FLAGS=(
if [[ -n "${COOKBOOK_PREFER_STATIC}" ]]; then
COOKBOOK_CONFIGURE_FLAGS=(
-DDEVILUTIONX_STATIC_BZIP2=ON
-DDEVILUTIONX_STATIC_ZLIB=ON
-DDEVILUTIONX_SYSTEM_BZIP2=OFF
-DDEVILUTIONX_SYSTEM_ZLIB=OFF
)
else
COOKBOOK_CONFIGURE_FLAGS=(
-DDEVILUTIONX_SYSTEM_BZIP2=ON
-DDEVILUTIONX_SYSTEM_ZLIB=ON
-DCMAKE_PREFIX_PATH="${COOKBOOK_SYSROOT}"
)
fi
COOKBOOK_CONFIGURE_FLAGS+=(
-DCMAKE_BUILD_TYPE=Release
-DCMAKE_CROSSCOMPILING=ON
-DCMAKE_CXX_COMPILER="${TARGET}-g++"
...
...
@@ -21,10 +37,6 @@ COOKBOOK_CONFIGURE_FLAGS=(
-DCMAKE_INSTALL_PREFIX="/"
-DCMAKE_VERBOSE_MAKEFILE=ON
-DBUILD_TESTING=OFF
-DDEVILUTIONX_STATIC_BZIP2=ON
-DDEVILUTIONX_STATIC_ZLIB=ON
-DDEVILUTIONX_SYSTEM_BZIP2=OFF
-DDEVILUTIONX_SYSTEM_ZLIB=OFF
-DNONET=ON
-DUSE_SDL1=ON
-DSDL_LIBRARY="-lSDL -lorbital"
...
...
@@ -34,3 +46,6 @@ cookbook_configure
mkdir -v "${COOKBOOK_STAGE}/bin"
cp -v devilutionx "${COOKBOOK_STAGE}/bin"
"""
[package]
shared-deps
=
[
"bzip2"
,
"libgcc"
,
"libiconv"
,
"liborbital"
,
"sdl1"
,
"zlib"
]
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment