Makefile revision 2804
3871N/A#
3871N/A# CDDL HEADER START
3871N/A#
3871N/A# The contents of this file are subject to the terms of the
3871N/A# Common Development and Distribution License (the "License").
3871N/A# You may not use this file except in compliance with the License.
3871N/A#
3871N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
3871N/A# or http://www.opensolaris.org/os/licensing.
3871N/A# See the License for the specific language governing permissions
3871N/A# and limitations under the License.
3871N/A#
3871N/A# When distributing Covered Code, include this CDDL HEADER in each
3871N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
3871N/A# If applicable, add the following below this CDDL HEADER, with the
3871N/A# fields enclosed by brackets "[]" replaced with your own identifying
3871N/A# information: Portions Copyright [yyyy] [name of copyright owner]
3871N/A#
3871N/A# CDDL HEADER END
3871N/A#
3871N/A# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
3871N/A#
3871N/Ainclude ../../make-rules/shared-macros.mk
3871N/A
5205N/ACOMPONENT_NAME= apr
3871N/ACOMPONENT_VERSION= 1.5.0
4798N/ACOMPONENT_PROJECT_URL= http://apr.apache.org/
3871N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
3871N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
4553N/ACOMPONENT_ARCHIVE_HASH= \
3871N/A sha256:9879f02054cb22e99f605f6fdbf47f4c028af4cd4f351cf64186a7ee447f35d7
4134N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
4134N/ACOMPONENT_BUGDB= utility/apache
4553N/A
4553N/ACONFIGURE_DEFAULT_DIRS=no
4134N/A
3871N/Ainclude ../../make-rules/prep.mk
3871N/Ainclude ../../make-rules/configure.mk
3871N/Ainclude ../../make-rules/ips.mk
5205N/A
3871N/APATCH_LEVEL=0
3871N/A
3871N/ACONFIGURE_PREFIX=/usr/apr/1.5
4134N/A
4553N/ACONFIGURE_OPTIONS += --enable-threads
3871N/ACONFIGURE_OPTIONS += --enable-other-child
4798N/ACONFIGURE_OPTIONS += --enable-nonportable-atomics
3871N/ACONFIGURE_OPTIONS += --enable-shared
3871N/ACONFIGURE_OPTIONS += --disable-static
3871N/ACONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
3871N/ACONFIGURE_OPTIONS += LTFLAGS="--tag=CC --silent"
3988N/ACONFIGURE_OPTIONS.32 += --enable-layout=Solaris
3871N/ACONFIGURE_OPTIONS.64 += --enable-layout=Solaris-$(MACH64)
3871N/A
3871N/ACOMPONENT_TEST_TARGETS= test
3871N/A
3871N/A# Some patches need configure script recreation.
3871N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoconf);
3871N/A
3871N/A# 32 and 64 bits apr.h headers need to be merged to the final one.
3871N/AAPRH=include/apr.h
3871N/A$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
3871N/A diff -D __$(MACH64) $(BUILD_DIR_32)/$(APRH) \
3871N/A $(BUILD_DIR_64)/$(APRH) > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(APRH);
3871N/A
3871N/A$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
3871N/A cd $(SOURCE_DIR); \
3871N/A sed 's;OUTPUT_DIRECTORY=.*;OUTPUT_DIRECTORY=$(PROTO_DIR)$(CONFIGURE_PREFIX);' \
3871N/A docs/doxygen.conf | doxygen - ;
3871N/A
3871N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
3871N/A
3871N/Abuild: $(BUILD_32_and_64)
3871N/A
3871N/Ainstall: $(INSTALL_32_and_64)
3871N/A
3871N/Atest: $(TEST_32_and_64)
3871N/A
3871N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
3871N/A
3871N/Ainclude ../../make-rules/depend.mk
3871N/A