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
ccfd1885
Unverified
Commit
ccfd1885
authored
7 years ago
by
Ian Douglas Scott
Browse files
Options
Downloads
Patches
Plain Diff
Add zlib recipe; use in git recipe
parent
27bbfb29
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!40
[WIP] Git recipe
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
recipes/git/recipe.sh
+3
-21
3 additions, 21 deletions
recipes/git/recipe.sh
recipes/zlib/recipe.sh
+35
-0
35 additions, 0 deletions
recipes/zlib/recipe.sh
with
38 additions
and
21 deletions
recipes/git/recipe.sh
+
3
−
21
View file @
ccfd1885
VERSION
=
2.13.1
TAR
=
https://www.kernel.org/pub/software/scm/git/git-
$VERSION
.tar.xz
BUILD_DEPENDS
=(
zlib
)
HOST
=
x86_64-elf-redox
...
...
@@ -26,27 +27,8 @@ function recipe_update {
}
function
recipe_build
{
if
[
!
-d
zlib
]
then
mkdir
zlib
if
[
!
-f
zlib-1.2.11.tar.gz
]
then
wget http://zlib.net/zlib-1.2.11.tar.gz
fi
tar
xvf zlib-1.2.11.tar.gz
-C
zlib
--strip-components
1
fi
rm
-rf
zlib-prefix
mkdir
zlib-prefix
pushd
zlib
./configure
--static
--prefix
=
/
make
-j
"
$(
nproc
)
"
make
DESTDIR
=
"
$PWD
/../zlib-prefix"
install
popd
autoconf
./configure
--host
=
${
HOST
}
--prefix
=
/
--with-zlib
=
"
${
PWD
}
/zlib-prefix"
autoconf
-f
./configure
--host
=
${
HOST
}
--prefix
=
/
--with-zlib
=
"
${
PWD
}
/../sysroot"
make
skip
=
1
}
...
...
This diff is collapsed.
Click to expand it.
recipes/zlib/recipe.sh
0 → 100644
+
35
−
0
View file @
ccfd1885
VERSION
=
1.2.11
TAR
=
http://zlib.net/zlib-
$VERSION
.tar.gz
function
recipe_version
{
echo
"
$VERSION
"
skip
=
1
}
function
recipe_update
{
echo
"skipping update"
skip
=
1
}
function
recipe_build
{
./configure
--static
--prefix
=
/
make
-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
rm
-rf
"
$1
"
/
{
lib/pkgconfig,share
}
skip
=
1
}
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