components/apache2-modules/mod_wsgi/Makefile
changeset 804 6652c7c4eb82
child 1058 34d7aaa03423
equal deleted inserted replaced
803:8d317fcb3ae1 804:6652c7c4eb82
       
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     4 # The contents of this file are subject to the terms of the
       
     5 # Common Development and Distribution License (the "License").
       
     6 # You may not use this file except in compliance with the License.
       
     7 #
       
     8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
     9 # or http://www.opensolaris.org/os/licensing.
       
    10 # See the License for the specific language governing permissions
       
    11 # and limitations under the License.
       
    12 #
       
    13 # When distributing Covered Code, include this CDDL HEADER in each
       
    14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    15 # If applicable, add the following below this CDDL HEADER, with the
       
    16 # fields enclosed by brackets "[]" replaced with your own identifying
       
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
       
    26 include ../../../make-rules/shared-macros.mk
       
    27 
       
    28 PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
       
    29 
       
    30 COMPONENT_NAME=		mod_wsgi
       
    31 COMPONENT_VERSION=	3.3
       
    32 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    33 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    34 COMPONENT_ARCHIVE_HASH=	sha256:d96e1078990484cfe5579df1e95dc73f009495e9c3f9a066b0983650bd9e3243
       
    35 COMPONENT_ARCHIVE_URL=	http://modwsgi.googlecode.com/files/$(COMPONENT_ARCHIVE)
       
    36 COMPONENT_PROJECT_URL=  http://code.google.com/p/modwsgi/
       
    37 
       
    38 include $(WS_TOP)/make-rules/prep.mk
       
    39 include $(WS_TOP)/make-rules/configure.mk
       
    40 include $(WS_TOP)/make-rules/ips.mk
       
    41 
       
    42 COMPONENT_PRE_CONFIGURE_ACTION = \
       
    43 	($(CLONEY) $(SOURCE_DIR) $(@D))
       
    44 
       
    45 # The following four paragraphs are copied from setup.py.mk
       
    46 # but since mod_wsgi doesn't use setup.py, we can't just include
       
    47 # setup.py.mk
       
    48 $(BUILD_DIR)/%-2.6/.built:		PYTHON_VERSION=2.6
       
    49 $(BUILD_DIR)/%-2.7/.built:		PYTHON_VERSION=2.7
       
    50 $(BUILD_DIR)/$(MACH32)-%/.built:	BITS=32
       
    51 $(BUILD_DIR)/$(MACH64)-%/.built:	BITS=64
       
    52 
       
    53 $(BUILD_DIR)/%-2.6/.installed:	PYTHON_VERSION=2.6
       
    54 $(BUILD_DIR)/%-2.7/.installed:  PYTHON_VERSION=2.7
       
    55 $(BUILD_DIR)/$(MACH32)-%/.installed:	BITS=32
       
    56 $(BUILD_DIR)/$(MACH64)-%/.installed:	BITS=64
       
    57 
       
    58 BUILD_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.built)
       
    59 BUILD_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built)
       
    60 
       
    61 INSTALL_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.installed)
       
    62 INSTALL_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed)
       
    63 
       
    64 $(BUILD_32): CONFIGURE_OPTIONS += --with-python=$(PYTHON.32)
       
    65 $(BUILD_64): CONFIGURE_OPTIONS += --with-apxs=/usr/bin/$(MACH64)/apxs --with-python=$(PYTHON.64)
       
    66 
       
    67 $(INSTALL_32): COMPONENT_POST_INSTALL_ACTION = \
       
    68 	(cd $(PROTO_DIR)/usr/apache2/2.2/libexec ; \
       
    69 		$(MV) mod_wsgi.so mod_wsgi-$(PYTHON_VERSION).so)
       
    70 
       
    71 $(INSTALL_64): COMPONENT_POST_INSTALL_ACTION = \
       
    72 	(cd $(PROTO_DIR)/usr/apache2/2.2/libexec/$(MACH64) ; \
       
    73 		$(MV) mod_wsgi.so mod_wsgi-$(PYTHON_VERSION).so)
       
    74 
       
    75 # common targets
       
    76 build:		$(BUILD_32_and_64)
       
    77 
       
    78 install:	$(INSTALL_32_and_64)
       
    79 
       
    80 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)