components/libxml2/Makefile
author John Beck <John.Beck@Oracle.COM>
Mon, 02 Feb 2015 18:57:35 -0800
branchs11-update
changeset 3781 399830c4eaf1
parent 3510 12feed356915
child 3783 9edbfb2ff34a
permissions -rw-r--r--
19317151 libxml2 needs Python 3 module
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     1
#
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     2
# CDDL HEADER START
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     3
#
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     7
#
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    11
# and limitations under the License.
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    12
#
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    18
#
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    19
# CDDL HEADER END
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    20
#
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    21
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    22
#
3510
12feed356915 19875486 Upgrade libxml2 to version 2.9.2
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2668
diff changeset
    23
# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    24
#
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    25
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    27
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    28
COMPONENT_NAME=		libxml2
3510
12feed356915 19875486 Upgrade libxml2 to version 2.9.2
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2668
diff changeset
    29
COMPONENT_VERSION=	2.9.2
609
775168282b2f 7037821 Userland migration of data from Makefile to manifest may have been a little overzealous
Rich Burridge <rich.burridge@oracle.com>
parents: 558
diff changeset
    30
COMPONENT_PROJECT_URL=	http://xmlsoft.org/
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
800
2ad056ed89ec 7163771 sha1 should not be used in userland-fetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents: 782
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
3510
12feed356915 19875486 Upgrade libxml2 to version 2.9.2
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2668
diff changeset
    34
    sha256:5178c30b151d044aefb1b08bf54c3003a0ac55c59c866763997529d60770d5bc
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	ftp://xmlsoft.org/libxml2/$(COMPONENT_ARCHIVE)
2434
6c9bb5cf5610 15930486 - Auto-generation of Userland gate list for the Solaris 11 Update Release
Rich Burridge <rich.burridge@oracle.com>
parents: 918
diff changeset
    36
COMPONENT_BUGDB=	library/libxml
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    37
918
35e4a56e4a26 7184322 libxml2 should pass its internal test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents: 800
diff changeset
    38
# W3C XML Conformance Test Suites
2452
9dc4dfa4b04d 15825143 SUNBT7206540 Upgrade libxml2 to version 2.9.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2434
diff changeset
    39
COMPONENT_ARCHIVE_1= xmlts20080827.tar.gz
918
35e4a56e4a26 7184322 libxml2 should pass its internal test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents: 800
diff changeset
    40
COMPONENT_ARCHIVE_HASH_1= \
2452
9dc4dfa4b04d 15825143 SUNBT7206540 Upgrade libxml2 to version 2.9.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2434
diff changeset
    41
    sha256:96151685cec997e1f9f3387e3626d61e6284d4d6e66e0e440c209286c03e9cc7
918
35e4a56e4a26 7184322 libxml2 should pass its internal test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents: 800
diff changeset
    42
COMPONENT_ARCHIVE_URL_1= http://www.w3.org/XML/Test/$(COMPONENT_ARCHIVE_1)
35e4a56e4a26 7184322 libxml2 should pass its internal test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents: 800
diff changeset
    43
3510
12feed356915 19875486 Upgrade libxml2 to version 2.9.2
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2668
diff changeset
    44
TPNO=			19552
12feed356915 19875486 Upgrade libxml2 to version 2.9.2
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2668
diff changeset
    45
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    46
include ../../make-rules/prep.mk
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    47
include ../../make-rules/configure.mk
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    48
include ../../make-rules/ips.mk
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 151
diff changeset
    49
include ../../make-rules/lint-libraries.mk
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    50
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    51
CFLAGS +=	$(CPP_LARGEFILES)
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    52
LDFLAGS +=	$(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    53
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    54
CONFIGURE_OPTIONS += --disable-static
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    55
CONFIGURE_OPTIONS += --with-pic
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    56
CONFIGURE_OPTIONS += --with-threads
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    57
CONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
3510
12feed356915 19875486 Upgrade libxml2 to version 2.9.2
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2668
diff changeset
    58
CONFIGURE_OPTIONS += --with-python-install-dir=$(PYTHON_VENDOR_PACKAGES)
2452
9dc4dfa4b04d 15825143 SUNBT7206540 Upgrade libxml2 to version 2.9.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2434
diff changeset
    59
# Cannot link to lzma since it's not in /lib.
9dc4dfa4b04d 15825143 SUNBT7206540 Upgrade libxml2 to version 2.9.0
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2434
diff changeset
    60
CONFIGURE_OPTIONS += --without-lzma
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    61
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    62
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    63
673
bb9df3c906be PSARC 2012/033 automake 1.11.2
Rich Burridge <rich.burridge@oracle.com>
parents: 609
diff changeset
    64
COMPONENT_PREP_ACTION += (cd $(@D) ; cp ../mapfile libxml2.syms ; autoreconf -if)
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
    65
3781
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    66
# After we have configured, make a copy of the python bits so we can build and
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    67
# test separate python 2.7 and 3.4 support.  Note for 3.4: .py files need to
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    68
# go in .../vendor-packages (whether building 32-bit or 64-bit) whereas .so
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    69
# files need to go in .../vendor-packages for 32-bit but .../vendor-packages/64
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    70
# for 64-bit.  For 2.6 and 2.7, Python is built 32- and 64-bit, so .py files
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    71
# end up in both places even though only the 32-bit location is needed, but the
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    72
# superfluous files in the proto area are harmless; meanwhile, the .so files
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    73
# end up in their proper 32- and 64-bit locations.  But Python 3.4 is built
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    74
# 64-bit only, so we have an extra sed edit below to force the .py files into
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    75
# the 32-bit location and we manually specify the 32-bit path in the manifest
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    76
# to correct for the .so file being installed there instead of the 64-bit path
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    77
# where it belongs.
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    78
COMPONENT_POST_CONFIGURE_ACTION = \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    79
    (cd $(@D) ; cp -rp python python2.7 ; \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    80
    $(GSED) -i -e 's/2[.]6/2.7/g' `find python2.7 -name Makefile` ; \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    81
     cd $(@D) ; cp -rp python python3.4 ; \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    82
    $(GSED) -i -e 's/2[.]6/3.4/g' -e 's|vendor-packages/64|vendor-packages|' \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    83
     `find python3.4 -name Makefile` ; \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    84
)
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 673
diff changeset
    85
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 673
diff changeset
    86
# After we have built/installed libxml2, build/install the python
3781
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    87
# support for python 2.7 and 3.4
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 673
diff changeset
    88
COMPONENT_POST_INSTALL_ACTION = \
3781
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    89
    (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) install ; \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    90
     [ $(BITS) -eq 64 ] && cd $(@D)/python3.4 ; \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    91
     $(GMAKE) $(COMPONENT_INSTALL_ARGS) install)
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 673
diff changeset
    92
3781
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    93
# It's nice to test also python 2.7 and 3.4 modules.
2668
be2379d0aa1f 16738474 Upgrade libxml2 to version 2.9.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2452
diff changeset
    94
COMPONENT_POST_TEST_ACTION = \
3781
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    95
    (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_TEST_ARGS) test ; \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    96
     [ $(BITS) -eq 64 ] && cd $(@D)/python3.4 ; \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
    97
     $(GMAKE) $(COMPONENT_TEST_ARGS) test)
2668
be2379d0aa1f 16738474 Upgrade libxml2 to version 2.9.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2452
diff changeset
    98
be2379d0aa1f 16738474 Upgrade libxml2 to version 2.9.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2452
diff changeset
    99
# We have patched our 64 bit python so it will search for modules only in
be2379d0aa1f 16738474 Upgrade libxml2 to version 2.9.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2452
diff changeset
   100
# '64/' directories. Now we need to provide one. Otherwise python will
be2379d0aa1f 16738474 Upgrade libxml2 to version 2.9.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2452
diff changeset
   101
# end up using libxml2mod.so installed on system.
be2379d0aa1f 16738474 Upgrade libxml2 to version 2.9.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2452
diff changeset
   102
$(BUILD_DIR)/$(MACH64)/.tested: COMPONENT_PRE_TEST_ACTION = ( \
3781
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
   103
    $(MKDIR) $(@D)/python/.libs/64 \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
   104
             $(@D)/python2.7/.libs/64 \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
   105
             $(@D)/python3.4/.libs/64; \
2668
be2379d0aa1f 16738474 Upgrade libxml2 to version 2.9.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2452
diff changeset
   106
    $(SYMLINK) ../libxml2mod.so $(@D)/python/.libs/64/libxml2mod.so; \
3781
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
   107
    $(SYMLINK) ../libxml2mod.so $(@D)/python2.7/.libs/64/libxml2mod.so; \
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
   108
    $(SYMLINK) ../libxml2mod.so $(@D)/python3.4/.libs/64/libxml2mod.so);
2668
be2379d0aa1f 16738474 Upgrade libxml2 to version 2.9.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2452
diff changeset
   109
be2379d0aa1f 16738474 Upgrade libxml2 to version 2.9.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2452
diff changeset
   110
COMPONENT_PRE_TEST_ACTION += \
be2379d0aa1f 16738474 Upgrade libxml2 to version 2.9.1
Petr Sumbera <petr.sumbera@oracle.com>
parents: 2452
diff changeset
   111
    (cd $(@D) ; gtar xf $(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_1));
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 673
diff changeset
   112
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   113
# common targets
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   114
build:		$(BUILD_32_and_64)
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   115
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   116
install:	$(INSTALL_32_and_64)
558
f30a27eeab26 7098256 libxml2-26 doesn't deliver .pyc files
Rich Burridge <rich.burridge@oracle.com>
parents: 181
diff changeset
   117
	$(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
706
6e61f0012046 7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 673
diff changeset
   118
	$(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
3781
399830c4eaf1 19317151 libxml2 needs Python 3 module
John Beck <John.Beck@Oracle.COM>
parents: 3510
diff changeset
   119
	$(PYTHON.3.4.64) -m compileall $(PROTO_DIR)/usr/lib/python3.4/vendor-packages
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   120
181
87e11e685b1f 7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents: 151
diff changeset
   121
test:		$(TEST_32_and_64)
148
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   122
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   123
BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   124
33ca3897ae25 7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff changeset
   125
include ../../make-rules/depend.mk