Makefile revision 2342
824N/A#
824N/A# CDDL HEADER START
824N/A#
824N/A# The contents of this file are subject to the terms of the
1196N/A# Common Development and Distribution License (the "License").
824N/A# You may not use this file except in compliance with the License.
824N/A#
919N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
919N/A# or http://www.opensolaris.org/os/licensing.
919N/A# See the License for the specific language governing permissions
919N/A# and limitations under the License.
919N/A#
919N/A# When distributing Covered Code, include this CDDL HEADER in each
919N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
919N/A# If applicable, add the following below this CDDL HEADER, with the
919N/A# fields enclosed by brackets "[]" replaced with your own identifying
919N/A# information: Portions Copyright [yyyy] [name of copyright owner]
919N/A#
919N/A# CDDL HEADER END
919N/A#
919N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
919N/A#
919N/Ainclude ../../make-rules/shared-macros.mk
919N/A
824N/ACOMPONENT_NAME= wget
824N/ACOMPONENT_VERSION= 1.14
824N/ACOMPONENT_PROJECT_URL= http://www.gnu.org/software/wget/
824N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
824N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
824N/ACOMPONENT_ARCHIVE_HASH= \
824N/A sha256:1761d7f7c6a2ad6c8d494d239c53f0c17126efb6449ada16dee3a66d87a4147b
824N/ACOMPONENT_ARCHIVE_URL= http://ftp.gnu.org/gnu/wget/$(COMPONENT_ARCHIVE)
824N/ACOMPONENT_BUGDB= utility/wget
824N/A
824N/Ainclude ../../make-rules/prep.mk
824N/Ainclude ../../make-rules/configure.mk
824N/Ainclude ../../make-rules/ips.mk
824N/A
824N/A# Enforce wget binary to standard path
824N/ACONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
824N/A
824N/A# Enforce openssl (--with-ssl=openssl) instead of default gnutls
824N/A# (--with-ssl) as wget doesn't work for secure connections with gnutls.
824N/A# Set PATH to find /usr/perl5/bin/pod2man, so that the man page wget.1
824N/A# can be automatically generated
824N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
824N/ACONFIGURE_OPTIONS += --with-ssl=openssl
824N/ACONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
824N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
824N/ACONFIGURE_OPTIONS += PATH="$(PATH):/usr/perl5/bin"
824N/A
824N/A# Wget test suite will skip majority of tests with few Perl modules
851N/A# missing on system. By uncommenting following lines it will pass 68
851N/A# tests out of 70 total tests (2 tests are skipped).
1196N/A#URI=URI-1.60
1196N/A#WWW=libwww-perl-5.837
1196N/A#COMPONENT_TEST_ENV = "http_proxy="
1196N/A#COMPONENT_PRE_TEST_ACTION = ( \
1196N/A cd $(COMPONENT_SRC)/tests; \
824N/A wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$(URI).tar.gz; \
970N/A wget http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/$(WWW).tar.gz; \
970N/A gtar --get $(URI)/URI $(URI)/URI.pm \
970N/A --strip-components=1 -f $(URI).tar.gz; \
824N/A gtar --get $(WWW)/lib/HTTP $(WWW)/lib/LWP $(WWW)/lib/LWP.pm \
970N/A --strip-components=2 -f $(WWW).tar.gz; )
970N/A
974N/A# Enable ASLR for this component
970N/AASLR_MODE = $(ASLR_ENABLE)
970N/A
970N/Abuild: $(BUILD_64)
970N/A
970N/Ainstall: $(INSTALL_64)
970N/A
970N/Atest: $(TEST_64)
970N/A
970N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
970N/A
970N/Ainclude ../../make-rules/depend.mk
970N/A