Makefile revision 853
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#
853N/A# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
853N/A#
853N/A
853N/Ainclude ../../../make-rules/shared-macros.mk
853N/A
853N/APATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
853N/A
853N/ACOMPONENT_NAME= mod_wsgi
853N/ACOMPONENT_VERSION= 3.3
853N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
853N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
853N/ACOMPONENT_ARCHIVE_HASH= sha256:d96e1078990484cfe5579df1e95dc73f009495e9c3f9a066b0983650bd9e3243
853N/ACOMPONENT_ARCHIVE_URL= http://modwsgi.googlecode.com/files/$(COMPONENT_ARCHIVE)
853N/ACOMPONENT_PROJECT_URL= http://code.google.com/p/modwsgi/
853N/A
853N/Ainclude $(WS_TOP)/make-rules/prep.mk
853N/Ainclude $(WS_TOP)/make-rules/configure.mk
853N/Ainclude $(WS_TOP)/make-rules/ips.mk
853N/A
853N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
853N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
853N/A
853N/A# The following four paragraphs are copied from setup.py.mk
853N/A# but since mod_wsgi doesn't use setup.py, we can't just include
853N/A# setup.py.mk
853N/A$(BUILD_DIR)/%-2.6/.built: PYTHON_VERSION=2.6
853N/A$(BUILD_DIR)/%-2.7/.built: PYTHON_VERSION=2.7
853N/A$(BUILD_DIR)/$(MACH32)-%/.built: BITS=32
853N/A$(BUILD_DIR)/$(MACH64)-%/.built: BITS=64
853N/A
853N/A$(BUILD_DIR)/%-2.6/.installed: PYTHON_VERSION=2.6
853N/A$(BUILD_DIR)/%-2.7/.installed: PYTHON_VERSION=2.7
853N/A$(BUILD_DIR)/$(MACH32)-%/.installed: BITS=32
853N/A$(BUILD_DIR)/$(MACH64)-%/.installed: BITS=64
853N/A
853N/ABUILD_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.built)
853N/ABUILD_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built)
853N/A
853N/AINSTALL_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.installed)
853N/AINSTALL_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed)
853N/A
853N/A$(BUILD_32): CONFIGURE_OPTIONS += --with-python=$(PYTHON.32)
853N/A$(BUILD_64): CONFIGURE_OPTIONS += --with-apxs=/usr/bin/$(MACH64)/apxs --with-python=$(PYTHON.64)
853N/A
853N/A$(INSTALL_32): COMPONENT_POST_INSTALL_ACTION = \
853N/A (cd $(PROTO_DIR)/usr/apache2/2.2/libexec ; \
853N/A $(MV) mod_wsgi.so mod_wsgi-$(PYTHON_VERSION).so)
853N/A
853N/A$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION = \
853N/A (cd $(PROTO_DIR)/usr/apache2/2.2/libexec/$(MACH64) ; \
853N/A $(MV) mod_wsgi.so mod_wsgi-$(PYTHON_VERSION).so)
853N/A
853N/A# common targets
853N/Abuild: $(BUILD_32_and_64)
853N/A
853N/Ainstall: $(INSTALL_32_and_64)
853N/A
853N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)