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