summaryrefslogtreecommitdiffstats
path: root/devel
diff options
context:
space:
mode:
authorahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-05-27 03:58:33 +0800
committerahze <ahze@df743ca5-7f9a-e211-a948-0013205c9059>2005-05-27 03:58:33 +0800
commit348ce6e6aaf6db2f6f49963395f3347f0f41352a (patch)
tree149b21eeab10153731be8a6abf41a948513e0422 /devel
parent24914dc29f32dbe8bb1e5cce8599d8bbec5af9cb (diff)
downloadmarcuscom-ports-348ce6e6aaf6db2f6f49963395f3347f0f41352a.tar.gz
marcuscom-ports-348ce6e6aaf6db2f6f49963395f3347f0f41352a.tar.zst
marcuscom-ports-348ce6e6aaf6db2f6f49963395f3347f0f41352a.zip
- Add new knob, WITH_LDAP, off by default
- Also fixes plist ldap isn't found. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@4020 df743ca5-7f9a-e211-a948-0013205c9059
Diffstat (limited to 'devel')
-rw-r--r--devel/gconf2/Makefile16
-rw-r--r--devel/gconf2/pkg-plist6
2 files changed, 19 insertions, 3 deletions
diff --git a/devel/gconf2/Makefile b/devel/gconf2/Makefile
index 400b4552b..d314467d8 100644
--- a/devel/gconf2/Makefile
+++ b/devel/gconf2/Makefile
@@ -32,4 +32,20 @@ MAN1= gconftool-2.1
.include <bsd.port.pre.mk>
+.if defined(WITH_LDAP) || exists(${LOCALBASE}/include/ldap.h)
+USE_OPENLDAP= yes
+
+PLIST_SUB+= LDAP=""
+.else
+PLIST_SUB+= LDAP="@comment "
+.endif
+
+pre-everything::
+.if !defined(WITH_LDAP)
+ @${ECHO_MSG}
+ @${ECHO_MSG} "You can enable ldap support by defining"
+ @${ECHO_MSG} "WITH_LDAP"
+ @${ECHO_MSG}
+.endif
+
.include <bsd.port.post.mk>
diff --git a/devel/gconf2/pkg-plist b/devel/gconf2/pkg-plist
index f15e207bc..c17985e71 100644
--- a/devel/gconf2/pkg-plist
+++ b/devel/gconf2/pkg-plist
@@ -1,6 +1,6 @@
bin/gconf-merge-tree
bin/gconftool-2
-etc/gconf/2/evoldap.conf
+%%LDAP%%etc/gconf/2/evoldap.conf
etc/gconf/2/path
include/gconf/2/gconf/gconf-changeset.h
include/gconf/2/gconf/gconf-client.h
@@ -11,7 +11,7 @@ include/gconf/2/gconf/gconf-listeners.h
include/gconf/2/gconf/gconf-schema.h
include/gconf/2/gconf/gconf-value.h
include/gconf/2/gconf/gconf.h
-lib/GConf/2/libgconfbackend-evoldap.so
+%%LDAP%%lib/GConf/2/libgconfbackend-evoldap.so
lib/GConf/2/libgconfbackend-oldxml.so
lib/GConf/2/libgconfbackend-xml.so
lib/libgconf-2.a
@@ -20,7 +20,7 @@ lib/libgconf-2.so.5
libdata/pkgconfig/gconf-2.0.pc
libexec/gconf-sanity-check-2
libexec/gconfd-2
-share/GConf/schema/evoldap.schema
+%%LDAP%%share/GConf/schema/evoldap.schema
share/aclocal/gconf-2.m4
share/doc/gconf/ch01.html
share/doc/gconf/gconf-GConfClient.html