Makefile revision 3996
12343c067e12be071a68bbb10d1d1c4870696769Tinderbox User#
6c2a76b3e2ccd32c35814b6e0f54da00190749d7Evan Hunt# CDDL HEADER START
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
e5404e49304b1f8f13a03cc63e5341e4501735ceTinderbox User# The contents of this file are subject to the terms of the
e5404e49304b1f8f13a03cc63e5341e4501735ceTinderbox User# Common Development and Distribution License (the "License").
ba9e87b35e561bc7354ce3f4b9685b747b7be507Tinderbox User# You may not use this file except in compliance with the License.
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews#
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d0036fd5ddfe3c8e24151bbb1f21bc51bf876774Tinderbox User# or http://www.opensolaris.org/os/licensing.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# See the License for the specific language governing permissions
1f9754245cbd5eec2d2a667bb292f62f72386d4bMark Andrews# and limitations under the License.
59663800d2ec04777dae2791dd92aa563faf94c8Evan Hunt#
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# When distributing Covered Code, include this CDDL HEADER in each
0726d872f6f36901ea09321df57084614e5bb6faTinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1ca2cf024391992fe14b2df7d3ae0f575d074452Evan Hunt# If applicable, add the following below this CDDL HEADER, with the
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# CDDL HEADER END
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
2b7254075b883d70852a2757210793603085a0f1Tinderbox User#
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsinclude ../../make-rules/shared-macros.mk
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark AndrewsCOMPONENT_NAME= apr
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCOMPONENT_VERSION= 1.3.9
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_PROJECT_URL= http://apr.apache.org/
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCOMPONENT_ARCHIVE_HASH= \
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews sha256:562b5f7251f356a221641262e7ba7a4e1d966086df2fb46477ec9e2c748f9f28
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_BUGDB= utility/apache
415d630b6309922caee8469384a6fab75cf05032Mark Andrews
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsTPNO= 6136
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_DEFAULT_DIRS=no
415d630b6309922caee8469384a6fab75cf05032Mark Andrews
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrewsinclude $(WS_MAKE_RULES)/prep.mk
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrewsinclude $(WS_MAKE_RULES)/configure.mk
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox Userinclude $(WS_MAKE_RULES)/ips.mk
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsPATCH_LEVEL=0
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
415d630b6309922caee8469384a6fab75cf05032Mark AndrewsCONFIGURE_PREFIX=/usr/apr/1.3
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserCONFIGURE_OPTIONS += --enable-threads
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_OPTIONS += --enable-other-child
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox UserCONFIGURE_OPTIONS += --enable-nonportable-atomics
7fcb9dbe08bc0111c5e03e953ba889f86a38b854Tinderbox UserCONFIGURE_OPTIONS += --enable-shared
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS += LTFLAGS="--tag=CC --silent"
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS.32 += --enable-layout=OpenSolaris
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS.64 += --enable-layout=OpenSolaris-$(MACH64)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS.32 += --with-installbuilddir=$(CONFIGURE_PREFIX)/build
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCONFIGURE_OPTIONS.64 += --with-installbuilddir=$(CONFIGURE_PREFIX)/build/$(MACH64)
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCOMPONENT_TEST_TARGETS= test
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# We need this to keep doxygen happy (for include/ and docs/ contents).
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCOMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D));
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews# Some patches need configure script recreation.
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark AndrewsCOMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D); autoconf);
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# 32 and 64 bits apr.h headers need to be merged to the final one.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterAPRH=include/apr.h
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews$(BUILD_DIR_64)/.installed: COMPONENT_POST_INSTALL_ACTION = \
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox User /usr/bin/diff -D __$(MACH64) $(BUILD_DIR_32)/$(APRH) \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(BUILD_DIR_64)/$(APRH) > $(PROTO_DIR)/$(CONFIGURE_PREFIX)/$(APRH); true
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# Documentation is generated in and directly packaged from 32 bit build
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# directory using doxygen.
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsPKG_PROTO_DIRS += $(BUILD_DIR_32)/docs/dox/html
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox UserPKG_PROTO_DIRS += $(BUILD_DIR_32)/docs/dox/html/search
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
0c27b3fe77ac1d5094ba3521e8142d9e7973133fMark Andrewsdocs: $(BUILD_DIR_32)/.built
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews cd $(BUILD_DIR_32); doxygen docs/doxygen.conf
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsbuild: $(BUILD_32_and_64) docs
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews
9218b940febade3085fd6d95a15e67d5f94833f0Tinderbox Userinstall: $(INSTALL_32_and_64)
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox Usertest: $(TEST_32_and_64)
3ccf87473f7cf6d9faac156df38a935a238f96fdTinderbox User
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews
b378314925e78f21853a98cec924788ce1822c6cTinderbox UserREQUIRED_PACKAGES += shell/bash
ebe53509ca55a141131c104b6d722236b606e0efTinderbox UserREQUIRED_PACKAGES += shell/ksh93
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark AndrewsREQUIRED_PACKAGES += system/library
415d630b6309922caee8469384a6fab75cf05032Mark Andrews