components/samba/mozldap/Makefile
author Jiri Sasek <jurasek@opensolaris.org>
Wed, 25 May 2011 18:33:43 +0200
changeset 264 84a67a54e8fd
child 609 775168282b2f
permissions -rw-r--r--
7044174 Move samba(s) and its dependencies to Userland. 7025146 Update samba to 3.5.8 (bugfix release) 7011577 Impossible to rename a file on a ZFS filesystem when installing 146364-01 (Samba 3.5.5) 7011579 Request to add shadow_copy2 in the next Samba patch or Solaris Samba package 7013885 User cannot delete a file on a share-se_access_check algorithmreturns access (2) denied 7010973 GPLv3 licensing issue with pkg:/library/samba/libsmbclient 7031097 Mozilla LDAP C-SDK (project private library for Samba) should be moved to Userland prior of Samba.

#
# CDDL HEADER START
#
# The contents of this file are subject to the terms of the
# Common Development and Distribution License (the "License").
# You may not use this file except in compliance with the License.
#
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
# or http://www.opensolaris.org/os/licensing.
# See the License for the specific language governing permissions
# and limitations under the License.
#
# When distributing Covered Code, include this CDDL HEADER in each
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
# If applicable, add the following below this CDDL HEADER, with the
# fields enclosed by brackets "[]" replaced with your own identifying
# information: Portions Copyright [yyyy] [name of copyright owner]
#
# CDDL HEADER END
#

#
# Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
#
include ../../../make-rules/shared-macros.mk

COMPONENT_NAME=		mozldap
COMPONENT_VERSION=	6.0.7
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
COMPONENT_PROJECT_URL=	https://wiki.mozilla.org/LDAP_C_SDK
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
COMPONENT_ARCHIVE_HASH=	sha1:6ddf73fe45b9b916423c06aaf46fe58680b4e02f
COMPONENT_ARCHIVE_URL=	ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v$(COMPONENT_VERSION)/src/$(COMPONENT_ARCHIVE)

include ../../../make-rules/prep.mk
include ../../../make-rules/configure.mk

# Define a private space
PATCH_LEVEL =	0
SRC_OFFSET =	c-sdk
CONFIGURE_SCRIPT = $(SOURCE_DIR)/$(SRC_OFFSET)/configure

RECENT_PERL =	/usr/perl5/5.12/bin/perl

MPS_INCDIR =	$(USRINCDIR)/mps

MPS_LIBDIR.32 =	$(USRLIBDIR)/mps
MPS_LIBDIR.64 =	$(USRLIBDIR)/mps/$(MACH64)
MPS_LIBDIR =	$(MPS_LIBDIR.$(BITS))

CONFIGURE_OPTIONS += --sysconfdir=/etc/samba
CONFIGURE_OPTIONS += --with-nss-inc=$(MPS_INCDIR)
CONFIGURE_OPTIONS += --with-nspr-inc=$(MPS_INCDIR)
CONFIGURE_OPTIONS += --enable-optimize
CONFIGURE_OPTIONS += --with-native-threads
CONFIGURE_OPTIONS += --enable-ipv6
CONFIGURE_OPTIONS += --with-dist-prefix=$(PROTO_DIR)
CONFIGURE_OPTIONS += --with-nss-lib=$(MPS_LIBDIR)
CONFIGURE_OPTIONS += --with-nspr-lib=$(MPS_LIBDIR)
CONFIGURE_OPTIONS += --with-dist-libdir=$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS))
CONFIGURE_OPTIONS += --with-rpath=$(MPS_LIBDIR)

CONFIGURE_OPTIONS.64 += --enable-64bit

CONFIGURE_OPTIONS += AR=/usr/ccs/bin/ar
CONFIGURE_OPTIONS += PERL="$(RECENT_PERL)"
CONFIGURE_OPTIONS += BUILD_OPT=1 NS_USE_GCC=0

COMPONENT_PREP_ACTION = \
 ( cd $(SOURCE_DIR)/$(SRC_OFFSET) ; autoconf -f )

# common targets
build:		$(BUILD_32_and_64)

include ../../../make-rules/shared-targets.mk

# mozldap proto looks to ugly after "gmake install ..."
# so some cleanup is needed
COMPONENT_POST_INSTALL_ACTION = \
 $(RM) -r $(PROTOUSRINCDIR)/samba ; $(MKDIR) $(PROTOUSRINCDIR)/samba ; \
 test -d $(PROTOUSRINCDIR)/samba/ldap6 || $(MV) $(PROTO_DIR)/public/ldap $(PROTOUSRINCDIR)/samba/ldap6 ; \
 $(RM) -r $(PROTO_DIR)/public $(PROTO_DIR)/etc $(PROTOBINDIR) ; \
 $(RM) $(PROTOUSRLIBDIR)/*.a $(PROTOUSRLIBDIR64)/*.a

install:	$(INSTALL_32_and_64)

test:		$(NO_TESTS)

BUILD_PKG_DEPENDENCIES =	$(BUILD_TOOLS)

include ../../../make-rules/depend.mk