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