Makefile revision 5087
4117N/A#
4117N/A# CDDL HEADER START
4117N/A#
4117N/A# The contents of this file are subject to the terms of the
4117N/A# Common Development and Distribution License (the "License").
4117N/A# You may not use this file except in compliance with the License.
4117N/A#
4117N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
4117N/A# or http://www.opensolaris.org/os/licensing.
4117N/A# See the License for the specific language governing permissions
4117N/A# and limitations under the License.
4117N/A#
4117N/A# When distributing Covered Code, include this CDDL HEADER in each
4117N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
4117N/A# If applicable, add the following below this CDDL HEADER, with the
4117N/A# fields enclosed by brackets "[]" replaced with your own identifying
4117N/A# information: Portions Copyright [yyyy] [name of copyright owner]
4117N/A#
4117N/A# CDDL HEADER END
4117N/A#
4117N/A
4117N/A#
4117N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
4117N/A#
4117N/A
4117N/A
4117N/A
4117N/Ainclude ../../make-rules/shared-macros.mk
4117N/A
4117N/ACOMPONENT_NAME= openldap
4117N/ACOMPONENT_VERSION= 2.4.30
4117N/ACOMPONENT_PROJECT_URL= http://www.openldap.org/
4117N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
4117N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
4117N/ACOMPONENT_ARCHIVE_HASH= \
4117N/A sha256:fc013e528616f8578d9f221409c48af9b8937a62005e0bec88f6f1c4c8ff3d81
4117N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$(COMPONENT_ARCHIVE)
4117N/ACOMPONENT_BUGDB= service/openldap
4117N/A
4117N/ATPNO= 5295
4117N/A
4156N/ASDFVER= sdf-2.001
4156N/ASDFBLIB= $(BUILD_DIR_32)/${SDFVER}/blib
4156N/A
4156N/ACOMPONENT_ARCHIVE_1= $(SDFVER).tar.gz
4156N/ACOMPONENT_ARCHIVE_HASH_1= \
4156N/A sha256:6f9bcdc884a9f450208c740e45effdfeb7e65c689f57b05d3c15208193a8a6ea
4156N/ACOMPONENT_ARCHIVE_URL_1= ftp://ftp.eenet.ee/pub/cpan/authors/id/I/IA/IANC/$(COMPONENT_ARCHIVE_1)
4156N/A
4156N/A
4156N/Ainclude $(WS_MAKE_RULES)/prep.mk
4156N/Ainclude $(WS_MAKE_RULES)/configure.mk
4156N/A
4117N/A# This depends on libsasl which cannot be installed on S11.
4117N/Aifeq ($(BUILD_TYPE), evaluation)
4117N/APUBLISH_STAMP=
4117N/Aendif
4117N/A
4117N/Ainclude $(WS_MAKE_RULES)/ips.mk
4117N/A
4117N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
4117N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
4117N/A
4117N/ACOMPONENT_PRE_BUILD_ACTION = \
4117N/A (cd $(BUILD_DIR_32); \
4117N/A gzip -dc ../../$(SDFVER).tar.gz | tar xopf -; \
4117N/A cd $(SDFVER); $(PERL) Makefile.PL; \
4117N/A $(GMAKE))
4117N/A
4117N/A# we need to enable large file support and build PIC for our shared libraries
4117N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC) $(studio_NORUNPATH)
4117N/A
4117N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
4117N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
4117N/ACONFIGURE_ENV += "ac_cv_lib_net_main=no"
4117N/ACONFIGURE_ENV += "ac_cv_lib_net_socket==no"
4117N/ACONFIGURE_ENV += "ac_cv_lib_inet_socket==no"
4745N/A
4745N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
4117N/ACONFIGURE_OPTIONS.32 += --libexecdir=/usr/lib
4117N/ACONFIGURE_OPTIONS.64 += --libexecdir=/usr/lib/$(MACH64)
4117N/ACONFIGURE_OPTIONS += --localstatedir=/var/openldap
4117N/ACONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/openldap
4117N/ACONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)
4117N/ACONFIGURE_OPTIONS += --disable-static
4117N/ACONFIGURE_OPTIONS += --enable-overlays
4117N/ACONFIGURE_OPTIONS += --enable-dynamic
4117N/ACONFIGURE_OPTIONS += --enable-crypt
4117N/ACONFIGURE_OPTIONS += --enable-shared
4745N/ACONFIGURE_OPTIONS += --enable-bdb
4745N/ACONFIGURE_OPTIONS += --enable-hdb
4745N/ACONFIGURE_OPTIONS += --enable-null
4745N/ACONFIGURE_OPTIONS += --enable-passwd
4745N/ACONFIGURE_OPTIONS += --enable-shell
4117N/ACONFIGURE_OPTIONS += --enable-ldap
4117N/ACONFIGURE_OPTIONS += --with-cyrus-sasl
4745N/ACONFIGURE_OPTIONS += --with-threads
4745N/ACONFIGURE_OPTIONS += --with-tls=openssl
4745N/A
4745N/APROTOULD = $(PROTOUSRLIBDIR)
4745N/ACOMPONENT_TEST_ENV += LD_LIBRARY_PATH="$(PROTOULD):$(PROTOULD)/$(MACH64):"
4117N/ACOMPONENT_TEST_ARGS += -e
4117N/A
4117N/A# Enable ASLR for this component
4117N/AASLR_MODE = $(ASLR_ENABLE)
4117N/A
4117N/A#
4117N/A# OpenLDAP must be built with cyrus-sasl out of the gate instead of the
4117N/A# installed copy.
4117N/A#
4117N/ACYRUS_SASL_ROOT = $(WS_COMPONENTS)/cyrus-sasl/build/prototype/$(MACH)
4117N/ALDFLAGS.32 +="-L$(CYRUS_SASL_ROOT)/usr/lib"
4117N/ALDFLAGS.64 +="-L$(CYRUS_SASL_ROOT)/usr/lib/$(MACH64)"
4117N/ALDFLAGS +=$(LDFLAGS.$(BITS))
4117N/ACPPFLAGS +="-I$(CYRUS_SASL_ROOT)/usr/include"
4117N/ACONFIGURE_ENV += CPPFLAGS="$(CPPFLAGS)"
4117N/ACONFIGURE_ENV += LDFLAGS="$(LDFLAGS)"
4156N/A# make sure that we don't add the cyrus-sasl proto area to the RUNPATH
4156N/ALD_UNSET.32="-R$(CYRUS_SASL_ROOT)/usr/lib"
4156N/ALD_UNSET.64="-R$(CYRUS_SASL_ROOT)/usr/lib/$(MACH64)"
4156N/ALD_UNSET += $(LD_UNSET.$(BITS))
4156N/ACOMPONENT_BUILD_ENV += LD_UNSET="$(LD_UNSET)"
4156N/ACOMPONENT_INSTALL_ENV += LD_UNSET="$(LD_UNSET)"
4745N/A
4117N/A# special targets due to dependency on cyrus-sasl
4745N/A../cyrus-sasl/build/%/.installed:
4337N/A (cd ../cyrus-sasl && $(GMAKE) install)
4117N/A
4117N/A$(CONFIGURE_32): ../cyrus-sasl/build/$(MACH32)/.installed
4117N/A$(CONFIGURE_64): ../cyrus-sasl/build/$(MACH64)/.installed
4117N/A
4117N/A# common targets
configure: $(CONFIGURE_32_and_64)
build: $(BUILD_32_and_64)
(cd $(BUILD_DIR_32)/doc/guide/admin; \
$(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html guide.sdf; \
$(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html index.sdf)
install: $(INSTALL_32_and_64)
# build does this always
test: $(TEST_32_and_64)
system-test: $(SYSTEM_TESTS_NOT_IMPLEMENTED)
REQUIRED_PACKAGES += database/berkeleydb-5
REQUIRED_PACKAGES += library/security/openssl
REQUIRED_PACKAGES += shell/ksh93
REQUIRED_PACKAGES += system/core-os
REQUIRED_PACKAGES += system/library
REQUIRED_PACKAGES += system/library/security/libsasl
REQUIRED_PACKAGES += system/network
REQUIRED_PACKAGES += text/groff/groff-core