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