Makefile revision 203
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# CDDL HEADER START
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# The contents of this file are subject to the terms of the
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Common Development and Distribution License (the "License").
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# You may not use this file except in compliance with the License.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# or http://www.opensolaris.org/os/licensing.
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# See the License for the specific language governing permissions
4e9f070a55a9ab37758f11adff5ca15d0498bcffvboxsync# and limitations under the License.
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync#
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# When distributing Covered Code, include this CDDL HEADER in each
4e9f070a55a9ab37758f11adff5ca15d0498bcffvboxsync# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# If applicable, add the following below this CDDL HEADER, with the
4e9f070a55a9ab37758f11adff5ca15d0498bcffvboxsync# fields enclosed by brackets "[]" replaced with your own identifying
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# information: Portions Copyright [yyyy] [name of copyright owner]
e85b92d4df013df97a72864a412eb94eb3f70acevboxsync#
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# CDDL HEADER END
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync#
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync#
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsyncinclude ../../make-rules/shared-macros.mk
b9c7eaa5e444d11199b5fceda5662dc5e7452f70vboxsync
b9c7eaa5e444d11199b5fceda5662dc5e7452f70vboxsyncCOMPONENT_NAME= apr-util
b9c7eaa5e444d11199b5fceda5662dc5e7452f70vboxsyncCOMPONENT_VERSION= 1.3.9
b9c7eaa5e444d11199b5fceda5662dc5e7452f70vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
b9c7eaa5e444d11199b5fceda5662dc5e7452f70vboxsyncCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCOMPONENT_ARCHIVE_HASH= sha1:fd2a76352353e6bc2f7cc7da80e2ab3842795199
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncinclude ../../make-rules/prep.mk
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncinclude ../../make-rules/configure.mk
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncinclude ../../make-rules/ips.mk
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncPATCH_LEVEL=0
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncAPRUTIL_PREFIX=/usr/apr-util/1.3
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# CONFIGURE_OPTIONS need to be reset so that pre-defined layout can be
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# used without being overwritten with default configure paths.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# CC and CFLAGS are here just for configure needs as during the build are
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# used those from apr-1-config. Therefore also PATH definition bellow
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# contains compiler path as the first item.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCONFIGURE_OPTIONS = --prefix=$(APRUTIL_PREFIX)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCONFIGURE_OPTIONS += --with-mysql=/usr/mysql/5.1
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCONFIGURE_OPTIONS += --with-expat=/usr
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCONFIGURE_OPTIONS += --with-sqlite3=/usr
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCONFIGURE_OPTIONS += --with-ldap=ldap
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCONFIGURE_OPTIONS += --without-odbc
7e032664d31552364e83b411950d6e7c96b0b880vboxsyncCONFIGURE_OPTIONS += CC="$(CC)"
49ad08ab15f3b96d2d5ba5134a0506dd7b27fdf1vboxsyncCONFIGURE_OPTIONS += CXX="$(CCC)"
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
ad27e1d5e48ca41245120c331cc88b50464813cevboxsyncCONFIGURE_OPTIONS += $(CONFIGURE_OPTIONS.$(BITS))
49ad08ab15f3b96d2d5ba5134a0506dd7b27fdf1vboxsyncCONFIGURE_OPTIONS.32 += --enable-layout=OpenSolaris
49ad08ab15f3b96d2d5ba5134a0506dd7b27fdf1vboxsyncCONFIGURE_OPTIONS.64 += --enable-layout=OpenSolaris-$(MACH64)
49ad08ab15f3b96d2d5ba5134a0506dd7b27fdf1vboxsyncCONFIGURE_OPTIONS.32 += --with-apr=/usr/apr/1.3/bin/apr-1-config
f22cba796fd7499bf85058671a1af7cbe491c622vboxsyncCONFIGURE_OPTIONS.64 += --with-apr=/usr/apr/1.3/bin/$(MACH64)/apr-1-config
f22cba796fd7499bf85058671a1af7cbe491c622vboxsyncCONFIGURE_OPTIONS.64 += MYSQL_CONFIG=/usr/mysql/5.1/bin/$(MACH64)/mysql_config
f22cba796fd7499bf85058671a1af7cbe491c622vboxsync
f22cba796fd7499bf85058671a1af7cbe491c622vboxsyncPATH=$(SPRO_VROOT)/bin:/usr/bin:/usr/gnu/bin
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCOMPONENT_TEST_TARGETS= test
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# We need this to keep doxygen happy (for include/ and docs/ contents).
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCOMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D));
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Some patches need configure script recreation.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCOMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D); autoconf);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Documentation is generated in and directly packaged from 32 bit build
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# directory using doxygen.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncPKG_PROTO_DIRS += $(BUILD_DIR)/$(MACH32)/docs/dox/html
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncPUBLISH_TRANSFORMS += doc-transform
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncdocs: $(BUILD_DIR)/$(MACH32)/.built
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync cd $(BUILD_DIR)/$(MACH32); doxygen docs/doxygen.conf
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncbuild: $(BUILD_32_and_64) docs
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncinstall: $(INSTALL_32_and_64)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsynctest: $(TEST_32_and_64)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncinclude ../../make-rules/depend.mk
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync