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
9cfbf508
Verified
Commit
9cfbf508
authored
5 years ago
by
Jeremy Soller
Browse files
Options
Downloads
Patches
Plain Diff
WIP: neverball
parent
b22e461d
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes/neverball/recipe.sh
+37
-0
37 additions, 0 deletions
recipes/neverball/recipe.sh
recipes/neverball/redox.patch
+57
-0
57 additions, 0 deletions
recipes/neverball/redox.patch
with
94 additions
and
0 deletions
recipes/neverball/recipe.sh
0 → 100644
+
37
−
0
View file @
9cfbf508
VERSION
=
1.6.0
TAR
=
"https://neverball.org/neverball-
${
VERSION
}
.tar.gz"
BUILD_DEPENDS
=(
gettext libjpeg libogg liborbital libpng libvorbis llvm mesa sdl2 sdl2_ttf
)
function
recipe_version
{
echo
"
$VERSION
"
skip
=
1
}
function
recipe_update
{
echo
"skipping update"
skip
=
1
}
function
recipe_build
{
sysroot
=
"
$(
realpath
../sysroot
)
"
export
CPPFLAGS
=
"-I
$sysroot
/include"
export
LDFLAGS
=
"-L
$sysroot
/lib -static"
make
ENABLE_FS
=
stdio
-j
"
$(
nproc
)
"
skip
=
1
}
function
recipe_test
{
echo
"skipping test"
skip
=
1
}
function
recipe_clean
{
make clean
skip
=
1
}
function
recipe_stage
{
dest
=
"
$(
realpath
$1
)
"
make
DESTDIR
=
"
$dest
"
install
skip
=
1
}
This diff is collapsed.
Click to expand it.
recipes/neverball/redox.patch
0 → 100644
+
57
−
0
View file @
9cfbf508
diff -ruwN source/Makefile source-new/Makefile
--- source/Makefile 2019-08-07 22:16:07.630185664 -0600
+++ source-new/Makefile 2019-08-07 22:30:34.246756435 -0600
@@ -38,11 +38,11 @@
ifeq ($(DEBUG),1)
CFLAGS := -g
CXXFLAGS := -g
- CPPFLAGS :=
+ CPPFLAGS +=
else
CFLAGS := -O2
CXXFLAGS := -O2
- CPPFLAGS := -DNDEBUG
+ CPPFLAGS += -DNDEBUG
endif
#------------------------------------------------------------------------------
@@ -64,8 +64,8 @@
# Preprocessor...
-SDL_CPPFLAGS := $(shell sdl2-config --cflags)
-PNG_CPPFLAGS := $(shell libpng-config --cflags)
+SDL_CPPFLAGS := $(shell $(PKG_CONFIG) sdl2 --cflags)
+PNG_CPPFLAGS := $(shell $(PKG_CONFIG) libpng --cflags)
ALL_CPPFLAGS := $(SDL_CPPFLAGS) $(PNG_CPPFLAGS) -Ishare
@@ -124,8 +124,8 @@
#------------------------------------------------------------------------------
# Libraries
-SDL_LIBS := $(shell sdl2-config --libs)
-PNG_LIBS := $(shell libpng-config --libs)
+SDL_LIBS := $(shell $(PKG_CONFIG) sdl2 --libs)
+PNG_LIBS := $(shell $(PKG_CONFIG) libpng --libs)
ifeq ($(ENABLE_FS),stdio)
FS_LIBS :=
@@ -148,7 +148,7 @@
endif
endif
-OGL_LIBS := -lGL
+OGL_LIBS := -lorbital $(shell $(PKG_CONFIG) osmesa --libs) -lglapi
ifeq ($(PLATFORM),mingw)
ifneq ($(ENABLE_NLS),0)
@@ -175,7 +175,7 @@
/usr/local/lib))
endif
-OGG_LIBS := -lvorbisfile
+OGG_LIBS := -lvorbisfile -lvorbis -logg
TTF_LIBS := -lSDL2_ttf
ALL_LIBS := $(HMD_LIBS) $(TILT_LIBS) $(INTL_LIBS) $(TTF_LIBS) \
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