wget/bootstrap.conf

169 lines
3.0 KiB
Plaintext
Raw Permalink Normal View History

2010-05-07 04:51:08 +08:00
# bootstrap.conf - Bootstrap configuration.
2024-02-19 21:03:43 +08:00
# Copyright (C) 2007-2012, 2018-2024 Free Software Foundation, Inc.
2010-05-07 04:51:08 +08:00
#
# This file is part of GNU Wget.
#
# GNU Wget is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or (at
# your option) any later version.
#
# GNU Wget is distributed in the hope that it will be useful, but
2010-05-07 04:51:08 +08:00
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see `https://www.gnu.org/licenses/'.
2010-05-07 04:51:08 +08:00
# gnulib library name
source_base=lib
tests_base=lib/tests
2010-05-07 04:51:08 +08:00
gnulib_name=libgnu
gnulib_tool_option_extras="--makefile-name=gnulib.mk --po-base=gnulib_po --po-domain=wget"
2010-05-07 04:51:08 +08:00
use_libtool=0
checkout_only_file=
# gnulib modules used by this package.
gnulib_modules="
2010-05-07 18:28:26 +08:00
accept
2010-05-07 04:51:08 +08:00
announce-gen
2011-11-05 05:25:00 +08:00
base32
2010-05-07 18:28:26 +08:00
bind
2010-05-07 04:51:08 +08:00
c-ctype
c-strcase
c-strcasestr
2011-04-19 18:33:46 +08:00
clock-time
2010-05-07 18:28:26 +08:00
close
connect
crypto/md2
crypto/md4
crypto/md5
crypto/sha1
crypto/sha256
crypto/sha512
dirname
do-release-commit-and-tag
2011-04-03 08:15:22 +08:00
fcntl
flock
fnmatch-gnu
fopen
2012-03-21 03:41:14 +08:00
ftello
futimens
gendocs
2010-06-15 22:35:29 +08:00
getaddrinfo
getline
getopt-gnu
2010-05-07 04:51:08 +08:00
getpass-gnu
2010-05-07 18:28:26 +08:00
getpeername
getsockname
gettext-h
git-version-gen
gitlog-to-changelog
gnu-web-doc-update
gnupload
2017-03-24 18:36:01 +08:00
group-member
hostent
2011-08-11 18:15:51 +08:00
iconv
2010-06-04 00:09:52 +08:00
iconv-h
inet_ntop
intprops
inttypes
ioctl
langinfo
libunistring-optional
limits-h
link
2010-05-07 18:28:26 +08:00
listen
2010-05-07 04:51:08 +08:00
maintainer-makefile
mbiter
2011-04-14 22:02:43 +08:00
mbtowc
memrchr
2011-04-19 17:31:25 +08:00
mkdir
mkostemp
mkstemp
nanosleep
open
pipe-posix
posix_spawn
2010-05-07 04:51:08 +08:00
quote
quotearg
recv
regex
rename
2010-05-07 04:51:08 +08:00
select
send
2010-05-07 18:28:26 +08:00
setsockopt
signal-h
sigpipe
sigprocmask
2010-05-27 19:59:46 +08:00
snprintf
2010-05-07 04:51:08 +08:00
socket
spawn-pipe
stat
2010-05-07 04:51:08 +08:00
stdbool
stdint
strcase
strerror_r-posix
strpbrk
strptime
2012-03-21 03:41:14 +08:00
strtok_r
strtol
strtoll
symlink
sys_types
timegm
2011-11-05 05:25:00 +08:00
tmpdir
unicase/u8-tolower
unistr/u8-strlen
unlink
2011-04-14 22:02:43 +08:00
unlocked-io
2010-05-07 04:51:08 +08:00
update-copyright
utime
utimens
2010-07-09 20:56:40 +08:00
vasprintf
vsnprintf
warnings
wcwidth
2010-05-07 04:51:08 +08:00
write
xmemdup0
xstrndup
2010-05-07 04:51:08 +08:00
"
2010-06-10 16:06:03 +08:00
# Build prerequisites
buildreq="\
autoconf 2.64
2011-03-20 05:25:35 +08:00
automake 1.11.1
2010-06-10 16:06:03 +08:00
autopoint -
gettext -
2010-06-10 16:06:03 +08:00
git 1.4.4
makeinfo -
perl 5.5
tar -
gzip -
flex -
2017-07-31 20:56:32 +08:00
gperf -
2010-06-10 16:06:03 +08:00
"
bootstrap_post_import_hook ()
{
# We need to patch unicase/special-casing-table.h for gperf < 3.1
GPERF_VER=$(gperf --version | {
IFS=' .' read x y major minor bugfix _
printf "%d%02d%02d" $major $minor $bugfix
})
if [ $GPERF_VER -lt 30100 ]; then
echo "Creating lib/unicase/special-casing-table.h for gperf < 3.1"
gperf -m 10 lib/unicase/special-casing-table.gperf | \
sed -e "s/gl_unicase_special_lookup.*/gl_unicase_special_lookup\ \(const char \*str, size_t len\)/g" \
> lib/unicase/special-casing-table.h
fi
# ./bootstrap calls 'autopoint --force' which will overwrite
# po/Makevars.template. So here we add what we need for a VPATH
# build. ./bootstrap will create po/Makevars from po/Makevars.template
# after our change.
echo 'PACKAGE_GNU = yes' >> po/Makevars.template
}