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