components/apache2-modules/mod_wsgi/Makefile
author Petr Sumbera <petr.sumbera@oracle.com>
Tue, 21 Oct 2014 02:05:30 -0700
changeset 2163 a23eea6de4af
parent 1948 2d1537e7942d
child 2225 f064d3d3190d
permissions -rw-r--r--
19780770 Apache 2.4 needs some third party modules too 19780705 mod_jk upgrade to version 1.2.40 15812307 SUNBT7194162 upgrade mod_wsgi to version 4.3.0 19617430 mod_wsgi doesn't build if apache 2.4 is installed
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
#
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    23
# Copyright (c) 2012, 2014, 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
COMPONENT_NAME=		mod_wsgi
2163
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    29
COMPONENT_VERSION=	4.3.0
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    30
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
2163
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	sha256:89dfcc8564bb8781f36370c80c6fbeef9ec0723dec273231f4f760760d8e813d
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    33
COMPONENT_ARCHIVE_URL=	https://pypi.python.org/packages/source/m/mod_wsgi/$(COMPONENT_ARCHIVE)
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    34
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
    35
COMPONENT_BUGDB=	utility/apache
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    36
2163
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    37
TPNO=			19269
1948
2d1537e7942d 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 1434
diff changeset
    38
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    39
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
    40
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
    41
include $(WS_TOP)/make-rules/ips.mk
2163
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    42
include ../modules.mk
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    43
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    44
APACHE_USR_PREFIX = /usr/apache2/
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    45
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    46
VARIANT_AP_22_PY26 = $(BUILD_DIR)/apache22-python26
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    47
VARIANT_AP_22_PY27 = $(BUILD_DIR)/apache22-python27
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    48
VARIANT_AP_22_PY34 = $(BUILD_DIR)/apache22-python34
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    49
VARIANT_AP_24_PY26 = $(BUILD_DIR)/apache24-pytohn26
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    50
VARIANT_AP_24_PY27 = $(BUILD_DIR)/apache24-python27
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    51
VARIANT_AP_24_PY34 = $(BUILD_DIR)/apache24-python34
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    52
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    53
VARIANTS_32 = $(VARIANT_AP_22_PY26) $(VARIANT_AP_22_PY27)
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    54
VARIANTS_64 = $(VARIANT_AP_22_PY26) $(VARIANT_AP_22_PY27) $(VARIANT_AP_22_PY34) \
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    55
              $(VARIANT_AP_24_PY26) $(VARIANT_AP_24_PY27) $(VARIANT_AP_24_PY34)
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    56
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    57
$(BUILD_DIR)/apache22-%/$(MACH32)/.configured: APXS=$(APACHE_USR_PREFIX)/2.2/bin/apxs
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    58
$(BUILD_DIR)/apache22-%/$(MACH64)/.configured: APXS=$(APACHE_USR_PREFIX)/2.2/bin/$(MACH64)/apxs
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    59
$(BUILD_DIR)/apache24-%/$(MACH64)/.configured: APXS=$(APACHE_USR_PREFIX)/2.4/bin/apxs
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    60
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    61
$(BUILD_DIR)/apache2%-python26/$(MACH32)/.configured: PYTHON=$(PYTHON.2.6.32)
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    62
$(BUILD_DIR)/apache2%-python26/$(MACH64)/.configured: PYTHON=$(PYTHON.2.6.64)
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    63
$(BUILD_DIR)/apache2%-python27/$(MACH32)/.configured: PYTHON=$(PYTHON.2.7.32)
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    64
$(BUILD_DIR)/apache2%-python27/$(MACH64)/.configured: PYTHON=$(PYTHON.2.7.64)
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    65
$(BUILD_DIR)/apache2%-python34/$(MACH32)/.configured: PYTHON=$(PYTHON.3.4.32)
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    66
$(BUILD_DIR)/apache2%-python34/$(MACH64)/.configured: PYTHON=$(PYTHON.3.4.64)
804
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
COMPONENT_PRE_CONFIGURE_ACTION = \
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    69
	($(CLONEY) $(SOURCE_DIR) $(@D))
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    70
2163
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    71
CONFIGURE_OPTIONS += --with-python=$(PYTHON)
a23eea6de4af 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 1948
diff changeset
    72
CONFIGURE_OPTIONS += --with-apxs=$(APXS)
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    73
1434
c782e620dd26 17296512 Add ASLR_NOT_APPLICABLE as an ASLR mode in Userland
Rich Burridge <rich.burridge@oracle.com>
parents: 1394
diff changeset
    74
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
    75
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    76
# common targets
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    77
build:		$(BUILD_32_and_64)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    78
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    79
install:	$(INSTALL_32_and_64)
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
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)