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