16 # fields enclosed by brackets "[]" replaced with your own identifying |
16 # fields enclosed by brackets "[]" replaced with your own identifying |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
17 # information: Portions Copyright [yyyy] [name of copyright owner] |
18 # |
18 # |
19 # CDDL HEADER END |
19 # CDDL HEADER END |
20 # |
20 # |
21 # Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved. |
21 # Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 include ../../../make-rules/shared-macros.mk |
23 include ../../../make-rules/shared-macros.mk |
24 |
24 |
25 COMPONENT_NAME= python-ldap |
25 COMPONENT_NAME= python-ldap |
26 COMPONENT_VERSION= 2.4.10 |
26 COMPONENT_VERSION= 2.4.10 |
32 COMPONENT_PROJECT_URL= http://www.python-ldap.org/ |
32 COMPONENT_PROJECT_URL= http://www.python-ldap.org/ |
33 COMPONENT_BUGDB= python-mod/python-ldap |
33 COMPONENT_BUGDB= python-mod/python-ldap |
34 |
34 |
35 TPNO= 14503 |
35 TPNO= 14503 |
36 |
36 |
37 # This module has syntax issues and this is not Python 3 ready. |
37 # This module has syntax issues and thus is not Python 3 ready. |
38 PYTHON_VERSIONS = 2.7 2.6 |
38 PYTHON_VERSIONS = 2.7 2.6 |
39 |
39 |
40 include $(WS_TOP)/make-rules/prep.mk |
40 include $(WS_TOP)/make-rules/prep.mk |
41 include $(WS_TOP)/make-rules/setup.py.mk |
41 include $(WS_TOP)/make-rules/setup.py.mk |
42 include $(WS_TOP)/make-rules/ips.mk |
42 include $(WS_TOP)/make-rules/ips.mk |
43 |
43 |
44 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
44 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
45 |
|
46 # Needed to get around a broken /usr/lib/python2.7/config/Makefile |
|
47 # See CR #16837431. |
|
48 LD=$(CC) |
|
49 LDSHARED=$(CC) -G $(CC_BITS) |
|
50 CFLAGS= $(CC_BITS) |
|
51 CPPFLAGS= |
|
52 LDFLAGS= |
|
53 PYTHON_ENV += CC="$(CC)" |
|
54 PYTHON_ENV += LDSHARED="$(LDSHARED)" |
|
55 PYTHON_ENV += LD="$(LD)" |
|
56 PYTHON_ENV += CFLAGS="$(CFLAGS)" |
|
57 PYTHON_ENV += CPPFLAGS="$(CPPFLAGS)" |
|
58 PYTHON_ENV += LDFLAGS="$(LDFLAGS)" |
|
59 COMPONENT_INSTALL_ENV += $(PYTHON_ENV) |
|
60 |
45 |
61 COMPONENT_TEST_DIR = $(SOURCE_DIR)/Tests |
46 COMPONENT_TEST_DIR = $(SOURCE_DIR)/Tests |
62 COMPONENT_TEST_CMD = $(SHELL) |
47 COMPONENT_TEST_CMD = $(SHELL) |
63 COMPONENT_TEST_ARGS = runtests.sh |
48 COMPONENT_TEST_ARGS = runtests.sh |
64 COMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32) |
49 COMPONENT_TEST_ENV += PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32) |