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