libxml2: put 64-bit programs in /usr/bin
[unleashed-userland.git] / components / library / libxml2 / Makefile
blob37f38aff3b7a86f4f550e970712c21d2afebd609
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2013 Erol Zavidic. All rights reserved.
27 include ../../../make-rules/shared-macros.mk
29 COMPONENT_NAME= libxml2
30 COMPONENT_VERSION= 2.9.4
31 COMPONENT_REVISION= 1
32 COMPONENT_PROJECT_URL= http://xmlsoft.org/
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
35 COMPONENT_ARCHIVE_HASH= \
36 sha256:ffb911191e509b966deb55de705387f14156e1a56b21824357cdf0053233633c
37 COMPONENT_ARCHIVE_URL= ftp://xmlsoft.org/libxml2/$(COMPONENT_ARCHIVE)
38 COMPONENT_BUGDB= library/libxml
40 # W3C XML Conformance Test Suites
41 COMPONENT_ARCHIVE_1= xmlts20080827.tar.gz
42 COMPONENT_ARCHIVE_HASH_1= \
43 sha256:96151685cec997e1f9f3387e3626d61e6284d4d6e66e0e440c209286c03e9cc7
44 COMPONENT_ARCHIVE_URL_1= http://www.w3.org/XML/Test/$(COMPONENT_ARCHIVE_1)
46 include $(WS_MAKE_RULES)/prep.mk
47 include $(WS_MAKE_RULES)/configure.mk
48 include $(WS_MAKE_RULES)/ips.mk
50 CFLAGS += $(CPP_LARGEFILES)
51 LDFLAGS += $(CC_BITS) $(LD_Z_DEFS) $(LD_Z_TEXT) -lpthread
53 CONFIGURE_OPTIONS += --disable-static
54 CONFIGURE_OPTIONS += --with-pic
55 CONFIGURE_OPTIONS += --with-threads
56 CONFIGURE_OPTIONS.64 += --with-python=$(PYTHON.64)
57 CONFIGURE_OPTIONS.64 += --with-python-install-dir=$(PYTHON_VENDOR_PACKAGES)
58 CONFIGURE_OPTIONS.32 += --without-python
60 CONFIGURE_BINDIR.32 = $(CONFIGURE_PREFIX)/bin/$(MACH32)
61 CONFIGURE_BINDIR.64 = $(CONFIGURE_PREFIX)/bin
63 COMPONENT_PRE_TEST_ACTION += \
64 (cd $(@D) ; gtar xf $(USERLAND_ARCHIVES)/$(COMPONENT_ARCHIVE_1));
66 # common targets
67 build: $(BUILD_32_and_64)
69 install: $(INSTALL_32_and_64)
71 test: $(TEST_32_and_64)