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