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