Makefile revision 4881
2N/A#
2N/A# CDDL HEADER START
2N/A#
2N/A# The contents of this file are subject to the terms of the
2N/A# Common Development and Distribution License (the "License").
2N/A# You may not use this file except in compliance with the License.
2N/A#
2N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2N/A# or http://www.opensolaris.org/os/licensing.
2N/A# See the License for the specific language governing permissions
2N/A# and limitations under the License.
2N/A#
2N/A# When distributing Covered Code, include this CDDL HEADER in each
2N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2N/A# If applicable, add the following below this CDDL HEADER, with the
2N/A# fields enclosed by brackets "[]" replaced with your own identifying
2N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2N/A#
2N/A# CDDL HEADER END
2N/A#
58N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
2N/A#
2N/Ainclude ../../make-rules/shared-macros.mk
32N/A
32N/ACOMPONENT_NAME= apache2
2N/ACOMPONENT_VERSION= 2.2.31
2N/ACOMPONENT_PROJECT_URL= http://httpd.apache.org/
26N/ACOMPONENT_SRC_NAME= httpd
38N/ACOMPONENT_SRC= $(COMPONENT_SRC_NAME)-$(COMPONENT_VERSION)
38N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
38N/ACOMPONENT_ARCHIVE_HASH= \
29N/A sha256:77afdd50ca2624f7d78832b1e92f34e4df293328ec59fd0e3f6cdedf67ac0c7f
93N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/httpd/$(COMPONENT_ARCHIVE)
29N/ACOMPONENT_BUGDB= utility/apache
29N/A
26N/ATPNO_APACHE= 23672
26N/ATPNO_MOD_SED= 8897
29N/A
26N/ACONFIGURE_DEFAULT_DIRS=no
2N/A
38N/Ainclude $(WS_MAKE_RULES)/prep.mk
2N/Ainclude $(WS_MAKE_RULES)/configure.mk
6N/Ainclude $(WS_MAKE_RULES)/ips.mk
2N/A
58N/AASLR_MODE = $(ASLR_ENABLE)
2N/A
2N/APATCH_LEVEL=0
34N/A
34N/A# Some patches need configure script re-creation.
34N/ACOMPONENT_PREP_ACTION +=($(CP) mod_sed/* $(@D)/modules/filters);
34N/ACOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.c $(@D)/modules/aaa);
49N/ACOMPONENT_PREP_ACTION +=($(CP) mod_auth_gss/mod_auth_gss.html $(@D)/docs/manual/mod);
70N/ACOMPONENT_PREP_ACTION +=(cd $(@D); autoreconf);
2N/A
34N/AVARIANT_PREFORK = $(BUILD_DIR)/prefork
34N/AVARIANT_WORKER = $(BUILD_DIR)/worker
94N/A
94N/AVARIANTS = $(VARIANT_WORKER) $(VARIANT_PREFORK)
34N/A
59N/ABUILD_32 = $(VARIANTS:%=%/$(MACH32)/.built)
72N/ABUILD_64 = $(VARIANTS:%=%/$(MACH64)/.built)
72N/A
72N/AINSTALL_32 = $(VARIANTS:%=%/$(MACH32)/.installed)
59N/AINSTALL_64 = $(VARIANTS:%=%/$(MACH64)/.installed)
2N/A
85N/A$(VARIANT_PREFORK)/$(MACH64)/.configured: BITS=64
61N/A$(VARIANT_WORKER)/$(MACH64)/.configured: BITS=64
61N/A
61N/A$(VARIANT_PREFORK)/%/.configured: CONFIGURE_OPTIONS += --with-mpm=prefork
61N/A$(VARIANT_WORKER)/%/.configured: CONFIGURE_OPTIONS += --with-mpm=worker
61N/A
61N/A# pipefail wouldn't allow APR-util version check
61N/ACONFIGURE_ENV += SHELLOPTS=
61N/A
61N/ACONFIGURE_PREFIX = /usr/apache2/2.2
74N/A
61N/ACONFIGURE_OPTIONS += --enable-mods-shared=all
85N/ACONFIGURE_OPTIONS += --enable-so
61N/ACONFIGURE_OPTIONS += --enable-suexec
61N/ACONFIGURE_OPTIONS += --with-suexec-caller=webservd
61N/ACONFIGURE_OPTIONS += --enable-proxy
61N/ACONFIGURE_OPTIONS += --enable-proxy-connect
61N/ACONFIGURE_OPTIONS += --enable-proxy-ftp
61N/ACONFIGURE_OPTIONS += --enable-proxy-http
61N/ACONFIGURE_OPTIONS += --enable-proxy-ajp
61N/ACONFIGURE_OPTIONS += --enable-proxy-balancer
61N/ACONFIGURE_OPTIONS += --enable-cache
61N/ACONFIGURE_OPTIONS += --enable-file-cache
43N/ACONFIGURE_OPTIONS += --enable-disk-cache
43N/ACONFIGURE_OPTIONS += --enable-mem-cache
64N/ACONFIGURE_OPTIONS += --enable-deflate
64N/ACONFIGURE_OPTIONS += --enable-cgid
64N/ACONFIGURE_OPTIONS += --enable-cgi
43N/ACONFIGURE_OPTIONS += --enable-authnz-ldap
43N/ACONFIGURE_OPTIONS += --enable-ldap
64N/ACONFIGURE_OPTIONS += --enable-ssl
64N/ACONFIGURE_OPTIONS += --enable-exception-hook
64N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
64N/ACONFIGURE_OPTIONS += LTFLAGS="--silent --tag=CC"
64N/ACONFIGURE_OPTIONS.32 += --enable-layout=Solaris-Apache2
64N/ACONFIGURE_OPTIONS.64 += --enable-layout=Solaris-Apache2-$(MACH64)
64N/ACONFIGURE_OPTIONS.32 += --with-apr=/usr/apr/1.5/bin/apr-1-config
64N/ACONFIGURE_OPTIONS.64 += --with-apr=/usr/apr/1.5/bin/$(MACH64)/apr-1-config
64N/ACONFIGURE_OPTIONS.32 += --with-apr-util=/usr/apr-util/1.5/bin/apu-1-config
64N/ACONFIGURE_OPTIONS.64 += --with-apr-util=/usr/apr-util/1.5/bin/$(MACH64)/apu-1-config
64N/ACONFIGURE_OPTIONS.32 += --with-pcre=/usr/bin/pcre-config
64N/ACONFIGURE_OPTIONS.64 += --with-pcre=/usr/bin/$(MACH64)/pcre-config
43N/A
16N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
16N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
16N/APATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
34N/Aendif
34N/A
16N/Aconfigure: $(CONFIGURE_32_and_64)
6N/A
12N/Abuild: $(BUILD_32_and_64)
12N/A
12N/AAP_CONFIG_LAYOUT_H=include/ap_config_layout.h
12N/A
12N/Ainstall: $(INSTALL_32_and_64)
12N/A # Some files installed in proto area need to be fixed.
12N/A $(KSH93) Solaris/customization.sh $(PROTO_DIR) $(MACH64)
12N/A # Common header files for 32 and 64 bit variants are needed.
12N/A /usr/bin/diff -D __$(MACH64) \
12N/A $(VARIANT_PREFORK)/$(MACH32)/$(AP_CONFIG_LAYOUT_H) \
12N/A $(VARIANT_PREFORK)/$(MACH64)/$(AP_CONFIG_LAYOUT_H) \
61N/A > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(AP_CONFIG_LAYOUT_H) ; true
61N/A
61N/Atest: $(NO_TESTS)
61N/A
61N/A
12N/AREQUIRED_PACKAGES += library/apr-15
12N/AREQUIRED_PACKAGES += library/apr-util-15
61N/AREQUIRED_PACKAGES += library/apr-util-15/apr-ldap
61N/AREQUIRED_PACKAGES += library/apr-util-15/dbd-mysql
12N/AREQUIRED_PACKAGES += library/apr-util-15/dbd-sqlite
2N/AREQUIRED_PACKAGES += library/openldap
99N/AREQUIRED_PACKAGES += library/pcre
99N/AREQUIRED_PACKAGES += library/security/openssl
99N/AREQUIRED_PACKAGES += library/zlib
99N/AREQUIRED_PACKAGES += runtime/perl-512
40N/AREQUIRED_PACKAGES += shell/ksh93
40N/AREQUIRED_PACKAGES += system/core-os
40N/AREQUIRED_PACKAGES += system/library
40N/AREQUIRED_PACKAGES += system/library/math
43N/AREQUIRED_PACKAGES += system/library/security/gss
40N/AREQUIRED_PACKAGES += system/network
2N/A