components/libxslt/Makefile
branchs11u3-sru
changeset 7811 9126e6f58cd8
parent 6465 34e8dde249f5
equal deleted inserted replaced
7792:ee802f9b5132 7811:9126e6f58cd8
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 
    21 
    22 #
    22 #
    23 # Copyright (c) 2011, 2016, Oracle and/or its affiliates. All rights reserved.
    23 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
    24 #
    24 #
    25 
    25 
    26 include ../../make-rules/shared-macros.mk
    26 include ../../make-rules/shared-macros.mk
    27 
    27 
    28 COMPONENT_NAME=		libxslt
    28 COMPONENT_NAME=		libxslt
    45 LINT_FLAGS +=	-I$(COMPONENT_DIR)/../libxml2/build/prototype/$(MACH)/$(USRINCDIR)/libxml2
    45 LINT_FLAGS +=	-I$(COMPONENT_DIR)/../libxml2/build/prototype/$(MACH)/$(USRINCDIR)/libxml2
    46 
    46 
    47 CFLAGS +=	$(CPP_LARGEFILES)
    47 CFLAGS +=	$(CPP_LARGEFILES)
    48 LDFLAGS +=	$(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
    48 LDFLAGS +=	$(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
    49 
    49 
    50 # When 2.6 goes away, we can remove the version line below, as well as the
       
    51 # COMPONENT_POST_{CONFIGURE,INSTALL_ACTION} lines below.
       
    52 PYTHON_VERSION=2.6
       
    53 
       
    54 CONFIGURE_OPTIONS += --disable-static
    50 CONFIGURE_OPTIONS += --disable-static
    55 CONFIGURE_OPTIONS += --with-pic
    51 CONFIGURE_OPTIONS += --with-pic
    56 CONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
    52 CONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
    57 CONFIGURE_OPTIONS += --without-crypto
    53 CONFIGURE_OPTIONS += --without-crypto
    58 CONFIGURE_OPTIONS += --with-html-dir=/usr/share/lib/xslt/doc
    54 CONFIGURE_OPTIONS += --with-html-dir=/usr/share/lib/xslt/doc
    65 	(cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
    61 	(cd $(@D) ; cp ../mapfile.xslt libxslt/libxslt.syms ; \
    66 		    $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
    62 		    $(RM) libxslt/xsltconfig.h libexslt/exsltconfig.h ; \
    67 		    libtoolize --force --copy ; aclocal ; \
    63 		    libtoolize --force --copy ; aclocal ; \
    68 		    automake --addmissing --copy ; autoconf)
    64 		    automake --addmissing --copy ; autoconf)
    69 
    65 
    70 # After we have configured, make a copy of the python bits so we
       
    71 # can build separate python 2.7 support.
       
    72 COMPONENT_POST_CONFIGURE_ACTION = (cd $(@D) ; cp -rp python python2.7)
       
    73 
       
    74 # After we have built/installed libxslt, rebuild/install the python
       
    75 # support for python 2.7
       
    76 COMPONENT_POST_INSTALL_ACTION = \
       
    77     (cd $(@D)/python2.7 ; $(GMAKE) $(COMPONENT_INSTALL_ARGS) \
       
    78                                 PYTHON=$(PYTHON.2.7.$(BITS)) \
       
    79                                 PYTHON_VERSION=2.7 \
       
    80                                 PYTHON_INCLUDES=/usr/include/python2.7 \
       
    81                                 PYTHON_LIBS=$(PYTHON.2.7.VENDOR_PACKAGES) \
       
    82                                 PYTHON_SITE_PACKAGES=$(PYTHON.2.7.VENDOR_PACKAGES) \
       
    83                                 install)
       
    84 
       
    85 
       
    86 
       
    87 # common targets
    66 # common targets
    88 build:		$(BUILD_32_and_64)
    67 build:		$(BUILD_32_and_64)
    89 
    68 
    90 install:	$(INSTALL_32_and_64)
    69 install:	$(INSTALL_32_and_64)
    91 	$(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
       
    92 	$(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
    70 	$(PYTHON.2.7.32) -m compileall $(PROTO_DIR)/usr/lib/python2.7/vendor-packages
    93 
    71 
    94 test:		$(TEST_32_and_64)
    72 test:		$(TEST_32_and_64)
    95 
    73 
    96 
    74 
    97 
       
    98 REQUIRED_PACKAGES += library/libxml2
    75 REQUIRED_PACKAGES += library/libxml2
    99 REQUIRED_PACKAGES += library/libxslt
    76 REQUIRED_PACKAGES += library/libxslt
   100 REQUIRED_PACKAGES += runtime/python-26
       
   101 REQUIRED_PACKAGES += runtime/python-27
    77 REQUIRED_PACKAGES += runtime/python-27
   102 REQUIRED_PACKAGES += shell/ksh93
    78 REQUIRED_PACKAGES += shell/ksh93
   103 REQUIRED_PACKAGES += system/library
    79 REQUIRED_PACKAGES += system/library
   104 REQUIRED_PACKAGES += system/library/math
    80 REQUIRED_PACKAGES += system/library/math
   105 REQUIRED_PACKAGES += system/linker
    81 REQUIRED_PACKAGES += system/linker