Makefile revision 4385
0N/A#
3261N/A# CDDL HEADER START
0N/A#
0N/A# The contents of this file are subject to the terms of the
0N/A# Common Development and Distribution License (the "License").
0N/A# You may not use this file except in compliance with the License.
2362N/A#
0N/A# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
2362N/A# or http://www.opensolaris.org/os/licensing.
0N/A# See the License for the specific language governing permissions
0N/A# and limitations under the License.
0N/A#
0N/A# When distributing Covered Code, include this CDDL HEADER in each
0N/A# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
0N/A# If applicable, add the following below this CDDL HEADER, with the
0N/A# fields enclosed by brackets "[]" replaced with your own identifying
0N/A# information: Portions Copyright [yyyy] [name of copyright owner]
0N/A#
0N/A# CDDL HEADER END
0N/A#
2362N/A
2362N/A#
2362N/A# Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
0N/A#
0N/A
0N/A
2080N/A
0N/Ainclude ../../make-rules/shared-macros.mk
0N/A
0N/ACOMPONENT_NAME= openldap
0N/ACOMPONENT_VERSION= 2.4.30
0N/ACOMPONENT_PROJECT_URL= http://www.openldap.org/
0N/ACOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
0N/ACOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
0N/ACOMPONENT_ARCHIVE_HASH= \
0N/A sha256:fc013e528616f8578d9f221409c48af9b8937a62005e0bec88f6f1c4c8ff3d81
0N/ACOMPONENT_ARCHIVE_URL= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$(COMPONENT_ARCHIVE)
0N/ACOMPONENT_BUGDB= service/openldap
0N/A
0N/ATPNO= 5295
0N/A
0N/ASDFVER= sdf-2.001
0N/ASDFBLIB= $(BUILD_DIR_32)/${SDFVER}/blib
0N/A
0N/ACOMPONENT_ARCHIVE_1= $(SDFVER).tar.gz
0N/ACOMPONENT_ARCHIVE_HASH_1= \
0N/A sha256:6f9bcdc884a9f450208c740e45effdfeb7e65c689f57b05d3c15208193a8a6ea
0N/ACOMPONENT_ARCHIVE_URL_1= ftp://ftp.eenet.ee/pub/cpan/authors/id/I/IA/IANC/$(COMPONENT_ARCHIVE_1)
0N/A
0N/A
0N/Ainclude $(WS_MAKE_RULES)/prep.mk
2370N/Ainclude $(WS_MAKE_RULES)/configure.mk
2370N/Ainclude $(WS_MAKE_RULES)/ips.mk
2370N/A
2370N/A
2370N/ACOMPONENT_PRE_CONFIGURE_ACTION = \
0N/A ($(CLONEY) $(SOURCE_DIR) $(@D))
0N/A
0N/ACOMPONENT_PRE_BUILD_ACTION = \
0N/A (cd $(BUILD_DIR_32); \
0N/A gzip -dc ../../$(SDFVER).tar.gz | tar xopf -; \
0N/A cd $(SDFVER); $(PERL) Makefile.PL; \
0N/A $(GMAKE))
0N/A
0N/A# we need to enable large file support and build PIC for our shared libraries
0N/ACFLAGS += $(CPP_LARGEFILES) $(CC_PIC) $(studio_NORUNPATH)
0N/A
0N/ACONFIGURE_ENV += CFLAGS="$(CFLAGS)"
0N/ACONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
0N/ACONFIGURE_ENV += "ac_cv_lib_net_main=no"
0N/ACONFIGURE_ENV += "ac_cv_lib_net_socket==no"
0N/ACONFIGURE_ENV += "ac_cv_lib_inet_socket==no"
0N/A
0N/ACONFIGURE_OPTIONS += --sysconfdir=/etc
0N/ACONFIGURE_OPTIONS.32 += --libexecdir=/usr/lib
0N/ACONFIGURE_OPTIONS.64 += --libexecdir=/usr/lib/$(MACH64)
0N/ACONFIGURE_OPTIONS += --localstatedir=/var/openldap
0N/ACONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/openldap
0N/ACONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)
0N/ACONFIGURE_OPTIONS += --disable-static
0N/ACONFIGURE_OPTIONS += --enable-overlays
0N/ACONFIGURE_OPTIONS += --disable-dynamic
0N/ACONFIGURE_OPTIONS += --enable-crypt
0N/ACONFIGURE_OPTIONS += --enable-shared
0N/ACONFIGURE_OPTIONS += --enable-bdb
0N/ACONFIGURE_OPTIONS += --enable-hdb
0N/ACONFIGURE_OPTIONS += --enable-null
1066N/ACONFIGURE_OPTIONS += --enable-passwd
0N/ACONFIGURE_OPTIONS += --enable-shell
0N/ACONFIGURE_OPTIONS += --with-cyrus-sasl
0N/ACONFIGURE_OPTIONS += --with-threads
0N/ACONFIGURE_OPTIONS += --with-tls=openssl
0N/A
0N/APROTOULD = $(PROTOUSRLIBDIR)
0N/ACOMPONENT_TEST_ENV += LD_LIBRARY_PATH="$(PROTOULD):$(PROTOULD)/$(MACH64):"
2370N/ACOMPONENT_TEST_ARGS += -e
0N/A
0N/A# Enable ASLR for this component
0N/AASLR_MODE = $(ASLR_ENABLE)
0N/A
0N/A# common targets
0N/Abuild: $(BUILD_32_and_64)
0N/A (cd $(BUILD_DIR_32)/doc/guide/admin; \
0N/A $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html guide.sdf; \
0N/A $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html index.sdf)
0N/A
0N/Ainstall: $(INSTALL_32_and_64)
0N/A
0N/A# build does this always
0N/Atest: $(TEST_32_and_64)
0N/A
0N/A
0N/A
0N/AREQUIRED_PACKAGES += database/berkeleydb-5
0N/AREQUIRED_PACKAGES += library/security/openssl
0N/AREQUIRED_PACKAGES += shell/ksh93
0N/AREQUIRED_PACKAGES += system/core-os
0N/AREQUIRED_PACKAGES += system/library
0N/AREQUIRED_PACKAGES += system/library/security/libsasl
0N/AREQUIRED_PACKAGES += system/network
0N/A