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