components/samba/mozldap/Makefile
branchs11u3-sru
changeset 7067 776b367d2e46
parent 7051 b5ccd506d4ab
child 7068 568b699564d4
equal deleted inserted replaced
7051:b5ccd506d4ab 7067:776b367d2e46
     1 #
       
     2 # CDDL HEADER START
       
     3 #
       
     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.
       
     7 #
       
     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.
       
    12 #
       
    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]
       
    18 #
       
    19 # CDDL HEADER END
       
    20 #
       
    21 
       
    22 #
       
    23 # Copyright (c) 2011, 2015, Oracle and/or its affiliates. All rights reserved.
       
    24 #
       
    25 include ../../../make-rules/shared-macros.mk
       
    26 
       
    27 COMPONENT_NAME=		mozldap
       
    28 COMPONENT_VERSION=	6.0.7
       
    29 COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
       
    30 COMPONENT_PROJECT_URL=	https://wiki.mozilla.org/LDAP_C_SDK/
       
    31 COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
       
    32 COMPONENT_ARCHIVE_HASH=	\
       
    33     sha256:ec9884b56b31961d287190323764af7f3b00ad2658d5f3005fa8dc71c637e54c
       
    34 COMPONENT_ARCHIVE_URL=	ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v$(COMPONENT_VERSION)/src/$(COMPONENT_ARCHIVE)
       
    35 
       
    36 include $(WS_MAKE_RULES)/prep.mk
       
    37 include $(WS_MAKE_RULES)/configure.mk
       
    38 
       
    39 # Define a private space
       
    40 PATCH_LEVEL =	0
       
    41 SRC_OFFSET =	c-sdk
       
    42 CONFIGURE_SCRIPT = $(SOURCE_DIR)/$(SRC_OFFSET)/configure
       
    43 
       
    44 RECENT_PERL =	/usr/perl5/5.12/bin/perl
       
    45 
       
    46 MPS_INCDIR =	$(USRINCDIR)/mps
       
    47 
       
    48 MPS_LIBDIR.32 =	$(USRLIBDIR)/mps
       
    49 MPS_LIBDIR.64 =	$(USRLIBDIR)/mps/$(MACH64)
       
    50 MPS_LIBDIR =	$(MPS_LIBDIR.$(BITS))
       
    51 
       
    52 CONFIGURE_OPTIONS += --sysconfdir=/etc/samba
       
    53 CONFIGURE_OPTIONS += --with-nss-inc=$(MPS_INCDIR)
       
    54 CONFIGURE_OPTIONS += --with-nspr-inc=$(MPS_INCDIR)
       
    55 CONFIGURE_OPTIONS += --enable-optimize
       
    56 CONFIGURE_OPTIONS += --with-native-threads
       
    57 CONFIGURE_OPTIONS += --enable-ipv6
       
    58 CONFIGURE_OPTIONS += --with-dist-prefix=$(PROTO_DIR)
       
    59 CONFIGURE_OPTIONS += --with-nss-lib=$(MPS_LIBDIR)
       
    60 CONFIGURE_OPTIONS += --with-nspr-lib=$(MPS_LIBDIR)
       
    61 CONFIGURE_OPTIONS += --with-dist-libdir=$(PROTO_DIR)/$(CONFIGURE_LIBDIR.$(BITS))
       
    62 CONFIGURE_OPTIONS += --with-rpath=$(MPS_LIBDIR)
       
    63 
       
    64 CONFIGURE_OPTIONS.64 += --enable-64bit
       
    65 
       
    66 CONFIGURE_OPTIONS += AR=/usr/ccs/bin/ar
       
    67 CONFIGURE_OPTIONS += PERL="$(RECENT_PERL)"
       
    68 CONFIGURE_OPTIONS += BUILD_OPT=1 NS_USE_GCC=0
       
    69 
       
    70 COMPONENT_PREP_ACTION = \
       
    71  ( cd $(SOURCE_DIR)/$(SRC_OFFSET) ; autoconf -f )
       
    72 
       
    73 # common targets
       
    74 build:		$(BUILD_32_and_64)
       
    75 
       
    76 # mozldap proto looks to ugly after "gmake install ..."
       
    77 # so some cleanup is needed
       
    78 COMPONENT_POST_INSTALL_ACTION = \
       
    79  $(RM) -r $(PROTOUSRINCDIR)/samba ; $(MKDIR) $(PROTOUSRINCDIR)/samba ; \
       
    80  test -d $(PROTOUSRINCDIR)/samba/ldap6 || $(MV) $(PROTO_DIR)/public/ldap $(PROTOUSRINCDIR)/samba/ldap6 ; \
       
    81  $(RM) -r $(PROTO_DIR)/public $(PROTO_DIR)/etc $(PROTOBINDIR) ; \
       
    82  $(RM) $(PROTOUSRLIBDIR)/*.a $(PROTOUSRLIBDIR64)/*.a
       
    83 
       
    84 install:	$(INSTALL_32_and_64)
       
    85 
       
    86 test:		$(NO_TESTS)
       
    87 
       
    88