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