2667N/A#
2667N/A# CDDL HEADER START
2667N/A#
2667N/A# The contents of this file are subject to the terms of the
2667N/A# Common Development and Distribution License (the "License").
2667N/A# You may not use this file except in compliance with the License.
2667N/A#
2667N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2667N/A# or http://www.opensolaris.org/os/licensing.
2667N/A# See the License for the specific language governing permissions
2667N/A# and limitations under the License.
2667N/A#
2667N/A# When distributing Covered Code, include this CDDL HEADER in each
2667N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2667N/A# If applicable, add the following below this CDDL HEADER, with the
2667N/A# fields enclosed by brackets "[]" replaced with your own identifying
2667N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2667N/A#
2667N/A# CDDL HEADER END
2667N/A#
5680N/A
5680N/A#
5680N/A# Copyright (c) 2014, 2016, Oracle and/or its affiliates. All rights reserved.
2667N/A#
5680N/A
5680N/A# Prefer 32-bit over 64-bit as apr-util has its own custom package layout.
5680N/ABUILD_BITS= 32_and_64
2667N/Ainclude ../../make-rules/shared-macros.mk
2667N/A
2667N/ACOMPONENT_NAME= apr-util
3554N/ACOMPONENT_VERSION= 1.5.4
2667N/ACOMPONENT_PROJECT_URL= http://apr.apache.org/
2667N/ACOMPONENT_ARCHIVE_HASH= \
3554N/A sha256:976a12a59bc286d634a21d7be0841cc74289ea9077aa1af46be19d1a6e844c19
2667N/ACOMPONENT_ARCHIVE_URL= http://archive.apache.org/dist/apr/$(COMPONENT_ARCHIVE)
2667N/ACOMPONENT_BUGDB= utility/apache
2667N/A
3554N/ATPNO= 20776
2899N/A
2667N/ACONFIGURE_DEFAULT_DIRS=no
5680N/Ainclude $(WS_MAKE_RULES)/common.mk
2667N/A
3554N/A# Micro version for easy libraries packaging
3554N/AMICRO_VERSION:= $(shell echo $(COMPONENT_VERSION) | awk -F. '{ print $$3 }')
3554N/APKG_MACROS+= MICRO_VERSION=$(MICRO_VERSION)
3554N/A
2667N/APATCH_LEVEL=0
2667N/A
5680N/ACONFIGURE_PREFIX=$(USRDIR)/apr-util/1.5
2667N/A
6545N/Aifeq ($(BUILD_TYPE), evaluation)
5680N/ACONFIGURE_OPTIONS += --with-mysql=$(USRDIR)/mysql/5.5
6545N/Aelse
6545N/ACONFIGURE_OPTIONS.64 += --with-mysql=$(USRDIR)/mysql/5.7
6545N/Aendif
5680N/ACONFIGURE_OPTIONS += --with-expat=$(USRDIR)
5680N/ACONFIGURE_OPTIONS += --with-sqlite3=$(USRDIR)
2667N/ACONFIGURE_OPTIONS += --with-ldap=ldap_r-2.4
5680N/ACONFIGURE_OPTIONS += --with-ldap-include=$(USRINCDIR)/openldap
2667N/ACONFIGURE_OPTIONS += --without-odbc
2667N/ACONFIGURE_OPTIONS.32 += --enable-layout=Solaris
2667N/ACONFIGURE_OPTIONS.64 += --enable-layout=Solaris-$(MACH64)
5680N/ACONFIGURE_OPTIONS.32 += --with-apr=$(USRDIR)/apr/1.5/bin/apr-1-config
5680N/ACONFIGURE_OPTIONS.64 += --with-apr=$(USRDIR)/apr/1.5/bin/$(MACH64)/apr-1-config
6545N/Aifeq ($(BUILD_TYPE), evaluation)
5680N/ACONFIGURE_OPTIONS.32 += MYSQL_CONFIG=$(USRDIR)/mysql/5.5/bin/$(MACH32)/mysql_config
6545N/Aendif
2667N/A
2667N/Aifeq ($(strip $(PARFAIT_BUILD)),yes)
5680N/APATH=$(PARFAIT_TOOLS):$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
5680N/Aelse
5680N/APATH=$(SPRO_VROOT)/bin:$(USRBINDIR):$(GNUBIN)
2667N/Aendif
2667N/A
2667N/ACOMPONENT_TEST_TARGETS= test
2667N/A
2667N/A$(INSTALL_64): COMPONENT_POST_INSTALL_ACTION += \
2667N/A cd $(SOURCE_DIR); \
2667N/A sed 's;OUTPUT_DIRECTORY=.*;OUTPUT_DIRECTORY=$(PROTO_DIR)$(CONFIGURE_PREFIX);' \
2667N/A docs/doxygen.conf | doxygen - ;
2667N/A
2667N/A# Some patches need configure script recreation.
5680N/ACOMPONENT_PREP_ACTION += (cd $(@D); autoreconf -fi);
2667N/A
2667N/AASLR_MODE = $(ASLR_NOT_APPLICABLE)
2667N/A
6545N/Aifeq ($(BUILD_TYPE), evaluation)
4941N/AREQUIRED_PACKAGES += database/mysql-55
3817N/AREQUIRED_PACKAGES += database/mysql-55/library
6545N/Aelse
6545N/AREQUIRED_PACKAGES += database/mysql-57
6545N/AREQUIRED_PACKAGES += database/mysql-57/library
6545N/Aendif
3817N/AREQUIRED_PACKAGES += database/sqlite-3
4941N/AREQUIRED_PACKAGES += developer/documentation-tool/doxygen
3817N/AREQUIRED_PACKAGES += library/apr-15
3817N/AREQUIRED_PACKAGES += library/expat
3817N/AREQUIRED_PACKAGES += library/openldap
3817N/AREQUIRED_PACKAGES += shell/ksh93
3817N/AREQUIRED_PACKAGES += system/library/math
6021N/AREQUIRED_PACKAGES += system/network/ldap/openldap