Makefile revision 3817
2247N/A#
2247N/A# CDDL HEADER START
2247N/A#
2247N/A# The contents of this file are subject to the terms of the
2247N/A# Common Development and Distribution License (the "License").
2247N/A# You may not use this file except in compliance with the License.
2247N/A#
2247N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2247N/A# or http://www.opensolaris.org/os/licensing.
2247N/A# See the License for the specific language governing permissions
2247N/A# and limitations under the License.
2247N/A#
2247N/A# When distributing Covered Code, include this CDDL HEADER in each
2247N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
2247N/A# If applicable, add the following below this CDDL HEADER, with the
2247N/A# fields enclosed by brackets "[]" replaced with your own identifying
2247N/A# information: Portions Copyright [yyyy] [name of copyright owner]
2247N/A#
2247N/A# CDDL HEADER END
2247N/A#
2276N/A
2247N/A#
2247N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
2247N/A#
2247N/A
2588N/A
2276N/A
2276N/Ainclude ../../make-rules/shared-macros.mk
2276N/A
2276N/ACOMPONENT_NAME= openldap
2276N/ACOMPONENT_VERSION= 2.4.30
2276N/ACOMPONENT_PROJECT_URL= http://www.openldap.org/
2588N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
2276N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
2276N/ACOMPONENT_ARCHIVE_HASH= \
2247N/A sha256:fc013e528616f8578d9f221409c48af9b8937a62005e0bec88f6f1c4c8ff3d81
2588N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$(COMPONENT_ARCHIVE)
2247N/ACOMPONENT_BUGDB= service/openldap
2247N/A
2247N/ATPNO= 5295
2247N/A
2247N/ASDFVER= sdf-2.001
2247N/ASDFBLIB= $(BUILD_DIR_32)/${SDFVER}/blib
2247N/A
2247N/ACOMPONENT_ARCHIVE_1= $(SDFVER).tar.gz
2247N/ACOMPONENT_ARCHIVE_HASH_1= \
2247N/A sha256:6f9bcdc884a9f450208c740e45effdfeb7e65c689f57b05d3c15208193a8a6ea
2738N/ACOMPONENT_ARCHIVE_URL_1= ftp://ftp.eenet.ee/pub/cpan/authors/id/I/IA/IANC/$(COMPONENT_ARCHIVE_1)
2247N/A
2247N/A
2247N/Ainclude $(WS_MAKE_RULES)/prep.mk
2247N/Ainclude $(WS_MAKE_RULES)/configure.mk
2247N/Ainclude $(WS_MAKE_RULES)/ips.mk
2247N/A
2247N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
2247N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
2247N/A
2247N/ACOMPONENT_PRE_BUILD_ACTION = \
2247N/A (cd $(BUILD_DIR_32); \
2247N/A gzip -dc ../../$(SDFVER).tar.gz | tar xopf -; \
2247N/A cd $(SDFVER); $(PERL) Makefile.PL; \
2247N/A $(GMAKE))
2247N/A
2247N/A# we need to enable large file support and build PIC for our shared libraries
2247N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC) $(studio_NORUNPATH)
2588N/A
2247N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
2247N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
2247N/ACONFIGURE_ENV += "ac_cv_lib_net_main=no"
2247N/ACONFIGURE_ENV += "ac_cv_lib_net_socket==no"
2738N/ACONFIGURE_ENV += "ac_cv_lib_inet_socket==no"
2738N/A
2738N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
2738N/ACONFIGURE_OPTIONS.32 += --libexecdir=/usr/lib
2738N/ACONFIGURE_OPTIONS.64 += --libexecdir=/usr/lib/$(MACH64)
2738N/ACONFIGURE_OPTIONS += --localstatedir=/var/openldap
2247N/ACONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/openldap
2247N/ACONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)
2247N/ACONFIGURE_OPTIONS += --disable-static
2247N/ACONFIGURE_OPTIONS += --enable-overlays
2247N/ACONFIGURE_OPTIONS += --disable-dynamic
2247N/ACONFIGURE_OPTIONS += --enable-crypt
2247N/ACONFIGURE_OPTIONS += --enable-shared
2247N/ACONFIGURE_OPTIONS += --enable-bdb
2247N/ACONFIGURE_OPTIONS += --enable-hdb
2247N/ACONFIGURE_OPTIONS += --enable-null
2247N/ACONFIGURE_OPTIONS += --enable-passwd
2247N/ACONFIGURE_OPTIONS += --enable-shell
CONFIGURE_OPTIONS += --with-cyrus-sasl
CONFIGURE_OPTIONS += --with-threads
CONFIGURE_OPTIONS += --with-tls=openssl
PROTOULD = $(PROTOUSRLIBDIR)
COMPONENT_TEST_ENV += LD_LIBRARY_PATH="$(PROTOULD):$(PROTOULD)/$(MACH64):"
COMPONENT_TEST_ARGS += -e
# Enable ASLR for this component
ASLR_MODE = $(ASLR_ENABLE)
# 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)
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