Makefile revision 1258
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews#
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# CDDL HEADER START
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User#
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# The contents of this file are subject to the terms of the
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# Common Development and Distribution License (the "License").
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User# You may not use this file except in compliance with the License.
5347c0fcb04eaea19d9f39795646239f487c6207Tinderbox User#
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
d6fa26d0adaec6c910115be34fe7a5a5f402c14fMark Andrews# or http://www.opensolaris.org/os/licensing.
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# See the License for the specific language governing permissions
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# and limitations under the License.
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont#
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# When distributing Covered Code, include this CDDL HEADER in each
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User# If applicable, add the following below this CDDL HEADER, with the
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# fields enclosed by brackets "[]" replaced with your own identifying
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# information: Portions Copyright [yyyy] [name of copyright owner]
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# CDDL HEADER END
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User#
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupontinclude ../../make-rules/shared-macros.mk
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_NAME= openldap
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_VERSION= 2.4.30
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_PROJECT_URL= http://www.openldap.org/
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_ARCHIVE_HASH= \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User sha256:fc013e528616f8578d9f221409c48af9b8937a62005e0bec88f6f1c4c8ff3d81
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_ARCHIVE_URL= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$(COMPONENT_ARCHIVE)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_BUGDB= service/openldap
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSDFVER= sdf-2.001
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserSDFBLIB= $(BUILD_DIR_32)/${SDFVER}/blib
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_ARCHIVE_1= $(SDFVER).tar.gz
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_ARCHIVE_HASH_1= \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User sha256:6f9bcdc884a9f450208c740e45effdfeb7e65c689f57b05d3c15208193a8a6ea
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox UserCOMPONENT_ARCHIVE_URL_1= ftp://ftp.eenet.ee/pub/cpan/authors/id/I/IA/IANC/$(COMPONENT_ARCHIVE_1)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox Userinclude ../../make-rules/prep.mk
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupontinclude ../../make-rules/configure.mk
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupontinclude ../../make-rules/ips.mk
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox UserCOMPONENT_PRE_CONFIGURE_ACTION = \
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User ($(CLONEY) $(SOURCE_DIR) $(@D))
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_PRE_BUILD_ACTION = \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User (cd $(BUILD_DIR_32); \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User gzip -dc ../../$(SDFVER).tar.gz | tar xopf -; \
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User cd $(SDFVER); $(PERL) Makefile.PL; \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(GMAKE))
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# we need to enable large file support and build PIC for our shared libraries
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCFLAGS += $(CPP_LARGEFILES) $(CC_PIC) $(studio_NORUNPATH)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_ENV += "ac_cv_lib_net_main=no"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_ENV += "ac_cv_lib_net_socket==no"
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCONFIGURE_ENV += "ac_cv_lib_inet_socket==no"
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --sysconfdir=/etc
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCONFIGURE_OPTIONS.32 += --libexecdir=/usr/lib
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCONFIGURE_OPTIONS.64 += --libexecdir=/usr/lib/$(MACH64)
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCONFIGURE_OPTIONS += --localstatedir=/var/openldap
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/openldap
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCONFIGURE_OPTIONS += --disable-static
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --enable-overlays
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --disable-dynamic
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCONFIGURE_OPTIONS += --enable-crypt
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCONFIGURE_OPTIONS += --enable-shared
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --enable-bdb
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --enable-hdb
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCONFIGURE_OPTIONS += --enable-null
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --enable-passwd
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --enable-shell
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCONFIGURE_OPTIONS += --with-cyrus-sasl
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --with-threads
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCONFIGURE_OPTIONS += --with-tls=openssl
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserPROTOULD = $(PROTOUSRLIBDIR)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox UserCOMPONENT_TEST_ENV += LD_LIBRARY_PATH="$(PROTOULD):$(PROTOULD)/$(MACH64):"
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis DupontCOMPONENT_TEST_ARGS += -e
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User# common targets
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupontbuild: $(BUILD_32_and_64)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User (cd $(BUILD_DIR_32)/doc/guide/admin; \
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html guide.sdf; \
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html index.sdf)
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userinstall: $(INSTALL_32_and_64)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
b091b4bb803b830d2d5a9e71b6648b669655d7dcFrancis Dupont# build does this always
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Usertest: $(TEST_32_and_64)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
33d0a7767d53cb366039fd0ac4f63cf8a9c351b0Tinderbox UserBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox Userinclude ../../make-rules/depend.mk
7911e6f9de303bca5a3d8b34f4330c8f7cecffaeTinderbox User