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