components/python/m2crypto/Makefile
changeset 1890 5a4ef66c42bf
parent 1434 c782e620dd26
child 1907 446472de62e9
equal deleted inserted replaced
1889:7251578a5ce7 1890:5a4ef66c42bf
    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) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
    21 
    22 #
    22 #
       
    23 # Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 
    23 include ../../../make-rules/shared-macros.mk
    26 include ../../../make-rules/shared-macros.mk
    24 
       
    25 PATH=/usr/bin:/usr/gnu/bin:/usr/sbin
       
    26 
    27 
    27 COMPONENT_NAME=		M2Crypto
    28 COMPONENT_NAME=		M2Crypto
    28 COMPONENT_VERSION=	0.21.1
    29 COMPONENT_VERSION=	0.21.1
    29 COMPONENT_PROJECT_URL=	http://chandlerproject.org/Projects/MeTooCrypto/
    30 COMPONENT_PROJECT_URL=	http://chandlerproject.org/Projects/MeTooCrypto/
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    38 include $(WS_TOP)/make-rules/setup.py.mk
    39 include $(WS_TOP)/make-rules/setup.py.mk
    39 include $(WS_TOP)/make-rules/ips.mk
    40 include $(WS_TOP)/make-rules/ips.mk
    40 
    41 
    41 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    42 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    42 
    43 
       
    44 # Needed to get around a broken /usr/lib/python2.7/config/Makefile
       
    45 # See CR #16837431.
       
    46 LD=$(CC)
       
    47 LDSHARED=$(CC) -G
       
    48 PYTHON_ENV += CC="$(CC)"
       
    49 PYTHON_ENV += LDSHARED="$(LDSHARED)"
       
    50 PYTHON_ENV += LD="$(LD)"
       
    51 PYTHON_ENV += CFLAGS="$(CFLAGS)"
       
    52 COMPONENT_INSTALL_ENV += $(PYTHON_ENV)
       
    53 
       
    54 COMPONENT_TEST_ARGS =	setup.py test
       
    55 COMPONENT_TEST_DIR =	$(COMPONENT_SRC)
       
    56 COMPONENT_TEST_ENV=	CC=$(CC)
       
    57 COMPONENT_TEST_ENV +=	PATH=/usr/bin
       
    58 COMPONENT_TEST_ENV +=	PYTHONPATH=$(PROTO_DIR)$(PYTHON_VENDOR_PACKAGES.32)
       
    59 
    43 # common targets
    60 # common targets
    44 build:		$(BUILD_32_and_64)
    61 build:		$(BUILD_32_and_64)
    45 
    62 
    46 install:	$(INSTALL_32_and_64)
    63 install:	$(INSTALL_32_and_64)
    47 
    64 
    48 test:		$(NO_TESTS)
    65 test:		$(TEST_32_and_64)
    49 
    66 
    50 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    67 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    51 
    68 
    52 include $(WS_TOP)/make-rules/depend.mk
    69 include $(WS_TOP)/make-rules/depend.mk