Makefile revision 1258
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# CDDL HEADER START
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# The contents of this file are subject to the terms of the
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# Common Development and Distribution License (the "License").
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# You may not use this file except in compliance with the License.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# or http://www.opensolaris.org/os/licensing.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# See the License for the specific language governing permissions
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# and limitations under the License.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# When distributing Covered Code, include this CDDL HEADER in each
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# If applicable, add the following below this CDDL HEADER, with the
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# fields enclosed by brackets "[]" replaced with your own identifying
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# CDDL HEADER END
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync#
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncinclude ../../../make-rules/shared-macros.mk
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCOMPONENT_NAME= mod_wsgi
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCOMPONENT_VERSION= 3.3
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCOMPONENT_ARCHIVE_HASH= sha256:d96e1078990484cfe5579df1e95dc73f009495e9c3f9a066b0983650bd9e3243
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCOMPONENT_ARCHIVE_URL= http://modwsgi.googlecode.com/files/$(COMPONENT_ARCHIVE)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCOMPONENT_PROJECT_URL= http://code.google.com/p/modwsgi/
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCOMPONENT_BUGDB= utility/apache
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncinclude $(WS_TOP)/make-rules/prep.mk
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncinclude $(WS_TOP)/make-rules/configure.mk
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncinclude $(WS_TOP)/make-rules/ips.mk
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncCOMPONENT_PRE_CONFIGURE_ACTION = \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync ($(CLONEY) $(SOURCE_DIR) $(@D))
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# The following four paragraphs are copied from setup.py.mk
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# but since mod_wsgi doesn't use setup.py, we can't just include
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# setup.py.mk
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(BUILD_DIR)/%-2.6/.built: PYTHON_VERSION=2.6
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(BUILD_DIR)/%-2.7/.built: PYTHON_VERSION=2.7
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(BUILD_DIR)/$(MACH32)-%/.built: BITS=32
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(BUILD_DIR)/$(MACH64)-%/.built: BITS=64
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(BUILD_DIR)/%-2.6/.installed: PYTHON_VERSION=2.6
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(BUILD_DIR)/%-2.7/.installed: PYTHON_VERSION=2.7
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(BUILD_DIR)/$(MACH32)-%/.installed: BITS=32
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(BUILD_DIR)/$(MACH64)-%/.installed: BITS=64
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncBUILD_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.built)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncBUILD_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncINSTALL_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.installed)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncINSTALL_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(BUILD_32): CONFIGURE_OPTIONS += --with-python=$(PYTHON.32)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(BUILD_64): CONFIGURE_OPTIONS += --with-apxs=/usr/bin/$(MACH64)/apxs --with-python=$(PYTHON.64)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(INSTALL_32): COMPONENT_POST_INSTALL_ACTION = \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync (cd $(PROTO_DIR)/usr/apache2/2.2/libexec ; \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync $(MV) mod_wsgi.so mod_wsgi-$(PYTHON_VERSION).so)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION = \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync (cd $(PROTO_DIR)/usr/apache2/2.2/libexec/$(MACH64) ; \
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync $(MV) mod_wsgi.so mod_wsgi-$(PYTHON_VERSION).so)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync# common targets
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncbuild: $(BUILD_32_and_64)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncinstall: $(INSTALL_32_and_64)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync
deb4998ba50060c48cce222fd18a8eed053918d7vboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
deb4998ba50060c48cce222fd18a8eed053918d7vboxsync