components/python/pylxml/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Wed, 28 Mar 2012 15:21:40 -0700
changeset 752 cbd9239f6454
parent 706 6e61f0012046
child 800 2ad056ed89ec
permissions -rw-r--r--
7153019 Update Python lxml bindings to latest version
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
251
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     1
#
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     3
#
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     7
#
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    12
#
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    18
#
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    20
#
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 609
diff changeset
    21
# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
251
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    22
#
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    23
include ../../../make-rules/shared-macros.mk
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    24
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    25
COMPONENT_NAME=		lxml
752
cbd9239f6454 7153019 Update Python lxml bindings to latest version
Rich Burridge <rich.burridge@oracle.com>
parents: 706
diff changeset
    26
COMPONENT_VERSION=	2.3.3
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 251
diff changeset
    27
COMPONENT_PROJECT_URL=	http://lxml.de/
251
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    28
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    29
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tgz
752
cbd9239f6454 7153019 Update Python lxml bindings to latest version
Rich Burridge <rich.burridge@oracle.com>
parents: 706
diff changeset
    30
COMPONENT_ARCHIVE_HASH=	sha1:891de38322643e6f052533be8b415f0c30e65ce7
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 251
diff changeset
    31
COMPONENT_ARCHIVE_URL=	$(COMPONENT_PROJECT_URL)files/$(COMPONENT_ARCHIVE)
251
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    32
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    33
# disable optimization to prevent the Studio compilers from spinning
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    34
studio_OPT.i386.32 =
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    35
studio_OPT.i386.64 =
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    36
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    37
include $(WS_TOP)/make-rules/prep.mk
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    38
include $(WS_TOP)/make-rules/setup.py.mk
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    39
include $(WS_TOP)/make-rules/ips.mk
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    40
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 609
diff changeset
    41
# build modules PIC (needed for Python 2.7)
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 609
diff changeset
    42
CFLAGS += $(CC_PIC)
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 609
diff changeset
    43
251
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    44
# common targets
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    45
build:		$(BUILD_32_and_64)
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    46
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    47
install:	$(INSTALL_32_and_64)
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    48
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    49
test:		$(BUILD_32_and_64)
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    50
		cd $(SOURCE_DIR) && $(PYTHON) selftest.py
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    51
		cd $(SOURCE_DIR) && $(PYTHON) selftest2.py
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    52
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    53
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    54
f527656d334f 7041598 migrate python-2/lxml-26 from slim_prototype to userland
Drew Fisher <drew.fisher@oracle.com>
parents:
diff changeset
    55
include $(WS_TOP)/make-rules/depend.mk