Makefile revision 2656
278N/A#
278N/A# CDDL HEADER START
278N/A#
278N/A# The contents of this file are subject to the terms of the
278N/A# Common Development and Distribution License (the "License").
278N/A# You may not use this file except in compliance with the License.
278N/A#
278N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
278N/A# or http://www.opensolaris.org/os/licensing.
278N/A# See the License for the specific language governing permissions
278N/A# and limitations under the License.
278N/A#
278N/A# When distributing Covered Code, include this CDDL HEADER in each
278N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
278N/A# If applicable, add the following below this CDDL HEADER, with the
278N/A# fields enclosed by brackets "[]" replaced with your own identifying
278N/A# information: Portions Copyright [yyyy] [name of copyright owner]
278N/A#
278N/A# CDDL HEADER END
278N/A#
2622N/A# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
278N/A#
278N/Ainclude ../../make-rules/shared-macros.mk
278N/A
1273N/ACOMPONENT_NAME= apache2
2622N/ACOMPONENT_VERSION= 2.2.27
618N/ACOMPONENT_PROJECT_URL= http://httpd.apache.org/
1273N/ACOMPONENT_SRC_NAME= httpd
1273N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
278N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
844N/ACOMPONENT_ARCHIVE_HASH= \
2622N/A sha256:7e58abdc6f30756aafe136d7efb10a79d6ff66f8b68308fd2399cb01ae77895d
278N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/httpd/$(COMPONENT_ARCHIVE)
1273N/ACOMPONENT_BUGDB= utility/apache
2622N/ATPNO= 16942
278N/A
278N/ACONFIGURE_DEFAULT_DIRS=no
278N/A
278N/Ainclude ../../make-rules/prep.mk
278N/Ainclude ../../make-rules/configure.mk
278N/Ainclude ../../make-rules/ips.mk
278N/A
2622N/AASLR_MODE = $(ASLR_ENABLE)
2622N/A
278N/APATCH_LEVEL=0
278N/A
278N/A# Some patches need configure script re-creation.
278N/ACOMPONENT_PREP_ACTION +=($(CP) mod_sed/* $(@D)/modules/filters);
278N/ACOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.c $(@D)/modules/aaa);
278N/ACOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.html $(@D)/docs/manual/mod);
278N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
278N/A
278N/AVARIANT_PREFORK = $(BUILD_DIR)/prefork
278N/AVARIANT_WORKER = $(BUILD_DIR)/worker
278N/A
278N/AVARIANTS = $(VARIANT_WORKER) $(VARIANT_PREFORK)
278N/A
278N/ABUILD_32 = $(VARIANTS:%=%/$(MACH32)/.built)
278N/ABUILD_64 = $(VARIANTS:%=%/$(MACH64)/.built)
278N/A
278N/AINSTALL_32 = $(VARIANTS:%=%/$(MACH32)/.installed)
278N/AINSTALL_64 = $(VARIANTS:%=%/$(MACH64)/.installed)
278N/A
278N/A$(VARIANT_PREFORK)/$(MACH64)/.configured: BITS=64
278N/A$(VARIANT_WORKER)/$(MACH64)/.configured: BITS=64
278N/A
278N/A$(VARIANT_PREFORK)/%/.configured: CONFIGURE_OPTIONS += --with-mpm=prefork
278N/A$(VARIANT_WORKER)/%/.configured: CONFIGURE_OPTIONS += --with-mpm=worker
278N/A
278N/A# pipefail wouldn't allow APR-util version check
278N/ACONFIGURE_ENV += SHELLOPTS=
278N/A
278N/ACONFIGURE_PREFIX = /usr/apache2/2.2
278N/A
278N/ACONFIGURE_OPTIONS += --enable-mods-shared=all
278N/ACONFIGURE_OPTIONS += --enable-so
278N/ACONFIGURE_OPTIONS += --enable-suexec
278N/ACONFIGURE_OPTIONS += --with-suexec-caller=webservd
278N/ACONFIGURE_OPTIONS += --enable-proxy
278N/ACONFIGURE_OPTIONS += --enable-proxy-connect
278N/ACONFIGURE_OPTIONS += --enable-proxy-ftp
278N/ACONFIGURE_OPTIONS += --enable-proxy-http
278N/ACONFIGURE_OPTIONS += --enable-proxy-ajp
278N/ACONFIGURE_OPTIONS += --enable-proxy-balancer
278N/ACONFIGURE_OPTIONS += --enable-cache
278N/ACONFIGURE_OPTIONS += --enable-file-cache
278N/ACONFIGURE_OPTIONS += --enable-disk-cache
278N/ACONFIGURE_OPTIONS += --enable-mem-cache
278N/ACONFIGURE_OPTIONS += --enable-deflate
278N/ACONFIGURE_OPTIONS += --enable-cgid
278N/ACONFIGURE_OPTIONS += --enable-cgi
278N/ACONFIGURE_OPTIONS += --enable-authnz-ldap
278N/ACONFIGURE_OPTIONS += --enable-ldap
278N/ACONFIGURE_OPTIONS += --enable-ssl
278N/ACONFIGURE_OPTIONS += --enable-exception-hook
278N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
278N/ACONFIGURE_OPTIONS += LTFLAGS="--silent --tag=CC"
278N/ACONFIGURE_OPTIONS.32 += --enable-layout=Solaris-Apache2
278N/ACONFIGURE_OPTIONS.64 += --enable-layout=Solaris-Apache2-$(MACH64)
278N/ACONFIGURE_OPTIONS.32 += --with-apr=/usr/apr/1.3/bin/apr-1-config
278N/ACONFIGURE_OPTIONS.64 += --with-apr=/usr/apr/1.3/bin/$(MACH64)/apr-1-config
278N/ACONFIGURE_OPTIONS.32 += --with-apr-util=/usr/apr-util/1.3/bin/apu-1-config
278N/ACONFIGURE_OPTIONS.64 += --with-apr-util=/usr/apr-util/1.3/bin/$(MACH64)/apu-1-config
278N/A
278N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
278N/A
278N/Abuild: $(BUILD_32_and_64)
278N/A
278N/AAP_CONFIG_LAYOUT_H=include/ap_config_layout.h
278N/A
278N/Ainstall: $(INSTALL_32_and_64)
278N/A # Some files installed in proto area need to be fixed.
278N/A $(KSH93) Solaris/customization.sh $(PROTO_DIR) $(MACH64)
278N/A # Common header files for 32 and 64 bit variants are needed.
278N/A /usr/bin/diff -D __$(MACH64) \
278N/A $(VARIANT_PREFORK)/$(MACH32)/$(AP_CONFIG_LAYOUT_H) \
278N/A $(VARIANT_PREFORK)/$(MACH64)/$(AP_CONFIG_LAYOUT_H) \
278N/A > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(AP_CONFIG_LAYOUT_H) ; true
278N/A
278N/Atest: $(NO_TESTS)
278N/A
278N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
278N/A
278N/Ainclude ../../make-rules/depend.mk