Commit 1d40e0d2 authored by Olivier Duchateau's avatar Olivier Duchateau
Browse files

Avoid hard coding of ${LOCALBASE}

parent c5484586
......@@ -53,4 +53,8 @@ LDAP_DESC= LDAP keyserver support
LDAP_MESON_TRUE= ldap-support
LDAP_USE= OPENLDAP=yes
post-patch-LDAP-on:
${REINPLACE_CMD} -e 's|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/meson.build
.include <bsd.port.mk>
......@@ -29,8 +29,8 @@
if get_option('ldap-support')
- libldap = cc.find_library('ldap')
- liblber = cc.find_library('lber')
+ libldap = cc.find_library('ldap', dirs: '/usr/local/lib')
+ liblber = cc.find_library('lber', dirs: '/usr/local/lib')
+ libldap = cc.find_library('ldap', dirs: '%%LOCALBASE%%/lib')
+ liblber = cc.find_library('lber', dirs: '%%LOCALBASE%%/lib')
if not libldap.found()
error('Required library "ldap" not found (needed for LDAP support)')
elif not liblber.found()
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment