Skip to content
Snippets Groups Projects
Unverified Commit f666977d authored by Ian Douglas Scott's avatar Ian Douglas Scott
Browse files

Use curl in git

parent 4955caca
No related branches found
No related tags found
1 merge request!40[WIP] Git recipe
......@@ -31,7 +31,8 @@ function recipe_clean {
}
function recipe_stage {
mkdir "$1/bin"
cp src/curl "$1/bin"
dest="$(realpath $1)"
make DESTDIR="$dest" install
rm -rf "$1"/{share,lib/pkgconfig}
skip=1
}
VERSION=2.2.1
TAR=http://downloads.sourceforge.net/project/expat/expat/$VERSION/expat-$VERSION.tar.bz2
HOST=x86_64-elf-redox
function recipe_version {
echo "$VERSION"
skip=1
}
function recipe_update {
echo "skipping update"
skip=1
}
function recipe_build {
./configure --host=${HOST} --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
}
VERSION=2.13.1
TAR=https://www.kernel.org/pub/software/scm/git/git-$VERSION.tar.xz
BUILD_DEPENDS=(zlib)
BUILD_DEPENDS=(zlib curl openssl expat)
HOST=x86_64-elf-redox
......@@ -16,7 +16,7 @@ export RANLIB="${HOST}-ranlib"
export READELF="${HOST}-readelf"
export STRIP="${HOST}-strip"
MAKEFLAGS="NO_MMAP=1"
MAKEFLAGS="NO_MMAP=1 NEEDS_SSL_WITH_CURL=1 NEEDS_CRYPTO_WITH_SSL=1"
function recipe_version {
echo "$VERSION"
......@@ -29,7 +29,10 @@ function recipe_update {
}
function recipe_build {
./configure --host=${HOST} --prefix=/ --with-zlib="${PWD}/../sysroot" ac_cv_fread_reads_directories=yes ac_cv_snprintf_returns_bogus=yes
sysroot="${PWD}/../sysroot"
export LDFLAGS="-L$sysroot/lib"
export CPPFLAGS="-I$sysroot/include"
./configure --host=${HOST} --prefix=/ ac_cv_fread_reads_directories=yes ac_cv_snprintf_returns_bogus=yes ac_cv_lib_curl_curl_global_init=yes CURL_CONFIG=no
make ${MAKEFLAGS}
skip=1
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment