Use curl in git

This commit is contained in:
Ian Douglas Scott 2017-07-07 12:55:07 -07:00
parent 4955cacafd
commit f666977dc5
No known key found for this signature in database
GPG Key ID: 4924E10E199B5959
3 changed files with 46 additions and 5 deletions

View File

@ -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
}

37
recipes/expat/recipe.sh Normal file
View File

@ -0,0 +1,37 @@
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
}

View File

@ -1,6 +1,6 @@
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
}