Permalink
Browse files

makekit changes derived from trunk

(openldap: r58956)
  • Loading branch information...
1 parent 64323a1 commit dfc57b38a08756c8d3c3864162d7afedaae1eb8f Scott Salley committed with gitsync May 4, 2011
Showing with 55 additions and 2 deletions.
  1. +55 −2 openldap/MakeKitBuild
View
@@ -1,8 +1,61 @@
make()
{
+ LDAP_HEADERS="\
+ ldap_cdefs.h \
+ lber_types.h \
+ lber.h \
+ slapi-plugin.h \
+ ldap.h \
+ ldap_utf8.h \
+ ldap_features.h \
+ ldap_schema.h"
+
+ # OpenLDAP likes weird library names, so
+ # the versioned library files are specified
+ # manually
+ LDAP_LIBS="ldap ldap_r lber"
+
+ case "$MK_OS" in
+ freebsd)
+ LDAP_EXTRA_TARGETS="\
+ ${MK_LIBDIR}/libldap-2.4${MK_LIB_EXT}.6 \
+ ${MK_LIBDIR}/liblber-2.4${MK_LIB_EXT}.6 \
+ ${MK_LIBDIR}/libldap_r-2.4${MK_LIB_EXT}.6 \
+ ${MK_BINDIR}/ldapsearch"
+ ;;
+ hpux)
+ LDAP_EXTRA_TARGETS="\
+ ${MK_LIBDIR}/libldap-2.4${MK_LIB_EXT}.6.2 \
+ ${MK_LIBDIR}/liblber-2.4${MK_LIB_EXT}.6.2 \
+ ${MK_LIBDIR}/libldap_r-2.4${MK_LIB_EXT}.6.2 \
+ ${MK_LIBDIR}/libldap-2.4${MK_LIB_EXT}.6 \
+ ${MK_LIBDIR}/liblber-2.4${MK_LIB_EXT}.6 \
+ ${MK_LIBDIR}/libldap_r-2.4${MK_LIB_EXT}.6 \
+ ${MK_BINDIR}/ldapsearch"
+ ;;
+ darwin)
+ LDAP_EXTRA_TARGETS="\
+ ${MK_LIBDIR}/libldap-2.4.2${MK_LIB_EXT} \
+ ${MK_LIBDIR}/liblber-2.4.2${MK_LIB_EXT} \
+ ${MK_LIBDIR}/libldap_r-2.4.2${MK_LIB_EXT} \
+ ${MK_BINDIR}/ldapsearch"
+ ;;
+ *)
+ LDAP_EXTRA_TARGETS="\
+ ${MK_LIBDIR}/libldap-2.4${MK_LIB_EXT}.2.4.2 \
+ ${MK_LIBDIR}/libldap-2.4${MK_LIB_EXT}.2 \
+ ${MK_LIBDIR}/liblber-2.4${MK_LIB_EXT}.2.4.2 \
+ ${MK_LIBDIR}/liblber-2.4${MK_LIB_EXT}.2 \
+ ${MK_LIBDIR}/libldap_r-2.4${MK_LIB_EXT}.2.4.2 \
+ ${MK_LIBDIR}/libldap_r-2.4${MK_LIB_EXT}.2 \
+ ${MK_BINDIR}/ldapsearch"
+ ;;
+ esac
+
mk_autotools \
- HEADERS='ldap.h' \
- LIBS='ldap ldap_r' \
+ HEADERS="$LDAP_HEADERS" \
+ LIBS="$LDAP_LIBS" \
+ TARGETS="$LDAP_EXTRA_TARGETS" \
HEADERDEPS="gssapi.h sasl/sasl.h" \
LIBDEPS="gssapi_krb5 sasl2" \
CPPFLAGS="-D_REENTRANT -DLDAP_CONNECTIONLESS -D_GNU_SOURCE -D_AVL_H" \

0 comments on commit dfc57b3

Please sign in to comment.