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