Makefile revision 3477
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER START
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# The contents of this file are subject to the terms of the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Common Development and Distribution License (the "License").
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You may not use this file except in compliance with the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# or http://www.opensolaris.org/os/licensing.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# See the License for the specific language governing permissions
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# and limitations under the License.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# When distributing Covered Code, include this CDDL HEADER in each
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# If applicable, add the following below this CDDL HEADER, with the
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# fields enclosed by brackets "[]" replaced with your own identifying
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# information: Portions Copyright [yyyy] [name of copyright owner]
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# CDDL HEADER END
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte#
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../make-rules/shared-macros.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_NAME= openldap
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_VERSION= 2.4.30
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PROJECT_URL= http://www.openldap.org/
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_HASH= \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sha256:fc013e528616f8578d9f221409c48af9b8937a62005e0bec88f6f1c4c8ff3d81
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_URL= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$(COMPONENT_ARCHIVE)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_BUGDB= service/openldap
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteTPNO= 5295
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSDFVER= sdf-2.001
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteSDFBLIB= $(BUILD_DIR_32)/${SDFVER}/blib
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_1= $(SDFVER).tar.gz
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_HASH_1= \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte sha256:6f9bcdc884a9f450208c740e45effdfeb7e65c689f57b05d3c15208193a8a6ea
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_ARCHIVE_URL_1= ftp://ftp.eenet.ee/pub/cpan/authors/id/I/IA/IANC/$(COMPONENT_ARCHIVE_1)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../make-rules/prep.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../make-rules/configure.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forteinclude ../../make-rules/ips.mk
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PRE_CONFIGURE_ACTION = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte ($(CLONEY) $(SOURCE_DIR) $(@D))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCOMPONENT_PRE_BUILD_ACTION = \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte (cd $(BUILD_DIR_32); \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte gzip -dc ../../$(SDFVER).tar.gz | tar xopf -; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte cd $(SDFVER); $(PERL) Makefile.PL; \
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte $(GMAKE))
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte# we need to enable large file support and build PIC for our shared libraries
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCFLAGS += $(CPP_LARGEFILES) $(CC_PIC) $(studio_NORUNPATH)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_ENV += "ac_cv_lib_net_main=no"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_ENV += "ac_cv_lib_net_socket==no"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_ENV += "ac_cv_lib_inet_socket==no"
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn Forte
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --sysconfdir=/etc
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS.32 += --libexecdir=/usr/lib
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS.64 += --libexecdir=/usr/lib/$(MACH64)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --localstatedir=/var/openldap
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/openldap
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --disable-static
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --enable-overlays
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --disable-dynamic
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_OPTIONS += --enable-crypt
fcf3ce441efd61da9bb2884968af01cb7c1452ccJohn ForteCONFIGURE_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
# 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)
BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
include ../../make-rules/depend.mk