Makefile revision 2035
2035N/A#
2035N/A# CDDL HEADER START
2035N/A#
2035N/A# The contents of this file are subject to the terms of the
2035N/A# Common Development and Distribution License (the "License").
2035N/A# You may not use this file except in compliance with the License.
2035N/A#
2035N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2035N/A# or http://www.opensolaris.org/os/licensing.
2035N/A# See the License for the specific language governing permissions
2035N/A# and limitations under the License.
2035N/A#
2035N/A# When distributing Covered Code, include this CDDL HEADER in each
2035N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2035N/A# If applicable, add the following below this CDDL HEADER, with the
2035N/A# fields enclosed by brackets "[]" replaced with your own identifying
2035N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2035N/A#
2035N/A# CDDL HEADER END
2035N/A#
2035N/A# Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.
2035N/A#
2035N/Ainclude ../../../make-rules/shared-macros.mk
2035N/A
2035N/ACOMPONENT_NAME= python-ldap
2035N/ACOMPONENT_VERSION= 2.4.10
2035N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2035N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2035N/ACOMPONENT_ARCHIVE_HASH= \
2035N/A sha256:67cc7801bf24c29386ab99966ceb68d6a60fa9e0566cc95a4fbb2c4695a8ce54
2035N/ACOMPONENT_ARCHIVE_URL= $(call pypi_url)
2035N/ACOMPONENT_PROJECT_URL= http://www.python-ldap.org/
2035N/ACOMPONENT_BUGDB= python-mod/python-ldap
2035N/A
2035N/Ainclude $(WS_TOP)/make-rules/prep.mk
2035N/Ainclude $(WS_TOP)/make-rules/setup.py.mk
2035N/Ainclude $(WS_TOP)/make-rules/ips.mk
2035N/A
2035N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2035N/A
2035N/A# Needed to get around a broken /usr/lib/python2.7/config/Makefile
2035N/A# See CR #16837431.
2035N/ALD=$(CC)
2035N/ALDSHARED=$(CC) -G $(CC_BITS)
2035N/ACFLAGS= $(CC_BITS)
2035N/ACPPFLAGS=
2035N/ALDFLAGS=
2035N/APYTHON_ENV += CC="$(CC)"
2035N/APYTHON_ENV += LDSHARED="$(LDSHARED)"
2035N/APYTHON_ENV += LD="$(LD)"
2035N/APYTHON_ENV += CFLAGS="$(CFLAGS)"
2035N/APYTHON_ENV += CPPFLAGS="$(CPPFLAGS)"
2035N/APYTHON_ENV += LDFLAGS="$(LDFLAGS)"
2035N/ACOMPONENT_INSTALL_ENV += $(PYTHON_ENV)
2035N/A
2035N/ACOMPONENT_TEST_DIR = $(SOURCE_DIR)/Tests
2035N/ACOMPONENT_TEST_CMD = $(SHELL)
2035N/ACOMPONENT_TEST_ARGS = runtests.sh
2035N/ACOMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
2035N/A# Needed to create a unique temporary directory.
2035N/ACOMPONENT_TEST_ENV += BUILD_DIR=$(BUILD_DIR)
2035N/A
2035N/A# common targets
2035N/Abuild: $(BUILD_32_and_64)
2035N/A
2035N/Ainstall: $(INSTALL_32_and_64)
2035N/A
2035N/A# Two tests are known to fail. These failures are not critical.
2035N/A#
2035N/A# One fails because it says the library does not throw a value error on a
2035N/A# bad URL. This one fails, as the bad url it is trying is an edge case:
2035N/A# ldap:///????? and not that important. The OpenLDAP library doesn't
2035N/A# have the necessary code to check for that case and error out. We (or
2035N/A# someone from the python-ldap team) would have to log an OpenLDAP bug,
2035N/A# propose a fix to the code, see it integrated, wait for a release, and
2035N/A# integrate the new release into Userland.
2035N/A#
2035N/A# The other failure is for a test case that has a comment before the test case:
2035N/A# # these two constants are pointless? XXX
2035N/A# The answer being yes. And the constants are not defined in the latest
2035N/A# version of python-ldap.
2035N/A#
2035N/Atest: $(TEST_32_and_64)
2035N/A
2035N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2035N/A
2035N/Ainclude $(WS_TOP)/make-rules/depend.mk