Makefile revision 3661
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# CDDL HEADER START
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# The contents of this file are subject to the terms of the
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# Common Development and Distribution License (the "License").
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# You may not use this file except in compliance with the License.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# or http://www.opensolaris.org/os/licensing.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# See the License for the specific language governing permissions
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# and limitations under the License.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# When distributing Covered Code, include this CDDL HEADER in each
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# If applicable, add the following below this CDDL HEADER, with the
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# fields enclosed by brackets "[]" replaced with your own identifying
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# information: Portions Copyright [yyyy] [name of copyright owner]
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# CDDL HEADER END
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw#
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwinclude ../../make-rules/shared-macros.mk
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_NAME= openldap
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_VERSION= 2.4.30
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_PROJECT_URL= http://www.openldap.org/
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_ARCHIVE_HASH= \
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw sha256:fc013e528616f8578d9f221409c48af9b8937a62005e0bec88f6f1c4c8ff3d81
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_ARCHIVE_URL= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$(COMPONENT_ARCHIVE)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_BUGDB= service/openldap
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwTPNO= 5295
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwSDFVER= sdf-2.001
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwSDFBLIB= $(BUILD_DIR_32)/${SDFVER}/blib
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_ARCHIVE_1= $(SDFVER).tar.gz
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_ARCHIVE_HASH_1= \
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw sha256:6f9bcdc884a9f450208c740e45effdfeb7e65c689f57b05d3c15208193a8a6ea
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_ARCHIVE_URL_1= ftp://ftp.eenet.ee/pub/cpan/authors/id/I/IA/IANC/$(COMPONENT_ARCHIVE_1)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwinclude ../../make-rules/prep.mk
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwinclude ../../make-rules/configure.mk
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwinclude ../../make-rules/ips.mk
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_PRE_CONFIGURE_ACTION = \
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw ($(CLONEY) $(SOURCE_DIR) $(@D))
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_PRE_BUILD_ACTION = \
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw (cd $(BUILD_DIR_32); \
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw gzip -dc ../../$(SDFVER).tar.gz | tar xopf -; \
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw cd $(SDFVER); $(PERL) Makefile.PL; \
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw $(GMAKE))
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# we need to enable large file support and build PIC for our shared libraries
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCFLAGS += $(CPP_LARGEFILES) $(CC_PIC) $(studio_NORUNPATH)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_ENV += "ac_cv_lib_net_main=no"
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_ENV += "ac_cv_lib_net_socket==no"
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_ENV += "ac_cv_lib_inet_socket==no"
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --sysconfdir=/etc
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS.32 += --libexecdir=/usr/lib
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS.64 += --libexecdir=/usr/lib/$(MACH64)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --localstatedir=/var/openldap
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/openldap
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --disable-static
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --enable-overlays
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --disable-dynamic
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --enable-crypt
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --enable-shared
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --enable-bdb
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --enable-hdb
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --enable-null
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --enable-passwd
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --enable-shell
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --with-cyrus-sasl
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --with-threads
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCONFIGURE_OPTIONS += --with-tls=openssl
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwPROTOULD = $(PROTOUSRLIBDIR)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_TEST_ENV += LD_LIBRARY_PATH="$(PROTOULD):$(PROTOULD)/$(MACH64):"
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwCOMPONENT_TEST_ARGS += -e
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# common targets
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwbuild: $(BUILD_32_and_64)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw (cd $(BUILD_DIR_32)/doc/guide/admin; \
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html guide.sdf; \
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html index.sdf)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwinstall: $(INSTALL_32_and_64)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw# build does this always
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwtest: $(TEST_32_and_64)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xwinclude ../../make-rules/depend.mk
d39a76e7b087a3d0927cbe6898dc0a6770fa6c68xw