pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/databases/openldap-client Implement builtin detection ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c78ce8cce513
branches:  trunk
changeset: 548272:c78ce8cce513
user:      ahoka <ahoka%pkgsrc.org@localhost>
date:      Sun Oct 12 20:49:19 2008 +0000

description:
Implement builtin detection for openldap client.
Tested on NetBSD 4.99.72.

diffstat:

 databases/openldap-client/builtin.mk |  15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)

diffs (19 lines):

diff -r 371b939841fd -r c78ce8cce513 databases/openldap-client/builtin.mk
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/databases/openldap-client/builtin.mk      Sun Oct 12 20:49:19 2008 +0000
@@ -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"



Home | Main Index | Thread Index | Old Index