components/samba/samba/Makefile
changeset 4109 b8f324d4e07c
parent 3858 39f3c7ed68ae
child 4272 842ee8dc3530
equal deleted inserted replaced
4108:9738d7207050 4109:b8f324d4e07c
    49 COMPONENT_ARCHIVE_1=		$(COMPONENT_SRC_1).tar.bz2
    49 COMPONENT_ARCHIVE_1=		$(COMPONENT_SRC_1).tar.bz2
    50 COMPONENT_ARCHIVE_HASH_1=	\
    50 COMPONENT_ARCHIVE_HASH_1=	\
    51     sha256:d6bdfd76f672c810299c71443e5127431ffb87d2c79d818aee72c86eaccd312c
    51     sha256:d6bdfd76f672c810299c71443e5127431ffb87d2c79d818aee72c86eaccd312c
    52 COMPONENT_ARCHIVE_URL_1=	http://sourceforge.net/projects/docbook/files/$(COMPONENT_NAME_1)/$(COMPONENT_VERSION_1)/$(COMPONENT_ARCHIVE_1)
    52 COMPONENT_ARCHIVE_URL_1=	http://sourceforge.net/projects/docbook/files/$(COMPONENT_NAME_1)/$(COMPONENT_VERSION_1)/$(COMPONENT_ARCHIVE_1)
    53 
    53 
    54 COMPONENT_ARCHIVE_2=		libsam-LGPL.tar
       
    55 COMPONENT_ARCHIVE_HASH_2=	\
       
    56     sha256:4324f2c4a9ba94f1165c5922f166636621681b09d635257d921f6df654e7191e
       
    57 COMPONENT_ARCHIVE_URL_2=	http://hub.opensolaris.org/bin/download/Project+samqfs/files/libsam%2DLGPL.tar
       
    58 
       
    59 include $(WS_MAKE_RULES)/prep.mk
    54 include $(WS_MAKE_RULES)/prep.mk
    60 
    55 
    61 SRC_OFFSET =	source3
    56 SRC_OFFSET =	source3
    62 # Now we override paths to .built
    57 # Now we override paths to .built
    63 BUILD_DIR_32 = $(BUILD_DIR)/$(MACH32)/$(SRC_OFFSET)
    58 BUILD_DIR_32 = $(BUILD_DIR)/$(MACH32)/$(SRC_OFFSET)
   111 	( cd $(@D) ; $(CONFIG_SHELL) autogen.sh )
   106 	( cd $(@D) ; $(CONFIG_SHELL) autogen.sh )
   112 
   107 
   113 COMPONENT_PRE_BUILD_ACTION = $(ENV) ; echo $(COMPONENT_BUILD_ENV)
   108 COMPONENT_PRE_BUILD_ACTION = $(ENV) ; echo $(COMPONENT_BUILD_ENV)
   114 
   109 
   115 # Depend on $(PROTO_DIR)/.mozldap because this target creates $(PROTO_DIR).
   110 # Depend on $(PROTO_DIR)/.mozldap because this target creates $(PROTO_DIR).
   116 $(PROTO_DIR)/opt/SUNWsamfs/lib/libsam.so: Solaris/libsam.c \
   111 $(PROTO_DIR)/opt/SUNWsamfs/lib/libsam.so: Solaris/libsam.c $(PROTO_DIR)/.mozldap
   117 		$(COMPONENT_ARCHIVE_2) $(PROTO_DIR)/.mozldap
       
   118 	$(MKDIR) $(PROTO_DIR)/opt/SUNWsamfs/lib
   112 	$(MKDIR) $(PROTO_DIR)/opt/SUNWsamfs/lib
   119 	$(CC.studio.32) -G $(studio_PIC) -hlibsam.so Solaris/libsam.c \
   113 	$(CC.studio.32) -G $(studio_PIC) -hlibsam.so Solaris/libsam.c \
       
   114 		-I$(COMPONENT_DIR)/Solaris/include \
   120 		-o $(PROTO_DIR)/opt/SUNWsamfs/lib/libsam.so
   115 		-o $(PROTO_DIR)/opt/SUNWsamfs/lib/libsam.so
   121 	cd $(BUILD_DIR) ; $(UNPACK) $(UNPACK_ARGS) ../$(COMPONENT_ARCHIVE_2)
       
   122 
   116 
   123 CFLAGS.studio	+=	$(studio_C99_ENABLE)
   117 CFLAGS.studio	+=	$(studio_C99_ENABLE)
   124 CFLAGS.gcc	+=	-std=c99
   118 CFLAGS.gcc	+=	-std=c99
   125 CFLAGS.gcc3	+=	-std=c99
   119 CFLAGS.gcc3	+=	-std=c99
   126 
   120 
   176 CONFIGURE_OPTIONS +=	--with-pam
   170 CONFIGURE_OPTIONS +=	--with-pam
   177 CONFIGURE_OPTIONS +=	--with-winbind
   171 CONFIGURE_OPTIONS +=	--with-winbind
   178 
   172 
   179 CONFIGURE_OPTIONS += 	LD="$(LD)"
   173 CONFIGURE_OPTIONS += 	LD="$(LD)"
   180 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
   174 CONFIGURE_OPTIONS +=	CFLAGS="$(CFLAGS)"
   181 CONFIGURE_OPTIONS.32 +=	CPPFLAGS="$(CPPFLAGS) -I$(BUILD_DIR)/libsam-LGPL/include"
   175 CONFIGURE_OPTIONS.32 +=	CPPFLAGS="$(CPPFLAGS) -I$(COMPONENT_DIR)/Solaris/include"
   182 CONFIGURE_OPTIONS.64 +=	CPPFLAGS="$(CPPFLAGS)"
   176 CONFIGURE_OPTIONS.64 +=	CPPFLAGS="$(CPPFLAGS)"
   183 CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"
   177 CONFIGURE_OPTIONS +=	LDFLAGS="$(LDFLAGS)"
   184 CONFIGURE_OPTIONS.32 +=	LIBS="$(LIBS) $(LIBS32)"
   178 CONFIGURE_OPTIONS.32 +=	LIBS="$(LIBS) $(LIBS32)"
   185 CONFIGURE_OPTIONS.64 +=	LIBS="$(LIBS)"
   179 CONFIGURE_OPTIONS.64 +=	LIBS="$(LIBS)"
   186 CONFIGURE_OPTIONS +=	LDAP_LIBS="-lldap60 -lssldap60"
   180 CONFIGURE_OPTIONS +=	LDAP_LIBS="-lldap60 -lssldap60"