Makefile revision 2556
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#
2556N/A# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
2556N/A#
2556N/Ainclude ../../make-rules/shared-macros.mk
2556N/A
2556N/ACOMPONENT_NAME= apr
2556N/ACOMPONENT_VERSION= 1.5.0
2556N/ACOMPONENT_PROJECT_URL= http://apr.apache.org/
2556N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2556N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
2556N/ACOMPONENT_ARCHIVE_HASH= \
2556N/A sha256:9879f02054cb22e99f605f6fdbf47f4c028af4cd4f351cf64186a7ee447f35d7
2556N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
2556N/ACOMPONENT_BUGDB= utility/apache
2556N/A
2556N/ACONFIGURE_DEFAULT_DIRS=no
2556N/A
2556N/Ainclude ../../make-rules/prep.mk
2556N/Ainclude ../../make-rules/configure.mk
2556N/Ainclude ../../make-rules/ips.mk
2556N/A
2556N/APATCH_LEVEL=0
2556N/A
2556N/ACONFIGURE_PREFIX=/usr/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 += CFLAGS="$(CFLAGS) $(CPP_LARGEFILES)"
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
2556N/A# Some patches need configure script recreation.
2556N/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
2556N/Abuild: $(BUILD_32_and_64)
2556N/A
2556N/Ainstall: $(INSTALL_32_and_64)
2556N/A
2556N/Atest: $(TEST_32_and_64)
2556N/A
2556N/ABUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2556N/A
2556N/Ainclude ../../make-rules/depend.mk