components/python/pycups/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=		pycups
    28 COMPONENT_NAME=		pycups
    28 COMPONENT_VERSION=	1.9.46
    29 COMPONENT_VERSION=	1.9.46
    29 COMPONENT_PROJECT_URL=	http://cyberelk.net/tim/software/pycups/
    30 COMPONENT_PROJECT_URL=	http://cyberelk.net/tim/software/pycups/
    30 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    31 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
    41 # pycups requires VERSION to be defined. Originally set in the package Makefile
    42 # pycups requires VERSION to be defined. Originally set in the package Makefile
    42 CFLAGS += -DVERSION=\\\"$(COMPONENT_VERSION)\\\"
    43 CFLAGS += -DVERSION=\\\"$(COMPONENT_VERSION)\\\"
    43 
    44 
    44 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    45 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
    45 
    46 
       
    47 # Needed to get around a broken /usr/lib/python2.7/config/Makefile
       
    48 # See CR #16837431.
       
    49 LD=$(CC)
       
    50 LDSHARED=$(CC) -G
       
    51 PYTHON_ENV += CC="$(CC)"
       
    52 PYTHON_ENV += LDSHARED="$(LDSHARED)"
       
    53 PYTHON_ENV += LD="$(LD)"
       
    54 PYTHON_ENV += CFLAGS="$(CFLAGS)"
       
    55 COMPONENT_INSTALL_ENV += $(PYTHON_ENV)
       
    56 
       
    57 COMPONENT_TEST_ARGS=	test.py
       
    58 COMPONENT_TEST_DIR=	$(COMPONENT_SRC)
       
    59 
    46 # common targets
    60 # common targets
    47 build:		$(BUILD_32_and_64)
    61 build:		$(BUILD_32_and_64)
    48 
    62 
    49 install:	$(INSTALL_32_and_64)
    63 install:	$(INSTALL_32_and_64)
    50 
    64 
    51 test:		$(NO_TESTS)
    65 test:		$(TEST_32_and_64)
    52 
    66 
    53 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    67 BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
    54 
    68 
    55 include $(WS_TOP)/make-rules/depend.mk
    69 include $(WS_TOP)/make-rules/depend.mk