From fa0f5bbf794013baccd505eda42fdc60e987b0b8 Mon Sep 17 00:00:00 2001 From: Andrey Slusar Date: Fri, 10 Feb 2006 11:35:02 +0000 Subject: [PATCH] Add WITH_LDAP - build xemacs with ldap support. --- editors/xemacs-devel-mule/Makefile | 12 ++++++++++-- editors/xemacs-devel-mule/pkg-plist | 1 + editors/xemacs-devel-mule/pkg-plist.arch-dep | 1 + 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/editors/xemacs-devel-mule/Makefile b/editors/xemacs-devel-mule/Makefile index 2b2cb56629b9..c6217f79e1ee 100644 --- a/editors/xemacs-devel-mule/Makefile +++ b/editors/xemacs-devel-mule/Makefile @@ -64,7 +64,6 @@ CONFIGURE_ARGS= --enable-mule \ --enable-sound=native \ --with-site-lisp \ --with-pop \ - --with-ldap=no \ --with-infopath=${LOCALBASE}/lib/xemacs/info:${LOCALBASE}/info:${X11BASE}/info:/usr/info:${LOCALBASE}/lib/texmf/doc/info:/usr/lib/texmf/doc:/usr/share/info \ --enable-clash-detection \ --enable-database=berkdb \ @@ -162,7 +161,6 @@ CONFIGURE_ARGS+=--with-athena=xaw .if exists(${LOCALBASE}/include/libpq-fe.h) WITH_PGSQL= yes .endif - .if defined(WITH_PGSQL) USE_PGSQL= yes PLIST_SUB+= WITH_PGSQL="" @@ -170,6 +168,16 @@ PLIST_SUB+= WITH_PGSQL="" PLIST_SUB+= WITH_PGSQL="@comment " .endif +.if exists(${LOCALBASE}/include/ldap.h) +WITH_LDAP= yes +.endif +.if defined(WITH_LDAP) +USE_OPENLDAP= yes +PLIST_SUB+= WITH_LDAP="" +.else +PLIST_SUB+= WITH_LDAP="@comment " +.endif + BINNAMEEXT= -mule .if defined(CANNA) && defined(FREEWNN) CONFIGURE_ARGS+= --with-canna --with-wnn --with-wnn6=no diff --git a/editors/xemacs-devel-mule/pkg-plist b/editors/xemacs-devel-mule/pkg-plist index acad3206728e..84bdc42c686e 100644 --- a/editors/xemacs-devel-mule/pkg-plist +++ b/editors/xemacs-devel-mule/pkg-plist @@ -847,6 +847,7 @@ lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/mmencode lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/modules/auto-autoloads.el lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/modules/auto-autoloads.elc %%WITH_PGSQL%%lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/modules/postgresql.ell +%%WITH_LDAP%%lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/modules/eldap.ell %%CANNA%%lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/modules/canna_api.ell lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/movemail lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/profile diff --git a/editors/xemacs-devel-mule/pkg-plist.arch-dep b/editors/xemacs-devel-mule/pkg-plist.arch-dep index 9d817ea16c1e..379068611b7a 100644 --- a/editors/xemacs-devel-mule/pkg-plist.arch-dep +++ b/editors/xemacs-devel-mule/pkg-plist.arch-dep @@ -396,6 +396,7 @@ lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/mmencode lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/modules/auto-autoloads.el lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/modules/auto-autoloads.elc %%WITH_PGSQL%%lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/modules/postgresql.ell +%%WITH_LDAP%%lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/modules/eldap.ell %%CANNA%%lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/modules/canna_api.ell lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/movemail lib/xemacs-%%XEMACS_VER%%/%%XEMACS_ARCH%%/profile