Makefile revision 2790
c04c59898d189a1cec4f3de89f60da653358762evboxsync#
c04c59898d189a1cec4f3de89f60da653358762evboxsync# CDDL HEADER START
c04c59898d189a1cec4f3de89f60da653358762evboxsync#
c04c59898d189a1cec4f3de89f60da653358762evboxsync# The contents of this file are subject to the terms of the
c04c59898d189a1cec4f3de89f60da653358762evboxsync# Common Development and Distribution License (the "License").
c04c59898d189a1cec4f3de89f60da653358762evboxsync# You may not use this file except in compliance with the License.
c04c59898d189a1cec4f3de89f60da653358762evboxsync#
c04c59898d189a1cec4f3de89f60da653358762evboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f09a1da19ed1e839e72fcc72d68b9ae12abf83edvboxsync# or http://www.opensolaris.org/os/licensing.
f09a1da19ed1e839e72fcc72d68b9ae12abf83edvboxsync# See the License for the specific language governing permissions
f09a1da19ed1e839e72fcc72d68b9ae12abf83edvboxsync# and limitations under the License.
f09a1da19ed1e839e72fcc72d68b9ae12abf83edvboxsync#
f09a1da19ed1e839e72fcc72d68b9ae12abf83edvboxsync# When distributing Covered Code, include this CDDL HEADER in each
f09a1da19ed1e839e72fcc72d68b9ae12abf83edvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f09a1da19ed1e839e72fcc72d68b9ae12abf83edvboxsync# If applicable, add the following below this CDDL HEADER, with the
c04c59898d189a1cec4f3de89f60da653358762evboxsync# fields enclosed by brackets "[]" replaced with your own identifying
c04c59898d189a1cec4f3de89f60da653358762evboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
c04c59898d189a1cec4f3de89f60da653358762evboxsync#
c04c59898d189a1cec4f3de89f60da653358762evboxsync# CDDL HEADER END
c04c59898d189a1cec4f3de89f60da653358762evboxsync#
c04c59898d189a1cec4f3de89f60da653358762evboxsync
c04c59898d189a1cec4f3de89f60da653358762evboxsync#
c04c59898d189a1cec4f3de89f60da653358762evboxsync# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
c04c59898d189a1cec4f3de89f60da653358762evboxsync#
c04c59898d189a1cec4f3de89f60da653358762evboxsyncinclude ../../../make-rules/shared-macros.mk
c04c59898d189a1cec4f3de89f60da653358762evboxsync
c04c59898d189a1cec4f3de89f60da653358762evboxsyncCOMPONENT_NAME= pyOpenSSL
c04c59898d189a1cec4f3de89f60da653358762evboxsyncCOMPONENT_VERSION= 0.13
c04c59898d189a1cec4f3de89f60da653358762evboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
c04c59898d189a1cec4f3de89f60da653358762evboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
c04c59898d189a1cec4f3de89f60da653358762evboxsyncCOMPONENT_ARCHIVE_HASH= \
c04c59898d189a1cec4f3de89f60da653358762evboxsync sha256:21e12b03abaa0e04ecc8cd9c251598f71bae11c9f385304234e4ea5618c6163b
c04c59898d189a1cec4f3de89f60da653358762evboxsyncCOMPONENT_ARCHIVE_URL= $(call pypi_url)
COMPONENT_PROJECT_URL= https://launchpad.net/pyopenssl
COMPONENT_BUGDB= python-mod/pyopenssl
include $(WS_TOP)/make-rules/prep.mk
include $(WS_TOP)/make-rules/setup.py.mk
include $(WS_TOP)/make-rules/ips.mk
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
# Needed to get around a broken /usr/lib/python2.7/config/Makefile
# See CR #16837431.
LD=$(CC)
LDSHARED=$(CC) -G
PYTHON_ENV += CC="$(CC)"
PYTHON_ENV += LDSHARED="$(LDSHARED)"
PYTHON_ENV += LD="$(LD)"
PYTHON_ENV += CFLAGS="$(CFLAGS)"
COMPONENT_INSTALL_ENV += $(PYTHON_ENV)
COMPONENT_TEST_DIR = $(COMPONENT_SRC)/OpenSSL/test
# The .so files are under ./OpenSSL/64 not ./64/OpenSSL so the
# $(PYTHON_VENDOR_PACKAGES) variable for 64bit Python is wrong.
# Everything works fine if we just add the 32bit path.
COMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
COMPONENT_TEST_CMD = $(SHELL)
COMPONENT_TEST_ARGS = $(COMPONENT_DIR)/files/runtests
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include $(WS_TOP)/make-rules/depend.mk