|
root / base / wget
wget Plain Text 55 lines 1.3 KB
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#!/bin/bash
# Build script for GNU wget

set -e
cd "$SRCDIR"

# Fix illumos gnulib compatibility issues
for f in lib/localename.c gnulib-tests/localename.c; do
    if [ -f "$f" ]; then
        sed -i 's/extern char \* getlocalename_l/extern const char * getlocalename_l/' "$f"
    fi
done

./configure \
    --prefix=$PREFIX \
    --sysconfdir=$SYSCONFDIR \
    --with-ssl=openssl \
    --disable-nls \
    --disable-pcre2

# Fix illumos memset_s false detection if present
for config in lib/config.h gnulib-tests/config.h config.h; do
    if [ -f "$config" ]; then
        sed -i 's/#define HAVE_MEMSET_S 1/\/* #undef HAVE_MEMSET_S - illumos has it as macro only *\//' "$config"
    fi
done

gmake -j${JOBS:-1}
gmake install DESTDIR="$PKGDIR"
# GNU Wget - Network downloader
# https://www.gnu.org/software/wget/

[package]
name = "wget"
version = "1.25.0"
release = 1
description = "GNU Wget - Network downloader supporting HTTP, HTTPS and FTP"
url = "https://www.gnu.org/software/wget/"
license = "GPL-3.0"
maintainer = "Chris Tusa <chris.tusa@leafscale.com>"
arch = "x86_64"

[dependencies]
runtime = ["zlib"]
build = ["zlib"]

[[source]]
file = "wget-1.25.0.tar.gz"
urls = ["https://mirrors.kernel.org/gnu/wget/wget-1.25.0.tar.gz"]
checksum = "766e48423e79359ea31e41db9e5c289675947a7fcf2efdcedb726ac9d0da3784"


[build]
parallel = true