Makefile revision 2899
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER START
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# The contents of this file are subject to the terms of the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Common Development and Distribution License (the "License").
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You may not use this file except in compliance with the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# or http://www.opensolaris.org/os/licensing.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# See the License for the specific language governing permissions
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# and limitations under the License.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# When distributing Covered Code, include this CDDL HEADER in each
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# If applicable, add the following below this CDDL HEADER, with the
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# fields enclosed by brackets "[]" replaced with your own identifying
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# information: Portions Copyright [yyyy] [name of copyright owner]
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# CDDL HEADER END
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# Copyright (c) 2014, Oracle and/or its affiliates. All rights reserved.
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster#
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude ../../make-rules/shared-macros.mk
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_NAME= apr
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_VERSION= 1.5.0
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_PROJECT_URL= http://apr.apache.org/
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23e304384f98fca4ab2e6f9f07a53465c1bfc645Peter MajorCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_ARCHIVE_HASH= \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster sha256:9879f02054cb22e99f605f6fdbf47f4c028af4cd4f351cf64186a7ee447f35d7
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
23e304384f98fca4ab2e6f9f07a53465c1bfc645Peter MajorCOMPONENT_BUGDB= utility/apache
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterTPNO= 16531
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_DEFAULT_DIRS=no
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude ../../make-rules/prep.mk
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude ../../make-rules/configure.mk
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinclude ../../make-rules/ips.mk
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterPATCH_LEVEL=0
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_PREFIX=/usr/apr/1.5
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
23e304384f98fca4ab2e6f9f07a53465c1bfc645Peter MajorCONFIGURE_OPTIONS += --enable-threads
23e304384f98fca4ab2e6f9f07a53465c1bfc645Peter MajorCONFIGURE_OPTIONS += --enable-other-child
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_OPTIONS += --enable-nonportable-atomics
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_OPTIONS += --enable-shared
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_OPTIONS += --disable-static
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS)"
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_OPTIONS += LTFLAGS="--tag=CC --silent"
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_OPTIONS.32 += --enable-layout=Solaris
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCONFIGURE_OPTIONS.64 += --enable-layout=Solaris-$(MACH64)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_TEST_TARGETS= test
23e304384f98fca4ab2e6f9f07a53465c1bfc645Peter Major
23e304384f98fca4ab2e6f9f07a53465c1bfc645Peter Major# Some patches need configure script recreation.
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterCOMPONENT_PREP_ACTION += (cd $(@D); autoconf);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster# 32 and 64 bits apr.h headers need to be merged to the final one.
23e304384f98fca4ab2e6f9f07a53465c1bfc645Peter MajorAPRH=include/apr.h
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster diff -D __$(MACH64) $(BUILD_DIR_32)/$(APRH) \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster $(BUILD_DIR_64)/$(APRH) > $(PROTO_DIR)$(CONFIGURE_PREFIX)/$(APRH);
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster cd $(SOURCE_DIR); \
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster sed 's;OUTPUT_DIRECTORY=.*;OUTPUT_DIRECTORY=$(PROTO_DIR)$(CONFIGURE_PREFIX);' \
23e304384f98fca4ab2e6f9f07a53465c1bfc645Peter Major docs/doxygen.conf | doxygen - ;
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterASLR_MODE = $(ASLR_NOT_APPLICABLE)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterbuild: $(BUILD_32_and_64)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fosterinstall: $(INSTALL_32_and_64)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan Fostertest: $(TEST_32_and_64)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
8af80418ba1ec431c8027fa9668e5678658d3611Allan FosterBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster
23e304384f98fca4ab2e6f9f07a53465c1bfc645Peter Majorinclude ../../make-rules/depend.mk
8af80418ba1ec431c8027fa9668e5678658d3611Allan Foster