components/apache2-modules/mod_wsgi/Makefile
author John Beck <John.Beck@Oracle.COM>
Mon, 27 Mar 2017 15:35:14 -0700
branchs11u3-sru
changeset 7811 9126e6f58cd8
parent 4018 51079c09956d
permissions -rw-r--r--
PSARC 2014/190 Python 2.6 EOF 21136303 Python 2.6 EOF 25552242 downrevved cherrypy-26 package in s12 will block update from s11.3 25552335 library/python/idna-26 (only in s11.3 SRU14+) prevents upgrade to S12 25552353 library/python/ipaddress-26 (only in s11.3 SRU14+) prevents upgrade to S12
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
#
7811
9126e6f58cd8 PSARC 2014/190 Python 2.6 EOF
John Beck <John.Beck@Oracle.COM>
parents: 4018
diff changeset
    23
# Copyright (c) 2012, 2017, 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
4018
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
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
4018
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    32
COMPONENT_ARCHIVE_HASH=	sha256:89dfcc8564bb8781f36370c80c6fbeef9ec0723dec273231f4f760760d8e813d
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
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/
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
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
4018
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    37
TPNO=			19269
3661
47545fb8aed4 18978320 Userland components should specify TPNOs in Makefiles instead of pkg manifests
John Beck <John.Beck@Oracle.COM>
parents: 2434
diff changeset
    38
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    39
include $(WS_MAKE_RULES)/prep.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    40
include $(WS_MAKE_RULES)/configure.mk
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    41
include $(WS_MAKE_RULES)/ips.mk
4018
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    42
include ../modules.mk
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    43
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    44
APACHE_USR_PREFIX = /usr/apache2/
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    45
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    46
VARIANT_AP_22_PY27 = $(BUILD_DIR)/apache22-python27
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    47
VARIANT_AP_22_PY34 = $(BUILD_DIR)/apache22-python34
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    48
VARIANT_AP_24_PY27 = $(BUILD_DIR)/apache24-python27
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    49
VARIANT_AP_24_PY34 = $(BUILD_DIR)/apache24-python34
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    50
7811
9126e6f58cd8 PSARC 2014/190 Python 2.6 EOF
John Beck <John.Beck@Oracle.COM>
parents: 4018
diff changeset
    51
VARIANTS_32 = $(VARIANT_AP_22_PY27)
9126e6f58cd8 PSARC 2014/190 Python 2.6 EOF
John Beck <John.Beck@Oracle.COM>
parents: 4018
diff changeset
    52
VARIANTS_64 = $(VARIANT_AP_22_PY27) $(VARIANT_AP_22_PY34) \
9126e6f58cd8 PSARC 2014/190 Python 2.6 EOF
John Beck <John.Beck@Oracle.COM>
parents: 4018
diff changeset
    53
              $(VARIANT_AP_24_PY27) $(VARIANT_AP_24_PY34)
4018
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    54
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    55
$(BUILD_DIR)/apache22-%/$(MACH32)/.configured: APXS=$(APACHE_USR_PREFIX)/2.2/bin/apxs
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    56
$(BUILD_DIR)/apache22-%/$(MACH64)/.configured: APXS=$(APACHE_USR_PREFIX)/2.2/bin/$(MACH64)/apxs
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    57
$(BUILD_DIR)/apache24-%/$(MACH64)/.configured: APXS=$(APACHE_USR_PREFIX)/2.4/bin/apxs
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    58
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    59
$(BUILD_DIR)/apache2%-python27/$(MACH32)/.configured: PYTHON=$(PYTHON.2.7.32)
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    60
$(BUILD_DIR)/apache2%-python27/$(MACH64)/.configured: PYTHON=$(PYTHON.2.7.64)
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    61
$(BUILD_DIR)/apache2%-python34/$(MACH32)/.configured: PYTHON=$(PYTHON.3.4.32)
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    62
$(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
    63
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    64
COMPONENT_PRE_CONFIGURE_ACTION = \
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    65
	($(CLONEY) $(SOURCE_DIR) $(@D))
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    66
4018
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    67
CONFIGURE_OPTIONS += --with-python=$(PYTHON)
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    68
CONFIGURE_OPTIONS += --with-apxs=$(APXS)
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    69
4018
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    70
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    71
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    72
# common targets
4018
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    73
configure:	$(CONFIGURE_32_and_64)
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    74
804
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    75
build:		$(BUILD_32_and_64)
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:	$(INSTALL_32_and_64)
6652c7c4eb82 6630237 supply mod_wsgi with Apache 2
Tim Foster <tim.s.foster@oracle.com>
parents:
diff changeset
    78
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    79
REQUIRED_PACKAGES += runtime/python-27
4018
51079c09956d 19780770 Apache 2.4 needs some third party modules too
Petr Sumbera <petr.sumbera@oracle.com>
parents: 3996
diff changeset
    80
REQUIRED_PACKAGES += runtime/python-34
3996
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    81
REQUIRED_PACKAGES += system/library
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    82
REQUIRED_PACKAGES += system/library/math
20c0f21bbe1e 15786608 SUNBT7162754 create new meta package developer/opensolaris/userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 3661
diff changeset
    83
REQUIRED_PACKAGES += system/linker