author  Rich Burridge <rich.burridge@oracle.com> 
Thu, 29 Nov 2012 06:06:04 0800  
branch  s11update 
changeset 2434  6c9bb5cf5610 
parent 918  35e4a56e4a26 
child 2452  9dc4dfa4b04d 
permissions  rwrr 
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 
# 
673
bb9df3c906be
PSARC 2012/033 automake 1.11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
609
diff
changeset

23 
# Copyright (c) 2011, 2012, 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 ../../makerules/sharedmacros.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 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

29 
COMPONENT_VERSION= 2.7.6 
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 userlandfetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
782
diff
changeset

33 
COMPONENT_ARCHIVE_HASH= \ 
2ad056ed89ec
7163771 sha1 should not be used in userlandfetch and userland component/*/Makefile
Mike Sullivan <Mike.Sullivan@Oracle.COM>
parents:
782
diff
changeset

34 
sha256:238c4f0203c012e5776522640c0fb3ac532c4064981c1ce3e74c00b75501d761 
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  Autogeneration 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 
35e4a56e4a26
7184322 libxml2 should pass its internal test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents:
800
diff
changeset

39 
COMPONENT_ARCHIVE_1= xmlts20080205.tar.gz 
35e4a56e4a26
7184322 libxml2 should pass its internal test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents:
800
diff
changeset

40 
COMPONENT_ARCHIVE_HASH_1= \ 
35e4a56e4a26
7184322 libxml2 should pass its internal test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents:
800
diff
changeset

41 
sha256:39ffe4a61be4187aac4b64b8fd34aa01bb004387527a1ec5dc9c8dd794a2562e 
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 

148
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

44 
include ../../makerules/prep.mk 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

45 
include ../../makerules/configure.mk 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

46 
include ../../makerules/ips.mk 
181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
151
diff
changeset

47 
include ../../makerules/lintlibraries.mk 
148
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

48 

33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

49 
CFLAGS += $(CPP_LARGEFILES) 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

50 
LDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) lpthread 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

51 

33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

52 
CONFIGURE_OPTIONS += disablestatic 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

53 
CONFIGURE_OPTIONS += withpic 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

54 
CONFIGURE_OPTIONS += withthreads 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

55 
CONFIGURE_OPTIONS += withpython=$(PYTHON.$(BITS)) 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

56 
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)" 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

57 
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)" 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

58 
CONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES) 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

59 

918
35e4a56e4a26
7184322 libxml2 should pass its internal test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents:
800
diff
changeset

60 
COMPONENT_PREP_ACTION = (cd $(@D) ; gtar xf $(COMPONENT_DIR)/$(COMPONENT_ARCHIVE_1)); 
673
bb9df3c906be
PSARC 2012/033 automake 1.11.2
Rich Burridge <rich.burridge@oracle.com>
parents:
609
diff
changeset

61 
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

62 

918
35e4a56e4a26
7184322 libxml2 should pass its internal test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents:
800
diff
changeset

63 
# Internal test suit needs data files ready. 
35e4a56e4a26
7184322 libxml2 should pass its internal test suite
Petr Sumbera <petr.sumbera@oracle.com>
parents:
800
diff
changeset

64 
COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D)) 
148
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

65 

706
6e61f0012046
7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
673
diff
changeset

66 
# After we have configured, make a copy of the python bits so we 
6e61f0012046
7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
673
diff
changeset

67 
# can build separate python 2.7 support. 
782
285320d34a71
7161789 library/python2/libxml227 has dependency on runtime/python26
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
706
diff
changeset

68 
COMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp rp python python2.7 ; \ 
285320d34a71
7161789 library/python2/libxml227 has dependency on runtime/python26
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
706
diff
changeset

69 
$(GSED) i e 's/2[.]6/2.7/g' python2.7/Makefile) 
706
6e61f0012046
7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
673
diff
changeset

70 

6e61f0012046
7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
673
diff
changeset

71 
# After we have built/installed libxml2, build/install the python 
6e61f0012046
7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
673
diff
changeset

72 
# support for python 2.7 
6e61f0012046
7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
673
diff
changeset

73 
COMPONENT_POST_INSTALL_ACTION = \ 
782
285320d34a71
7161789 library/python2/libxml227 has dependency on runtime/python26
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
706
diff
changeset

74 
(cd $(@D)/python2.7 ; $(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

75 

6e61f0012046
7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
673
diff
changeset

76 

148
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

77 
# common targets 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

78 
build: $(BUILD_32_and_64) 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

79 

33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

80 
install: $(INSTALL_32_and_64) 
558
f30a27eeab26
7098256 libxml226 doesn't deliver .pyc files
Rich Burridge <rich.burridge@oracle.com>
parents:
181
diff
changeset

81 
$(PYTHON.2.6.32) m compileall $(PROTO_DIR)/usr/lib/python2.6/vendorpackages 
706
6e61f0012046
7108059 Userland should have python2.7 version of its python modules
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
673
diff
changeset

82 
$(PYTHON.2.7.32) m compileall $(PROTO_DIR)/usr/lib/python2.7/vendorpackages 
148
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

83 

181
87e11e685b1f
7003927 userland should postprocess packaged files
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
151
diff
changeset

84 
test: $(TEST_32_and_64) 
148
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

85 

33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

86 
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) 
33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

87 

33ca3897ae25
7029701 libxml2 should move to userland
Norm Jacobs <Norm.Jacobs@Oracle.COM>
parents:
diff
changeset

88 
include ../../makerules/depend.mk 