gamin: disable python support
[unleashed-userland.git] / components / openldap / Makefile
blob57039a435078d15b0327c1b6e436aa40428a18d2
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
28 include ../../make-rules/shared-macros.mk
30 COMPONENT_NAME= openldap
31 COMPONENT_VERSION= 2.4.42
32 COMPONENT_PROJECT_URL= http://www.openldap.org/
33 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
34 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tgz
35 COMPONENT_ARCHIVE_HASH= \
36 sha256:eeb7b0e2c5852bfd2650e83909bb6152835c0b862fab10b63954dc1bcbba8e63
37 COMPONENT_ARCHIVE_URL= ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/$(COMPONENT_ARCHIVE)
38 COMPONENT_BUGDB= service/openldap
40 SDFVER= sdf-2.001
41 SDFBLIB= $(BUILD_DIR_32)/${SDFVER}/blib
43 COMPONENT_ARCHIVE_1= $(SDFVER).tar.gz
44 COMPONENT_ARCHIVE_HASH_1= \
45 sha256:6f9bcdc884a9f450208c740e45effdfeb7e65c689f57b05d3c15208193a8a6ea
46 COMPONENT_ARCHIVE_URL_1= ftp://ftp.eenet.ee/pub/cpan/authors/id/I/IA/IANC/$(COMPONENT_ARCHIVE_1)
49 include ../../make-rules/prep.mk
50 include ../../make-rules/configure.mk
51 include ../../make-rules/ips.mk
54 COMPONENT_PRE_CONFIGURE_ACTION = \
55 ($(CLONEY) $(SOURCE_DIR) $(@D))
57 COMPONENT_PRE_BUILD_ACTION = \
58 ( $(CP) $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE_1) $(BUILD_DIR_32); \
59 cd $(BUILD_DIR_32); \
60 gzip -dc $(COMPONENT_ARCHIVE_1) | tar xopf -; \
61 rm $(COMPONENT_ARCHIVE_1); \
62 cd $(SDFVER); $(PERL) Makefile.PL; \
63 $(GMAKE))
65 # we need to enable large file support and build PIC for our shared libraries
66 CFLAGS += $(CPP_LARGEFILES) $(CC_PIC)
68 CONFIGURE_ENV += "ac_cv_lib_net_main=no"
69 CONFIGURE_ENV += "ac_cv_lib_net_socket==no"
70 CONFIGURE_ENV += "ac_cv_lib_inet_socket==no"
72 CONFIGURE_OPTIONS += --sysconfdir=/etc
73 CONFIGURE_OPTIONS.32 += --libexecdir=/usr/lib
74 CONFIGURE_OPTIONS.64 += --libexecdir=/usr/lib/$(MACH64)
75 CONFIGURE_OPTIONS += --localstatedir=/var/openldap
76 CONFIGURE_OPTIONS += --includedir=$(USRINCDIR)/openldap
77 CONFIGURE_OPTIONS += --docdir=$(USRSHAREDOCDIR)
78 CONFIGURE_OPTIONS += --disable-static
79 CONFIGURE_OPTIONS += --enable-overlays
80 CONFIGURE_OPTIONS += --disable-dynamic
81 CONFIGURE_OPTIONS += --enable-crypt
82 CONFIGURE_OPTIONS += --enable-shared
83 CONFIGURE_OPTIONS += --enable-bdb
84 CONFIGURE_OPTIONS += --enable-hdb
85 CONFIGURE_OPTIONS += --enable-null
86 CONFIGURE_OPTIONS += --enable-ldap
87 CONFIGURE_OPTIONS += --enable-passwd
88 CONFIGURE_OPTIONS += --enable-shell
89 CONFIGURE_OPTIONS += --with-cyrus-sasl
90 CONFIGURE_OPTIONS += --with-threads
91 CONFIGURE_OPTIONS += --with-tls=openssl
93 PROTOULD = $(PROTOUSRLIBDIR)
94 COMPONENT_TEST_ENV += LD_LIBRARY_PATH="$(PROTOULD):$(PROTOULD)/$(MACH64):"
95 COMPONENT_TEST_ARGS += -e
97 $(INSTALL_32): COMPONENT_POST_INSTALL_ACTION = \
98 for f in $(PROTOUSRBINDIR)/ldap* $(PROTOUSRLIBDIR)/slapd ; do \
99 /usr/bin/elfedit -e "dyn:runpath ''" $$f; \
100 done ; \
102 $(INSTALL_64): COMPONENT_POST_INSTALL_ACTION = \
103 for f in $(PROTOUSRBINDIR64)/ldap* $(PROTOUSRLIBDIR64)/slapd ; do \
104 /usr/bin/elfedit -e "dyn:runpath ''" $$f; \
105 done ; \
107 # common targets
108 build: $(BUILD_32_and_64)
109 (cd $(BUILD_DIR_32)/doc/guide/admin; \
110 $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html guide.sdf; \
111 $(PERL) -I$(SDFBLIB)/lib $(SDFBLIB)/script/sdf -2html index.sdf)
113 install: $(INSTALL_32_and_64)
115 # build does this always
116 test: $(TEST_32_and_64)
119 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS)
121 include ../../make-rules/depend.mk