Makefile revision 181
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# CDDL HEADER START
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# The contents of this file are subject to the terms of the
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# Common Development and Distribution License (the "License").
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# You may not use this file except in compliance with the License.
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# or http://www.opensolaris.org/os/licensing.
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# See the License for the specific language governing permissions
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# and limitations under the License.
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# When distributing Covered Code, include this CDDL HEADER in each
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# If applicable, add the following below this CDDL HEADER, with the
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# fields enclosed by brackets "[]" replaced with your own identifying
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# information: Portions Copyright [yyyy] [name of copyright owner]
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# CDDL HEADER END
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock
069f55e237020c4a4907b235fc38fafc6442ce94Eric Schrock#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock#
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrockinclude ../../make-rules/shared-macros.mk
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrock
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrockCOMPONENT_NAME= libxml2
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrockCOMPONENT_VERSION= 2.7.6
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrockCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
ea8dc4b6d2251b437950c0056bc626b311c73c27eschrockCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
069f55e237020c4a4907b235fc38fafc6442ce94Eric SchrockCOMPONENT_ARCHIVE_HASH= sha1:b0f6bf8408e759ac4b8b9650005ee8adea911e1d
069f55e237020c4a4907b235fc38fafc6442ce94Eric SchrockCOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxml2/$(COMPONENT_ARCHIVE)
include ../../make-rules/prep.mk
include ../../make-rules/configure.mk
include ../../make-rules/ips.mk
include ../../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)
test: $(TEST_32_and_64)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk