summaryrefslogtreecommitdiffstats
path: root/devel/gconf2/Makefile
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/gconf2/Makefile
parent24914dc29f32dbe8bb1e5cce8599d8bbec5af9cb (diff)
downloadmarcuscom-ports-348ce6e6aaf6db2f6f49963395f3347f0f41352a.tar
marcuscom-ports-348ce6e6aaf6db2f6f49963395f3347f0f41352a.tar.gz
marcuscom-ports-348ce6e6aaf6db2f6f49963395f3347f0f41352a.tar.bz2
marcuscom-ports-348ce6e6aaf6db2f6f49963395f3347f0f41352a.tar.lz
marcuscom-ports-348ce6e6aaf6db2f6f49963395f3347f0f41352a.tar.xz
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/gconf2/Makefile')
-rw-r--r--devel/gconf2/Makefile16
1 files changed, 16 insertions, 0 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>