Makefile revision 1273
280a8a0544b4aeb52414d20e8c6e6c5b1108562eTinderbox User#
59602f2a7c4e4809941583bed3e94cd26e628f1aTinderbox User# CDDL HEADER START
6fe48fb46e53ffc37542853a1edb74cb481b7d94Automatic Updater#
5affecff6e148a8e124d03f5dbac0da11e30dcc5Tinderbox User# The contents of this file are subject to the terms of the
19558a04decde0e7261d489d92d04ad88104217bTinderbox User# Common Development and Distribution License (the "License").
827f8cccb5280f4da66c46186e792d1cb9d73503Mark Andrews# You may not use this file except in compliance with the License.
827f8cccb5280f4da66c46186e792d1cb9d73503Mark Andrews#
c57668a2fbbe558c1bd21652813616f2f517c469Tinderbox User# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
03ebc228ee3725738b067b6bd7082a9a731822a1Tinderbox User# or http://www.opensolaris.org/os/licensing.
f4ee48be3994797a8332b86c101db4d7b54799ceTinderbox User# See the License for the specific language governing permissions
a2c370ca12bb0360ff7e969474ead3f788c65fffTinderbox User# and limitations under the License.
8de3f14f1c300c3e1ed99084cc03485b42c92bf1Tinderbox User#
e5a6871cd0635ecdb2bf792316a2d8c53206f4b2Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
950d203b64f512b85fcc093ee1e9e3e531a1aea3Tinderbox User# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
b886b04d8d2b085cbf3e1bf4442dee87f43ba5e4Tinderbox User# If applicable, add the following below this CDDL HEADER, with the
03ebc228ee3725738b067b6bd7082a9a731822a1Tinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
3759f10fc543747668b1ca4b4671f35b0dea8445Francis Dupont# information: Portions Copyright [yyyy] [name of copyright owner]
e676a596869d8a80a644c99a848afb53d1c5975eMark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews# CDDL HEADER END
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark Andrews#
d5637bdbb931ff79fced3d4858d83212ea58ed15Tinderbox User# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrews#
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark Andrewsinclude ../../make-rules/shared-macros.mk
3759f10fc543747668b1ca4b4671f35b0dea8445Francis Dupont
d5637bdbb931ff79fced3d4858d83212ea58ed15Tinderbox UserCOMPONENT_NAME= apr
c651f15b30f1dae5cc2f00878fb5da5b3a35a468Mark AndrewsCOMPONENT_VERSION= 1.3.9
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_PROJECT_URL= http://apr.apache.org/
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCOMPONENT_ARCHIVE_HASH= \
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt sha256:562b5f7251f356a221641262e7ba7a4e1d966086df2fb46477ec9e2c748f9f28
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox UserCOMPONENT_BUGDB= utility/apache
efb0e886f18894a1d2489f1ad74ad14b579e11c7Mark Andrews
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsCONFIGURE_DEFAULT_DIRS=no
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinclude ../../make-rules/prep.mk
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox Userinclude ../../make-rules/configure.mk
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsinclude ../../make-rules/ips.mk
9ecb5d33470ebfb3719a1b8d56bcefdf4b27f7b2Tinderbox User
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark AndrewsPATCH_LEVEL=0
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsCONFIGURE_PREFIX=/usr/apr/1.3
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User
03ebc228ee3725738b067b6bd7082a9a731822a1Tinderbox UserCONFIGURE_OPTIONS += --enable-threads
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS += --enable-other-child
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox UserCONFIGURE_OPTIONS += --enable-nonportable-atomics
827f8cccb5280f4da66c46186e792d1cb9d73503Mark AndrewsCONFIGURE_OPTIONS += --enable-shared
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS += CFLAGS="$(CFLAGS) -DSSL_EXPERIMENTAL -DSSL_ENGINE"
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS += LTFLAGS="--tag=CC --silent"
3759f10fc543747668b1ca4b4671f35b0dea8445Francis DupontCONFIGURE_OPTIONS.32 += --enable-layout=OpenSolaris
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterCONFIGURE_OPTIONS.64 += --enable-layout=OpenSolaris-$(MACH64)
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCONFIGURE_OPTIONS.32 += --with-installbuilddir=$(CONFIGURE_PREFIX)/build
dc238a06bffa79de141ee7655765e2df91498a8aTinderbox UserCONFIGURE_OPTIONS.64 += --with-installbuilddir=$(CONFIGURE_PREFIX)/build/$(MACH64)
827f8cccb5280f4da66c46186e792d1cb9d73503Mark Andrews
aa9c561961e9d877946ebaa8795fa2be054ab7bfEvan HuntCOMPONENT_TEST_TARGETS= test
710bce1a85c96e85ca1a90471382055acd29d51fTinderbox User
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater# We need this to keep doxygen happy (for include/ and docs/ contents).
3759f10fc543747668b1ca4b4671f35b0dea8445Francis DupontCOMPONENT_PRE_CONFIGURE_ACTION += ($(CLONEY) $(SOURCE_DIR) $(@D));
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# Some patches need configure script recreation.
cdfc81e048bd34c1d628380247bda6b80a89e20eAutomatic UpdaterCOMPONENT_PRE_CONFIGURE_ACTION += (cd $(@D); autoconf);
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt# 32 and 64 bits apr.h headers need to be merged to the final one.
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsAPRH=include/apr.h
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews$(BUILD_DIR_64)/.installed: COMPONENT_POST_INSTALL_ACTION = \
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic Updater /usr/bin/diff -D __$(MACH64) $(BUILD_DIR_32)/$(APRH) \
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews $(BUILD_DIR_64)/$(APRH) > $(PROTO_DIR)/$(CONFIGURE_PREFIX)/$(APRH); true
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt# Documentation is generated in and directly packaged from 32 bit build
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrews# directory using doxygen.
9513a2a6670951f5cf5477fcfec9f933fcaff628Automatic UpdaterPKG_PROTO_DIRS += $(BUILD_DIR_32)/docs/dox/html
0eb371ca0dab50ae3462e98794a6126198c52f4bMark AndrewsPKG_PROTO_DIRS += $(BUILD_DIR_32)/docs/dox/html/search
eabc9c3c07cd956d3c436bd7614cb162dabdda76Mark Andrews
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsdocs: $(BUILD_DIR_32)/.built
e813f036c8251b6d9d2a72fa84f80c2c9d2795afMark Andrews cd $(BUILD_DIR_32); doxygen docs/doxygen.conf
30370d905e9be3be7d9b947fd432bacecbb13bb9Evan Hunt
0eb371ca0dab50ae3462e98794a6126198c52f4bMark Andrewsbuild: $(BUILD_32_and_64) docs
015055b6e23f5c08f6a5b34726f90b62597e9e45Tinderbox User
03ebc228ee3725738b067b6bd7082a9a731822a1Tinderbox Userinstall: $(INSTALL_32_and_64)
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark Andrews
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark Andrewstest: $(TEST_32_and_64)
b91d11bfcc30b96f2c80f3a76d12e3dcc8597a68Mark Andrews
fec6e13f2d1e69fe1c2b8fac36f732f124cf5398Mark AndrewsBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt
2ae159b376dac23870d8005563c585acf85a4b5aEvan Huntinclude ../../make-rules/depend.mk
2ae159b376dac23870d8005563c585acf85a4b5aEvan Hunt