Makefile revision 206
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# CDDL HEADER START
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# The contents of this file are subject to the terms of the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Common Development and Distribution License (the "License").
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# You may not use this file except in compliance with the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# or http://www.opensolaris.org/os/licensing.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# See the License for the specific language governing permissions
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# and limitations under the License.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# When distributing Covered Code, include this CDDL HEADER in each
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
6ec499054450c5e0fd69d78961deef46985ba363Brian Wellington# If applicable, add the following below this CDDL HEADER, with the
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# fields enclosed by brackets "[]" replaced with your own identifying
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# information: Portions Copyright [yyyy] [name of copyright owner]
6ec499054450c5e0fd69d78961deef46985ba363Brian Wellington# CDDL HEADER END
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE_HASH= sha1:3ad0099ee9fb684e118590bf0acf937639e00611
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
6ec499054450c5e0fd69d78961deef46985ba363Brian WellingtonCONFIGURE_OPTIONS += --enable-nonportable-atomics
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonCONFIGURE_OPTIONS += LTFLAGS="--tag=CC --silent"
6ec499054450c5e0fd69d78961deef46985ba363Brian WellingtonCONFIGURE_OPTIONS.32 += --enable-layout=OpenSolaris
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCONFIGURE_OPTIONS.64 += --enable-layout=OpenSolaris-$(MACH64)
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonCONFIGURE_OPTIONS.32 += --with-installbuilddir=$(CONFIGURE_PREFIX)/build
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonCONFIGURE_OPTIONS.64 += --with-installbuilddir=$(CONFIGURE_PREFIX)/build/$(MACH64)
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# We need this to keep doxygen happy (for include/ and docs/ contents).
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonCOMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D));
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington# Some patches need configure script recreation.
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian WellingtonCOMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D); autoconf);
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# 32 and 64 bits apr.h headers need to be merged to the final one.
90c099e88e9f16bfee9edee3ac1a51fc98843772Brian Wellington$(BUILD_DIR_64)/.installed: COMPONENT_POST_INSTALL_ACTION = \
d4ef65050feac78554addf6e16a06c6e2e0bd331Brian Wellington /usr/bin/diff -D __$(MACH64) $(BUILD_DIR_32)/$(APRH) \
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington $(BUILD_DIR_64)/$(APRH) > $(PROTO_DIR)/$(APR_PREFIX)/$(APRH); true
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# Documentation is generated in and directly packaged from 32 bit build
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian Wellington# directory using doxygen.
9e3a7b0faf417a10f5f689edf288807b2d5eedc5Brian WellingtonPKG_PROTO_DIRS += $(BUILD_DIR_32)/docs/dox/html