summaryrefslogtreecommitdiff
path: root/databases/openldap-client
diff options
context:
space:
mode:
authorahoka <ahoka>2008-10-12 20:49:19 +0000
committerahoka <ahoka>2008-10-12 20:49:19 +0000
commitdab7b645472848afb580815c2ca7a2d183665df0 (patch)
treed6ec577e2af772590511e2dec1ed0afe78371baf /databases/openldap-client
parent0c8591fab03e98d28fb1d5ace208fc3f08d2f73a (diff)
downloadpkgsrc-dab7b645472848afb580815c2ca7a2d183665df0.tar.gz
Implement builtin detection for openldap client.
Tested on NetBSD 4.99.72.
Diffstat (limited to 'databases/openldap-client')
-rw-r--r--databases/openldap-client/builtin.mk15
1 files changed, 15 insertions, 0 deletions
diff --git a/databases/openldap-client/builtin.mk b/databases/openldap-client/builtin.mk
new file mode 100644
index 00000000000..3b53cb6ac7b
--- /dev/null
+++ b/databases/openldap-client/builtin.mk
@@ -0,0 +1,15 @@
+# $NetBSD: builtin.mk,v 1.1 2008/10/12 20:49:19 ahoka Exp $
+
+BUILTIN_PKG:= openldap-client
+
+PKGCONFIG_FILE.openldap-client= /usr/include/ldap_features.h
+PKGCONFIG_BASE.openldap-client= /usr
+
+BUILTIN_VERSION_SCRIPT.openldap-client= ${AWK} \
+ '/\#define[ \t]*_?LDAP_VENDOR_VERSION_MAJOR[ \t]/ { major = $$3; } \
+ /\#define[ \t]*_?LDAP_VENDOR_VERSION_MINOR[ \t]/ { minor = $$3; } \
+ /\#define[ \t]*_?LDAP_VENDOR_VERSION_PATCH[ \t]/ { patch = $$3; } \
+ END { if (major && minor && patch) print major "." minor "." patch; \
+ else print ""; }'
+
+.include "../../mk/buildlink3/pkgconfig-builtin.mk"