components/apache2-modules/mod_wsgi/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Wed, 14 Aug 2013 10:54:58 -0700
changeset 1434 c782e620dd26
parent 1394 5f86498eee95
child 1948 2d1537e7942d
permissions -rw-r--r--
17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
     1
#
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
     3
#
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
     7
#
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    12
#
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    18
#
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    20
#
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    21
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    22
#
1394
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1058
diff changeset
    23
# Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    24
#
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    25
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    26
include ../../../make-rules/shared-macros.mk
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    27
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    28
PATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
1394
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1058
diff changeset
    29
ifeq   ($(strip $(PARFAIT_BUILD)),yes)
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1058
diff changeset
    30
PATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:/usr/bin
5f86498eee95 16991973 some things ain't parfait'n
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 1058
diff changeset
    31
endif
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    32
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    33
COMPONENT_NAME=		mod_wsgi
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    34
COMPONENT_VERSION=	3.3
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    35
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    36
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    37
COMPONENT_ARCHIVE_HASH=	sha256:d96e1078990484cfe5579df1e95dc73f009495e9c3f9a066b0983650bd9e3243
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    38
COMPONENT_ARCHIVE_URL=	http://modwsgi.googlecode.com/files/$(COMPONENT_ARCHIVE)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    39
COMPONENT_PROJECT_URL=  http://code.google.com/p/modwsgi/
1058
34d7aaa03423 15886624 Auto-generation of Userland gate list - Phase 3
Rich Burridge <rich.burridge@oracle.com>
parents: 804
diff changeset
    40
COMPONENT_BUGDB=	utility/apache
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    41
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    42
include $(WS_TOP)/make-rules/prep.mk
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    43
include $(WS_TOP)/make-rules/configure.mk
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    44
include $(WS_TOP)/make-rules/ips.mk
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    45
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    46
COMPONENT_PRE_CONFIGURE_ACTION = \
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    47
	($(CLONEY) $(SOURCE_DIR) $(@D))
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    48
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    49
# The following four paragraphs are copied from setup.py.mk
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    50
# but since mod_wsgi doesn't use setup.py, we can't just include
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    51
# setup.py.mk
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    52
$(BUILD_DIR)/%-2.6/.built:		PYTHON_VERSION=2.6
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    53
$(BUILD_DIR)/%-2.7/.built:		PYTHON_VERSION=2.7
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    54
$(BUILD_DIR)/$(MACH32)-%/.built:	BITS=32
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    55
$(BUILD_DIR)/$(MACH64)-%/.built:	BITS=64
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    56
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    57
$(BUILD_DIR)/%-2.6/.installed:	PYTHON_VERSION=2.6
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    58
$(BUILD_DIR)/%-2.7/.installed:  PYTHON_VERSION=2.7
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    59
$(BUILD_DIR)/$(MACH32)-%/.installed:	BITS=32
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    60
$(BUILD_DIR)/$(MACH64)-%/.installed:	BITS=64
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    61
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    62
BUILD_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.built)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    63
BUILD_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.built)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    64
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    65
INSTALL_32 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH32)-%/.installed)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    66
INSTALL_64 = $(PYTHON_VERSIONS:%=$(BUILD_DIR)/$(MACH64)-%/.installed)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    67
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    68
$(BUILD_32): CONFIGURE_OPTIONS += --with-python=$(PYTHON.32)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    69
$(BUILD_64): CONFIGURE_OPTIONS += --with-apxs=/usr/bin/$(MACH64)/apxs --with-python=$(PYTHON.64)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    70
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1394
diff changeset
    71
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1394
diff changeset
    72
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    73
$(INSTALL_32): COMPONENT_POST_INSTALL_ACTION = \
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    74
	(cd $(PROTO_DIR)/usr/apache2/2.2/libexec ; \
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    75
		$(MV) mod_wsgi.so mod_wsgi-$(PYTHON_VERSION).so)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    76
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    77
$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION = \
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    78
	(cd $(PROTO_DIR)/usr/apache2/2.2/libexec/$(MACH64) ; \
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    79
		$(MV) mod_wsgi.so mod_wsgi-$(PYTHON_VERSION).so)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    80
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    81
# common targets
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    82
build:		$(BUILD_32_and_64)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    83
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    84
install:	$(INSTALL_32_and_64)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    85
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    86
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)