Makefile revision 1914
689023771c563d8660e45d439a207e06e96de28fMark Andrews#
39f68d7b64dce25e19f7132f6c46b3beabeed492Tinderbox User# CDDL HEADER START
689023771c563d8660e45d439a207e06e96de28fMark Andrews#
ec5347e2c775f027573ce5648b910361aa926c01Automatic Updater# The contents of this file are subject to the terms of the
689023771c563d8660e45d439a207e06e96de28fMark Andrews# Common Development and Distribution License (the "License").
689023771c563d8660e45d439a207e06e96de28fMark Andrews# You may not use this file except in compliance with the License.
689023771c563d8660e45d439a207e06e96de28fMark Andrews#
689023771c563d8660e45d439a207e06e96de28fMark Andrews# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
689023771c563d8660e45d439a207e06e96de28fMark Andrews# or http://www.opensolaris.org/os/licensing.
689023771c563d8660e45d439a207e06e96de28fMark Andrews# See the License for the specific language governing permissions
689023771c563d8660e45d439a207e06e96de28fMark Andrews# and limitations under the License.
689023771c563d8660e45d439a207e06e96de28fMark Andrews#
689023771c563d8660e45d439a207e06e96de28fMark Andrews# When distributing Covered Code, include this CDDL HEADER in each
689023771c563d8660e45d439a207e06e96de28fMark Andrews# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
689023771c563d8660e45d439a207e06e96de28fMark Andrews# If applicable, add the following below this CDDL HEADER, with the
2eeb74d1cf5355dd98f6d507a10086e16bb08c4bTinderbox User# fields enclosed by brackets "[]" replaced with your own identifying
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# information: Portions Copyright [yyyy] [name of copyright owner]
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# CDDL HEADER END
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
689023771c563d8660e45d439a207e06e96de28fMark Andrews#
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt#
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark Andrewsinclude ../../make-rules/shared-macros.mk
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_NAME= openldap
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_VERSION= 2.4.30
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_PROJECT_URL= http://www.openldap.org/
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
2637d30fbd235fe98145f4312b10cc41a13bf7dcJeremy C. ReedCOMPONENT_ARCHIVE_HASH= \
689023771c563d8660e45d439a207e06e96de28fMark Andrews sha256:fc013e528616f8578d9f221409c48af9b8937a62005e0bec88f6f1c4c8ff3d81
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_ARCHIVE_URL= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$(COMPONENT_ARCHIVE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_BUGDB= service/openldap
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinSDFVER= sdf-2.001
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinSDFBLIB= $(BUILD_DIR_32)/${SDFVER}/blib
acb4f5236966c2b680b949c1eda826948b24fc23Mark Andrews
c1a883f2e04d94e99c433b1f6cfd0c0338f4ed85Mark AndrewsCOMPONENT_ARCHIVE_1= $(SDFVER).tar.gz
1da14e066c23245c255dedb311d5a9cf0e5bb667Automatic UpdaterCOMPONENT_ARCHIVE_HASH_1= \
15bbb8a1298a61e401ba16c944dc06049abb81bfAutomatic Updater sha256:6f9bcdc884a9f450208c740e45effdfeb7e65c689f57b05d3c15208193a8a6ea
515c7f3c43f76d7b439905b18009105364b36100Automatic UpdaterCOMPONENT_ARCHIVE_URL_1= ftp://ftp.eenet.ee/pub/cpan/authors/id/I/IA/IANC/$(COMPONENT_ARCHIVE_1)
93235c1cba839a88013063ff8c440849d95dd222Automatic Updater
3b398443f0dca316ba7a6e057ba2d1b8ab4ddf70Tinderbox User
43b94483957d3168796a816ed86cf097518817dcTinderbox Userinclude ../../make-rules/prep.mk
869a7fe8e0eb29a55f5e73dc8ba73a668df412ebTinderbox Userinclude ../../make-rules/configure.mk
39f68d7b64dce25e19f7132f6c46b3beabeed492Tinderbox Userinclude ../../make-rules/ips.mk
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCOMPONENT_PRE_CONFIGURE_ACTION = \
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein ($(CLONEY) $(SOURCE_DIR) $(@D))
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_PRE_BUILD_ACTION = \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt (cd $(BUILD_DIR_32); \
689023771c563d8660e45d439a207e06e96de28fMark Andrews gzip -dc ../../$(SDFVER).tar.gz | tar xopf -; \
689023771c563d8660e45d439a207e06e96de28fMark Andrews cd $(SDFVER); $(PERL) Makefile.PL; \
689023771c563d8660e45d439a207e06e96de28fMark Andrews $(GMAKE))
689023771c563d8660e45d439a207e06e96de28fMark Andrews
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# we need to enable large file support and build PIC for our shared libraries
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark AndrewsCFLAGS += $(CPP_LARGEFILES) $(CC_PIC) $(studio_NORUNPATH)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_ENV += CFLAGS="$(CFLAGS)"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_ENV += PKG_CONFIG_PATH="$(PKG_CONFIG_PATH)"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_ENV += "ac_cv_lib_net_main=no"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_ENV += "ac_cv_lib_net_socket==no"
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_ENV += "ac_cv_lib_inet_socket==no"
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --sysconfdir=/etc
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS.32 += --libexecdir=/usr/lib
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS.64 += --libexecdir=/usr/lib/$(MACH64)
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --localstatedir=/var/openldap
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/openldap
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --disable-static
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --enable-overlays
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --disable-dynamic
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --enable-crypt
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --enable-shared
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --enable-bdb
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark AndrewsCONFIGURE_OPTIONS += --enable-hdb
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --enable-null
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --enable-passwd
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --enable-shell
268a4475065fe6a8cd7cc707820982cf5e98f430Rob AusteinCONFIGURE_OPTIONS += --with-cyrus-sasl
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCONFIGURE_OPTIONS += --with-threads
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCONFIGURE_OPTIONS += --with-tls=openssl
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark AndrewsPROTOULD = $(PROTOUSRLIBDIR)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntCOMPONENT_TEST_ENV += LD_LIBRARY_PATH="$(PROTOULD):$(PROTOULD)/$(MACH64):"
689023771c563d8660e45d439a207e06e96de28fMark AndrewsCOMPONENT_TEST_ARGS += -e
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark Andrews# Enable ASLR for this component
689023771c563d8660e45d439a207e06e96de28fMark AndrewsASLR_MODE = $(ASLR_ENABLE)
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austein
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt# common targets
689023771c563d8660e45d439a207e06e96de28fMark Andrewsbuild: $(BUILD_32_and_64)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt (cd $(BUILD_DIR_32)/doc/guide/admin; \
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html guide.sdf; \
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html index.sdf)
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark Andrewsinstall: $(INSTALL_32_and_64)
689023771c563d8660e45d439a207e06e96de28fMark Andrews
689023771c563d8660e45d439a207e06e96de28fMark Andrews# build does this always
268a4475065fe6a8cd7cc707820982cf5e98f430Rob Austeintest: $(TEST_32_and_64)
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Hunt
689023771c563d8660e45d439a207e06e96de28fMark Andrews
14a656f94b1fd0ababd84a772228dfa52276ba15Evan HuntBUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
30eec077db2bdcb6f2a0dc388a3cdde2ede75ec1Mark Andrews
14a656f94b1fd0ababd84a772228dfa52276ba15Evan Huntinclude ../../make-rules/depend.mk
4844ed026a9b5a91044e76399cee80a6514cbf0dMark Andrews