wget: add perl dir to $PATH for pod2man
[unleashed-userland.git] / components / web / wget / Makefile
blob102e6e3ddf34805ef62ae2c84d38d98d40b72c4c
2 # CDDL HEADER START
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]
19 # CDDL HEADER END
21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
23 include ../../../make-rules/shared-macros.mk
25 COMPONENT_NAME= wget
26 COMPONENT_VERSION= 1.19.2
27 COMPONENT_PROJECT_URL= http://www.gnu.org/software/wget/
28 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
29 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
30 COMPONENT_ARCHIVE_HASH= \
31 sha256:4f4a673b6d466efa50fbfba796bd84a46ae24e370fa562ede5b21ab53c11a920
32 COMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/wget/$(COMPONENT_ARCHIVE)
33 COMPONENT_BUGDB= utility/wget
35 include $(WS_MAKE_RULES)/prep.mk
36 include $(WS_MAKE_RULES)/configure.mk
37 include $(WS_MAKE_RULES)/ips.mk
39 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
41 # wget doesn't detect libidn2 include directory
42 CPPFLAGS += -I/usr/include/idn2
44 # Enforce openssl (--with-ssl=openssl) instead of default gnutls
45 # (--with-ssl) as wget doesn't work for secure connections with gnutls.
46 CONFIGURE_OPTIONS += --sysconfdir=/etc
47 CONFIGURE_OPTIONS += --with-ssl=openssl
48 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
49 CONFIGURE_OPTIONS += --enable-iri
51 CONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
52 CONFIGURE_ENV += PATH="$(PATH):/usr/perl5/5.22/bin"
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" '
63 build: $(BUILD_64)
65 install: $(INSTALL_64)
67 test: $(TEST_64)
69 REQUIRED_PACKAGES += library/libidn2
70 REQUIRED_PACKAGES += library/pcre
71 REQUIRED_PACKAGES += library/zlib
72 REQUIRED_PACKAGES += SUNWcs
73 REQUIRED_PACKAGES += system/library