mirror of
https://github.com/fosslinux/live-bootstrap.git
synced 2026-03-22 11:06:32 +01:00
curl: update + remove pregened files
This commit is contained in:
parent
04a4b8aba4
commit
2e18c35df8
10 changed files with 51 additions and 51 deletions
45
steps/curl-8.17.0/pass2.sh
Executable file
45
steps/curl-8.17.0/pass2.sh
Executable file
|
|
@ -0,0 +1,45 @@
|
|||
# SPDX-FileCopyrightText: 2022 Samuel Tyler <samuel@samuelt.me>
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-3.0-or-later
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
|
||||
# pregenerated files
|
||||
rm src/tool_listhelp.c src/tool_hugehelp.c lib/easyoptions.c
|
||||
rm docs/libcurl/libcurl-symbols.md
|
||||
rm -r packages/vms/curlmsg.{h,sdl}
|
||||
|
||||
# Regnerate src/tool_cb_prg.c
|
||||
sed '/sinus/q' src/tool_cb_prg.c > src/tool_cb_prg.c.new
|
||||
perl sinus.pl | sed "s/, $//" >> src/tool_cb_prg.c.new
|
||||
sed '1,/^[0-9, ]*[0-9]$/d' src/tool_cb_prg.c >> src/tool_cb_prg.c.new
|
||||
mv src/tool_cb_prg.c.new src/tool_cb_prg.c
|
||||
|
||||
autoreconf-2.71 -fi
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
LDFLAGS="-static" ./configure \
|
||||
--prefix="${PREFIX}" \
|
||||
--libdir="${LIBDIR}" \
|
||||
--build="${TARGET}" \
|
||||
--enable-ipv6 \
|
||||
--with-openssl \
|
||||
--without-libpsl \
|
||||
--with-ca-bundle=/etc/ssl/certs.pem
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
# Recreate tool_help.h
|
||||
sed '/bitmask output/{n; n; n; n; q}' src/tool_help.h > src/tool_help.h.new
|
||||
make -s -C docs/cmdline-opts listcats >> src/tool_help.h.new
|
||||
sed '1,/CURLHELP_VERBOSE/d' src/tool_help.h >> src/tool_help.h.new
|
||||
mv src/tool_help.h.new src/tool_help.h
|
||||
|
||||
# tool_listhelp.c and easyoptions.c
|
||||
make -C src listhelp
|
||||
make -C lib optiontable
|
||||
|
||||
default
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue