Makefile revision 5307
78N/A#
78N/A# CDDL HEADER START
78N/A#
78N/A# The contents of this file are subject to the terms of the
78N/A# Common Development and Distribution License (the "License").
78N/A# You may not use this file except in compliance with the License.
78N/A#
78N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
78N/A# or http://www.opensolaris.org/os/licensing.
78N/A# See the License for the specific language governing permissions
78N/A# and limitations under the License.
78N/A#
78N/A# When distributing Covered Code, include this CDDL HEADER in each
78N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
78N/A# If applicable, add the following below this CDDL HEADER, with the
78N/A# fields enclosed by brackets "[]" replaced with your own identifying
78N/A# information: Portions Copyright [yyyy] [name of copyright owner]
78N/A#
78N/A# CDDL HEADER END
78N/A#
5307N/A# Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
78N/A#
78N/Ainclude ../../make-rules/shared-macros.mk
78N/A
78N/ACOMPONENT_NAME= wget
5307N/ACOMPONENT_VERSION= 1.17.1
618N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/wget/
78N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
1438N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
844N/ACOMPONENT_ARCHIVE_HASH= \
5307N/A sha256:fe559b61eb9cc01635ac6206a14e02cb51591838c35fa83c7a4aacae0bdd97c9
78N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/wget/$(COMPONENT_ARCHIVE)
1258N/ACOMPONENT_BUGDB= utility/wget
78N/A
5307N/ATPNO= 26307
2899N/A
3817N/Ainclude $(WS_MAKE_RULES)/prep.mk
3817N/Ainclude $(WS_MAKE_RULES)/configure.mk
3817N/Ainclude $(WS_MAKE_RULES)/ips.mk
78N/A
4741N/A# Keep just the final test report
4741N/ACOMPONENT_TEST_TRANSFORMS += '-ne "/^PASS/p" '
4741N/ACOMPONENT_TEST_TRANSFORMS += '-ne "/^FAIL/p" '
4741N/ACOMPONENT_TEST_TRANSFORMS += '-ne "/^===/p" '
4741N/ACOMPONENT_TEST_TRANSFORMS += '-ne "/^\# /p" '
4741N/ACOMPONENT_TEST_TRANSFORMS += '-ne "/^See/p" '
4741N/ACOMPONENT_TEST_TRANSFORMS += '-ne "/^Please/p" '
4741N/A
2342N/A# Enforce wget binary to standard path
2342N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
2342N/A
1438N/A# Enforce openssl (--with-ssl=openssl) instead of default gnutls
1438N/A# (--with-ssl) as wget doesn't work for secure connections with gnutls.
78N/A# Set PATH to find /usr/perl5/bin/pod2man, so that the man page wget.1
78N/A# can be automatically generated
78N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
1438N/ACONFIGURE_OPTIONS += --with-ssl=openssl
78N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
78N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
78N/ACONFIGURE_OPTIONS += PATH="$(PATH):/usr/perl5/bin"
78N/A
1438N/A# Wget test suite will skip majority of tests with few Perl modules
3488N/A# missing on system. By uncommenting following lines it will pass 82
3488N/A# tests out of 83 total tests (1 test in which wget tries to output
3488N/A# to a non-existing device /dev/full fails with wrong error code).
1438N/A#URI=URI-1.60
1438N/A#WWW=libwww-perl-5.837
3488N/A#SOCK=IO-Socket-SSL-2.005
1438N/A#COMPONENT_TEST_ENV = "http_proxy="
3488N/A#COMPONENT_TEST_ENV += "https_proxy="
3488N/A#COMPONENT_TEST_ENV += "ftp_proxy="
3488N/A#COMPONENT_TEST_ENV += "no_proxy="
1438N/A#COMPONENT_PRE_TEST_ACTION = ( \
1438N/A cd $(COMPONENT_SRC)/tests; \
1438N/A wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$(URI).tar.gz; \
1438N/A wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$(WWW).tar.gz; \
3488N/A wget http://cpan.metacpan.org/authors/id/S/SU/SULLR/$(SOCK).tar.gz; \
1438N/A gtar --get $(URI)/URI $(URI)/URI.pm \
1438N/A --strip-components=1 -f $(URI).tar.gz; \
1438N/A gtar --get $(WWW)/lib/HTTP $(WWW)/lib/LWP $(WWW)/lib/LWP.pm \
3488N/A --strip-components=2 -f $(WWW).tar.gz; \
3488N/A gtar --get $(SOCK)/lib/IO/Socket/SSL $(SOCK)/lib/IO/Socket/SSL.pm \
3488N/A --strip-components=2 -f $(SOCK).tar.gz; )
1438N/A
2342N/A# Enable ASLR for this component
2342N/AASLR_MODE = $(ASLR_ENABLE)
78N/A
3477N/Aconfigure: $(CONFIGURE_64)
3477N/A
2342N/Abuild: $(BUILD_64)
78N/A
2342N/Ainstall: $(INSTALL_64)
2342N/A
2342N/Atest: $(TEST_64)
83N/A
4337N/Asystem-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
4337N/A
78N/A
3817N/AREQUIRED_PACKAGES += library/libidn
4741N/AREQUIRED_PACKAGES += library/pcre
3817N/AREQUIRED_PACKAGES += library/security/openssl
3817N/AREQUIRED_PACKAGES += library/zlib
3817N/AREQUIRED_PACKAGES += system/library
3817N/AREQUIRED_PACKAGES += text/texinfo