3668N/A#
3668N/A# CDDL HEADER START
3668N/A#
3668N/A# The contents of this file are subject to the terms of the
3668N/A# Common Development and Distribution License (the "License").
3668N/A# You may not use this file except in compliance with the License.
3668N/A#
3668N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3668N/A# or http://www.opensolaris.org/os/licensing.
3668N/A# See the License for the specific language governing permissions
3668N/A# and limitations under the License.
3668N/A#
3668N/A# When distributing Covered Code, include this CDDL HEADER in each
3668N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3668N/A# If applicable, add the following below this CDDL HEADER, with the
3668N/A# fields enclosed by brackets "[]" replaced with your own identifying
3668N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3668N/A#
3668N/A# CDDL HEADER END
3668N/A#
3996N/A# Copyright (c) 2014, 2015, Oracle and/or its affiliates. All rights reserved.
3668N/A#
3668N/Ainclude ../../make-rules/shared-macros.mk
3668N/A
3668N/ACOMPONENT_NAME= apr
3668N/ACOMPONENT_VERSION= 1.5.1
3668N/ACOMPONENT_PROJECT_URL= http://apr.apache.org/
3668N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3668N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
3668N/ACOMPONENT_ARCHIVE_HASH= \
3668N/A sha256:94b1c9d9835cc9e902838b95d62ecc9a39b698f23e3e706812ec65a78ba41af7
3668N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
3668N/ACOMPONENT_BUGDB= utility/apache
3668N/A
3668N/ATPNO= 20711
3668N/A
3668N/ACONFIGURE_DEFAULT_DIRS=no
3668N/A
3996N/Ainclude $(WS_MAKE_RULES)/prep.mk
3996N/Ainclude $(WS_MAKE_RULES)/configure.mk
3996N/Ainclude $(WS_MAKE_RULES)/ips.mk
3668N/A
3668N/A# Micro version for easy libraries packaging
3668N/AMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
3668N/APKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
3668N/A
3668N/APATCH_LEVEL=0
3668N/A
3668N/A# CC will be used via libtool for linking (thus need to be bitness aware).
3668N/ACC+=$(CC_BITS)
3668N/A
3668N/ACONFIGURE_PREFIX=/usr/apr/1.5
3668N/A
3668N/ACONFIGURE_OPTIONS += --enable-threads
3668N/ACONFIGURE_OPTIONS += --enable-other-child
3668N/ACONFIGURE_OPTIONS += --enable-nonportable-atomics
3668N/ACONFIGURE_OPTIONS += --enable-shared
3668N/ACONFIGURE_OPTIONS += --disable-static
3668N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
3668N/ACONFIGURE_OPTIONS += LTFLAGS="--tag=CC --silent"
3668N/ACONFIGURE_OPTIONS.32 += --enable-layout=Solaris
3668N/ACONFIGURE_OPTIONS.64 += --enable-layout=Solaris-$(MACH64)
3668N/A
3668N/ACOMPONENT_TEST_TARGETS= test
3668N/A
3668N/A# Some patches need configure script recreation.
3668N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoconf);
3668N/A
3668N/A# 32 and 64 bits apr.h headers need to be merged to the final one.
3668N/AAPRH=include/apr.h
3668N/A$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
3668N/A diff -D __$(MACH64) $(BUILD_DIR_32)/$(APRH) \
3668N/A $(BUILD_DIR_64)/$(APRH) > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(APRH);
3668N/A
3668N/A$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
3668N/A cd $(SOURCE_DIR); \
3668N/A sed 's;OUTPUT_DIRECTORY=.*;OUTPUT_DIRECTORY=$(PROTO_DIR)$(CONFIGURE_PREFIX);' \
3668N/A docs/doxygen.conf | doxygen - ;
3668N/A
3668N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
3668N/A
3668N/Abuild: $(BUILD_32_and_64)
3668N/A
3668N/Ainstall: $(INSTALL_32_and_64)
3668N/A
3668N/Atest: $(TEST_32_and_64)
3668N/A
3668N/A
4234N/AREQUIRED_PACKAGES += developer/documentation-tool/doxygen
3996N/AREQUIRED_PACKAGES += shell/bash
3996N/AREQUIRED_PACKAGES += shell/ksh93
3996N/AREQUIRED_PACKAGES += system/library