4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
22 # Copyright (c) 2018, Michal Nowak
23 # Copyright (c) 2021, Nona Hansel
26 include ..
/..
/..
/make-rules
/shared-macros.mk
29 COMPONENT_VERSION
= 1.25.0
30 COMPONENT_SUMMARY
= GNU wget
- a utility to retrieve files from the World Wide Web
31 COMPONENT_PROJECT_URL
= https
://www.gnu.org
/software
/wget
/
32 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
33 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.lz
34 COMPONENT_ARCHIVE_HASH
= sha256
:19225cc756b0a088fc81148dc6a40a0c8f329af7fd8483f1c7b2fe50f4e08a1f
35 COMPONENT_ARCHIVE_URL
= https
://ftp.gnu.org
/gnu
/wget
/$(COMPONENT_ARCHIVE
)
36 COMPONENT_FMRI
= web
/wget
37 COMPONENT_CLASSIFICATION
= Applications
/Internet
38 COMPONENT_LICENSE
= GPLv3
, FDLv1.2
40 include $(WS_MAKE_RULES
)/common.mk
42 # wget doesn't detect libidn2 include directory
43 CPPFLAGS
+= -I
/usr
/include/idn2
45 # Enforce openssl (--with-ssl=openssl) instead of default gnutls
46 # (--with-ssl) as wget doesn't work for secure connections with gnutls.
47 CONFIGURE_OPTIONS
+= --sysconfdir
=/etc
48 CONFIGURE_OPTIONS
+= --with-ssl
=openssl
49 CONFIGURE_OPTIONS
+= --infodir=$(CONFIGURE_INFODIR
)
50 CONFIGURE_OPTIONS
+= --enable-iri
52 CONFIGURE_ENV
+= CPPFLAGS
="$(CPPFLAGS)"
54 # Some tests fail, see http://savannah.gnu.org/bugs/?48281
55 # Keep just the final test report
56 COMPONENT_TEST_TRANSFORMS
+= '-ne "/^PASS/p" '
57 COMPONENT_TEST_TRANSFORMS
+= '-ne "/^FAIL/p" '
58 COMPONENT_TEST_TRANSFORMS
+= '-ne "/^===/p" '
59 COMPONENT_TEST_TRANSFORMS
+= '-ne "/^\# /p" '
60 COMPONENT_TEST_TRANSFORMS
+= '-ne "/^See/p" '
61 COMPONENT_TEST_TRANSFORMS
+= '-ne "/^Please/p" '
64 TEST_REQUIRED_PACKAGES
+= library
/perl-5
/http-daemon
65 TEST_REQUIRED_PACKAGES
+= library
/perl-5
/http-message
67 # Auto-generated dependencies
68 REQUIRED_PACKAGES
+= $(OPENSSL_PKG
)
69 REQUIRED_PACKAGES
+= library
/libidn2
70 REQUIRED_PACKAGES
+= library
/libpsl
71 REQUIRED_PACKAGES
+= library
/pcre2
72 REQUIRED_PACKAGES
+= library
/zlib
73 REQUIRED_PACKAGES
+= system
/library