Makefile revision 203
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# CDDL HEADER START
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# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# See the License for the specific language governing permissions
4e9f070a55a9ab37758f11adff5ca15d0498bcffvboxsync# and limitations under the License.
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]
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# CDDL HEADER END
7c465e80d0699fab71706c8a013a3327ec7034dcvboxsync# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
b9c7eaa5e444d11199b5fceda5662dc5e7452f70vboxsyncCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCOMPONENT_ARCHIVE_HASH= sha1:fd2a76352353e6bc2f7cc7da80e2ab3842795199
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
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.
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
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# We need this to keep doxygen happy (for include/ and docs/ contents).
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCOMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D));
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Some patches need configure script recreation.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncCOMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D); autoconf);
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