Makefile revision 618
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit#
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# CDDL HEADER START
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit#
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# The contents of this file are subject to the terms of the
b34025e1e963e60c0f81c01af0f25f1984b9ca54James Phillpotts# Common Development and Distribution License (the "License").
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# You may not use this file except in compliance with the License.
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit#
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
b34025e1e963e60c0f81c01af0f25f1984b9ca54James Phillpotts# or http://www.opensolaris.org/os/licensing.
0d29d2c9c206eb1652fa951dd55bcc0cfa4b48feNeil Madden# See the License for the specific language governing permissions
b34025e1e963e60c0f81c01af0f25f1984b9ca54James Phillpotts# and limitations under the License.
b34025e1e963e60c0f81c01af0f25f1984b9ca54James Phillpotts#
b34025e1e963e60c0f81c01af0f25f1984b9ca54James Phillpotts# When distributing Covered Code, include this CDDL HEADER in each
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b34025e1e963e60c0f81c01af0f25f1984b9ca54James Phillpotts# If applicable, add the following below this CDDL HEADER, with the
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# fields enclosed by brackets "[]" replaced with your own identifying
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# information: Portions Copyright [yyyy] [name of copyright owner]
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit#
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# CDDL HEADER END
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit#
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit#
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
4f39fae2f8671f7389a26412a6203c455b80f06dDavid Luna#
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavitinclude ../../make-rules/shared-macros.mk
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitCOMPONENT_NAME= libxml2
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitCOMPONENT_VERSION= 2.7.6
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitCOMPONENT_PROJECT_URL= http://xmlsoft.org/
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitCOMPONENT_ARCHIVE_HASH= sha1:b0f6bf8408e759ac4b8b9650005ee8adea911e1d
80802511792d4e59a4ac67ad19677009d332b37dBruno LavitCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxml2/$(COMPONENT_ARCHIVE)
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavit
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavitinclude ../../make-rules/prep.mk
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavitinclude ../../make-rules/configure.mk
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavitinclude ../../make-rules/ips.mk
80802511792d4e59a4ac67ad19677009d332b37dBruno Lavitinclude ../../make-rules/lint-libraries.mk
CFLAGS += $(CPP_LARGEFILES)
LDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
CONFIGURE_OPTIONS += --disable-static
CONFIGURE_OPTIONS += --with-pic
CONFIGURE_OPTIONS += --with-threads
CONFIGURE_OPTIONS += --with-python=$(PYTHON.$(BITS))
CONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
CONFIGURE_OPTIONS += LDFLAGS="$(LDFLAGS)"
CONFIGURE_OPTIONS += PYTHON_VENDOR_PACKAGES=$(PYTHON_VENDOR_PACKAGES)
COMPONENT_PREP_ACTION += (cd $(@D) ; cp ../mapfile libxml2.syms ; autoconf)
COMPONENT_TEST_TARGETS = tests
# common targets
build: $(BUILD_32_and_64)
install: $(INSTALL_32_and_64)
$(PYTHON.2.6.32) -m compileall $(PROTO_DIR)/usr/lib/python2.6/vendor-packages
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk