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