Makefile revision 5680
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updater# CDDL HEADER START
75c0816e8295e180f4bc7f10db3d0d880383bc1cMark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# The contents of this file are subject to the terms of the
4a14ce5ba00ab7bc55c99ffdcf59c7a4ab902721Automatic Updater# Common Development and Distribution License (the "License").
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You may not use this file except in compliance with the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# or http://www.opensolaris.org/os/licensing.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# See the License for the specific language governing permissions
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# and limitations under the License.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# When distributing Covered Code, include this CDDL HEADER in each
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# If applicable, add the following below this CDDL HEADER, with the
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# fields enclosed by brackets "[]" replaced with your own identifying
8a8d38eb8e5f853835df2f6799ce0d3d7ecf8be6Automatic Updater# information: Portions Copyright [yyyy] [name of copyright owner]
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# CDDL HEADER END
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
e21a2904f02a03fa06b6db04d348f65fe9c67b2bMark Andrews#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein#
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Prefer 32-bit over 64-bit as apr-util has its own custom package layout.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinBUILD_BITS= 32_and_64
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude ../../make-rules/shared-macros.mk
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_NAME= apr-util
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsCOMPONENT_VERSION= 1.5.4
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_PROJECT_URL= http://apr.apache.org/
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_HASH= \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sha256:976a12a59bc286d634a21d7be0841cc74289ea9077aa1af46be19d1a6e844c19
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_BUGDB= utility/apache
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinTPNO= 20776
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_DEFAULT_DIRS=no
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeininclude $(WS_MAKE_RULES)/common.mk
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Micro version for easy libraries packaging
71c66a876ecca77923638d3f94cc0783152b2f03Mark AndrewsMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinPKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinPATCH_LEVEL=0
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_PREFIX=$(USRDIR)/apr-util/1.5
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic UpdaterCONFIGURE_OPTIONS += --with-mysql=$(USRDIR)/mysql/5.5
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --with-expat=$(USRDIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --with-sqlite3=$(USRDIR)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --with-ldap=ldap_r-2.4
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic UpdaterCONFIGURE_OPTIONS += --with-ldap-include=$(USRINCDIR)/openldap
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS += --without-odbc
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS.32 += --enable-layout=Solaris
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic UpdaterCONFIGURE_OPTIONS.64 += --enable-layout=Solaris-$(MACH64)
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS.32 += --with-apr=$(USRDIR)/apr/1.5/bin/apr-1-config
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCONFIGURE_OPTIONS.64 += --with-apr=$(USRDIR)/apr/1.5/bin/$(MACH64)/apr-1-config
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic UpdaterCONFIGURE_OPTIONS.32 += MYSQL_CONFIG=$(USRDIR)/mysql/5.5/bin/$(MACH32)/mysql_config
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updater
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austeinifeq ($(strip $(PARFAIT_BUILD)),yes)
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic UpdaterPATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updaterelse
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic UpdaterPATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updaterendif
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic UpdaterCOMPONENT_TEST_TARGETS= test
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updater
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updater$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updater cd $(SOURCE_DIR); \
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein sed 's;OUTPUT_DIRECTORY=.*;OUTPUT_DIRECTORY=$(PROTO_DIR)$(CONFIGURE_PREFIX);' \
dcfda24abf565c442d058cbf81b2180d847a1b3eAutomatic Updater docs/doxygen.conf | doxygen - ;
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein# Some patches need configure script recreation.
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinCOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fi);
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob Austein
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinASLR_MODE = $(ASLR_NOT_APPLICABLE)
a1ad6695ed6f988406cf155aa26376f84f73bcb9Automatic Updater
79cf9524b15ca65f55fd6913e6cf01b5581c588aAutomatic UpdaterREQUIRED_PACKAGES += database/mysql-55
a1ad6695ed6f988406cf155aa26376f84f73bcb9Automatic UpdaterREQUIRED_PACKAGES += database/mysql-55/library
44d0f0256fbdce130a18655023c3b06bacacbd61Automatic UpdaterREQUIRED_PACKAGES += database/sqlite-3
79cf9524b15ca65f55fd6913e6cf01b5581c588aAutomatic UpdaterREQUIRED_PACKAGES += developer/documentation-tool/doxygen
2895f101b5585a19015ac2c2c1e1812ac467fa12Automatic UpdaterREQUIRED_PACKAGES += library/apr-15
79cf9524b15ca65f55fd6913e6cf01b5581c588aAutomatic UpdaterREQUIRED_PACKAGES += library/expat
44d0f0256fbdce130a18655023c3b06bacacbd61Automatic UpdaterREQUIRED_PACKAGES += library/openldap
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinREQUIRED_PACKAGES += shell/ksh93
60e5e10f8d2e2b0c41e8abad38cacd867caa6ab2Rob AusteinREQUIRED_PACKAGES += system/library/math
79cf9524b15ca65f55fd6913e6cf01b5581c588aAutomatic Updater