853N/A#
853N/A# CDDL HEADER START
853N/A#
853N/A# The contents of this file are subject to the terms of the
853N/A# Common Development and Distribution License (the "License").
853N/A# You may not use this file except in compliance with the License.
853N/A#
853N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
853N/A# or http://www.opensolaris.org/os/licensing.
853N/A# See the License for the specific language governing permissions
853N/A# and limitations under the License.
853N/A#
853N/A# When distributing Covered Code, include this CDDL HEADER in each
853N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
853N/A# If applicable, add the following below this CDDL HEADER, with the
853N/A# fields enclosed by brackets "[]" replaced with your own identifying
853N/A# information: Portions Copyright [yyyy] [name of copyright owner]
853N/A#
853N/A# CDDL HEADER END
853N/A#
853N/A
853N/A#
3996N/A# Copyright (c) 2012, 2015, Oracle and/or its affiliates. All rights reserved.
853N/A#
853N/A
853N/Ainclude ../../../make-rules/shared-macros.mk
853N/A
853N/ACOMPONENT_NAME= mod_wsgi
4018N/ACOMPONENT_VERSION= 4.3.0
853N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
853N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4018N/ACOMPONENT_ARCHIVE_HASH= sha256:89dfcc8564bb8781f36370c80c6fbeef9ec0723dec273231f4f760760d8e813d
4018N/ACOMPONENT_ARCHIVE_URL= https://pypi.python.org/packages/source/m/mod_wsgi/$(COMPONENT_ARCHIVE)
853N/ACOMPONENT_PROJECT_URL= http://code.google.com/p/modwsgi/
1273N/ACOMPONENT_BUGDB= utility/apache
853N/A
4018N/ATPNO= 19269
3661N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
4018N/Ainclude ../modules.mk
4018N/A
4018N/AAPACHE_USR_PREFIX = /usr/apache2/
4018N/A
4018N/AVARIANT_AP_22_PY26 = $(BUILD_DIR)/apache22-python26
4018N/AVARIANT_AP_22_PY27 = $(BUILD_DIR)/apache22-python27
4018N/AVARIANT_AP_22_PY34 = $(BUILD_DIR)/apache22-python34
4018N/AVARIANT_AP_24_PY26 = $(BUILD_DIR)/apache24-python26
4018N/AVARIANT_AP_24_PY27 = $(BUILD_DIR)/apache24-python27
4018N/AVARIANT_AP_24_PY34 = $(BUILD_DIR)/apache24-python34
4018N/A
4018N/AVARIANTS_32 = $(VARIANT_AP_22_PY26) $(VARIANT_AP_22_PY27)
4018N/AVARIANTS_64 = $(VARIANT_AP_22_PY26) $(VARIANT_AP_22_PY27) $(VARIANT_AP_22_PY34) \
4018N/A $(VARIANT_AP_24_PY26) $(VARIANT_AP_24_PY27) $(VARIANT_AP_24_PY34)
4018N/A
4018N/A$(BUILD_DIR)/apache22-%/$(MACH32)/.configured: APXS=$(APACHE_USR_PREFIX)/2.2/bin/apxs
4018N/A$(BUILD_DIR)/apache22-%/$(MACH64)/.configured: APXS=$(APACHE_USR_PREFIX)/2.2/bin/$(MACH64)/apxs
4018N/A$(BUILD_DIR)/apache24-%/$(MACH64)/.configured: APXS=$(APACHE_USR_PREFIX)/2.4/bin/apxs
4018N/A
4018N/A$(BUILD_DIR)/apache2%-python26/$(MACH32)/.configured: PYTHON=$(PYTHON.2.6.32)
4018N/A$(BUILD_DIR)/apache2%-python26/$(MACH64)/.configured: PYTHON=$(PYTHON.2.6.64)
4018N/A$(BUILD_DIR)/apache2%-python27/$(MACH32)/.configured: PYTHON=$(PYTHON.2.7.32)
4018N/A$(BUILD_DIR)/apache2%-python27/$(MACH64)/.configured: PYTHON=$(PYTHON.2.7.64)
4018N/A$(BUILD_DIR)/apache2%-python34/$(MACH32)/.configured: PYTHON=$(PYTHON.3.4.32)
4018N/A$(BUILD_DIR)/apache2%-python34/$(MACH64)/.configured: PYTHON=$(PYTHON.3.4.64)
853N/A
853N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
853N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
853N/A
4018N/ACONFIGURE_OPTIONS += --with-python=$(PYTHON)
4018N/ACONFIGURE_OPTIONS += --with-apxs=$(APXS)
853N/A
4018N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
853N/A
853N/A# common targets
4018N/Aconfigure: $(CONFIGURE_32_and_64)
4018N/A
853N/Abuild: $(BUILD_32_and_64)
853N/A
853N/Ainstall: $(INSTALL_32_and_64)
853N/A
3996N/AREQUIRED_PACKAGES += runtime/python-26
3996N/AREQUIRED_PACKAGES += runtime/python-27
4018N/AREQUIRED_PACKAGES += runtime/python-34
3996N/AREQUIRED_PACKAGES += system/library
3996N/AREQUIRED_PACKAGES += system/library/math
3996N/AREQUIRED_PACKAGES += system/linker