Makefile revision 5735
5488N/A#
5488N/A# CDDL HEADER START
5488N/A#
5488N/A# The contents of this file are subject to the terms of the
5488N/A# Common Development and Distribution License (the "License").
5488N/A# You may not use this file except in compliance with the License.
5488N/A#
5488N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
5488N/A# or http://www.opensolaris.org/os/licensing.
5488N/A# See the License for the specific language governing permissions
5488N/A# and limitations under the License.
5488N/A#
5488N/A# When distributing Covered Code, include this CDDL HEADER in each
5488N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
5488N/A# If applicable, add the following below this CDDL HEADER, with the
5488N/A# fields enclosed by brackets "[]" replaced with your own identifying
5488N/A# information: Portions Copyright [yyyy] [name of copyright owner]
5488N/A#
5488N/A# CDDL HEADER END
5488N/A#
6083N/A
6083N/A#
5488N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
5488N/A#
6083N/A
5488N/A# Prefer 32-bit over 64-bit as apr has its own custom package layout.
5488N/ABUILD_BITS= 32_and_64
5488N/Ainclude ../../make-rules/shared-macros.mk
6083N/A
6083N/ACOMPONENT_NAME= apr
6083N/ACOMPONENT_VERSION= 1.5.2
6083N/ACOMPONENT_PROJECT_URL= http://apr.apache.org/
6083N/ACOMPONENT_ARCHIVE_HASH= \
6083N/A sha256:1af06e1720a58851d90694a984af18355b65bb0d047be03ec7d659c746d6dbdb
6083N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
6083N/ACOMPONENT_BUGDB= utility/apache
6083N/A
6083N/ATPNO= 27510
5488N/A
5488N/ACONFIGURE_DEFAULT_DIRS=no
5488N/Ainclude $(WS_MAKE_RULES)/common.mk
6083N/A
5488N/A# Micro version for easy libraries packaging
5488N/AMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
5488N/APKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
5488N/A
6083N/APATCH_LEVEL=0
5488N/A
5502N/ACONFIGURE_PREFIX=$(USRDIR)/apr/1.5
5502N/A
5502N/ACONFIGURE_OPTIONS += --enable-threads
5502N/ACONFIGURE_OPTIONS += --enable-other-child
5502N/ACONFIGURE_OPTIONS += --enable-nonportable-atomics
5502N/ACONFIGURE_OPTIONS += --enable-shared
5502N/ACONFIGURE_OPTIONS += --disable-static
6142N/ACONFIGURE_OPTIONS += LTFLAGS="--tag=CC --silent"
6142N/ACONFIGURE_OPTIONS.32 += --enable-layout=Solaris
6142N/ACONFIGURE_OPTIONS.64 += --enable-layout=Solaris-$(MACH64)
6142N/A
5488N/ACOMPONENT_TEST_TARGETS= test
5488N/A
5488N/ACOMPONENT_TEST_TRANSFORMS += \
5488N/A '-e "/microseconds: [0-9]* usec/d" ' \
5488N/A '-e "/^APR Lock Performance Test/,/make\[2\]: Leaving directory/p" ' \
5488N/A '-e "/.*/d" '
5488N/A
5488N/A# Some patches need configure script recreation; autoreconf is not used here as
5488N/A# it will overwrite the patch to the libtool scripts.
5488N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoconf);
5488N/A
5488N/A# 32 and 64 bits apr.h headers need to be merged to the final one.
5488N/AAPRH=include/apr.h
5680N/A$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
5488N/A diff -D __$(MACH64) $(BUILD_DIR_32)/$(APRH) \
5488N/A $(BUILD_DIR_64)/$(APRH) > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(APRH);
5488N/A
5488N/A$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
5488N/A cd $(SOURCE_DIR); \
5488N/A sed 's;OUTPUT_DIRECTORY=.*;OUTPUT_DIRECTORY=$(PROTO_DIR)$(CONFIGURE_PREFIX);' \
5488N/A docs/doxygen.conf | doxygen - ;
5488N/A
5488N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
5488N/A
5488N/AREQUIRED_PACKAGES += database/mysql-55
5488N/AREQUIRED_PACKAGES += developer/documentation-tool/doxygen
5488N/AREQUIRED_PACKAGES += shell/bash
5488N/AREQUIRED_PACKAGES += shell/ksh93
5488N/A