Makefile revision 690
32N/A#
32N/A# CDDL HEADER START
911N/A#
851N/A# The contents of this file are subject to the terms of the
32N/A# Common Development and Distribution License (the "License").
32N/A# You may not use this file except in compliance with the License.
32N/A#
32N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
32N/A# or http://www.opensolaris.org/os/licensing.
32N/A# See the License for the specific language governing permissions
32N/A# and limitations under the License.
32N/A#
32N/A# When distributing Covered Code, include this CDDL HEADER in each
32N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
32N/A# If applicable, add the following below this CDDL HEADER, with the
32N/A# fields enclosed by brackets "[]" replaced with your own identifying
32N/A# information: Portions Copyright [yyyy] [name of copyright owner]
32N/A#
32N/A# CDDL HEADER END
32N/A#
32N/A
32N/A#
32N/A# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
32N/A#
32N/A
32N/Ainclude ../../make-rules/shared-macros.mk
32N/A
32N/ACOMPONENT_NAME= libxml2
32N/ACOMPONENT_VERSION= 2.7.6
32N/ACOMPONENT_PROJECT_URL= http://xmlsoft.org/
32N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
32N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
32N/ACOMPONENT_ARCHIVE_HASH= sha1:b0f6bf8408e759ac4b8b9650005ee8adea911e1d
493N/ACOMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxml2/$(COMPONENT_ARCHIVE)
32N/A
32N/Ainclude ../../make-rules/prep.mk
851N/Ainclude ../../make-rules/configure.mk
32N/Ainclude ../../make-rules/ips.mk
911N/Ainclude ../../make-rules/lint-libraries.mk
911N/A
911N/ACFLAGS += $(CPP_LARGEFILES)
911N/ALDFLAGS += $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
32N/A
32N/ACONFIGURE_OPTIONS += --disable-static
32N/ACONFIGURE_OPTIONS += --with-pic
32N/ACONFIGURE_OPTIONS += --with-threads
32N/ACONFIGURE_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 ; autoreconf -if)
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