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