2007-03-01 18:19:10 +01:00
|
|
|
# $NetBSD: Makefile,v 1.24 2007/03/01 17:19:10 wiz Exp $
|
1999-05-18 23:22:26 +02:00
|
|
|
|
2003-05-01 11:43:42 +02:00
|
|
|
DISTNAME= ldapsdk_12311998
|
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
2006-02-06 00:08:03 +01:00
|
|
|
PKGREVISION= 2
|
1999-05-18 23:22:26 +02:00
|
|
|
CATEGORIES= devel databases
|
2003-05-01 11:43:42 +02:00
|
|
|
MASTER_SITES= ftp://ftp.mozilla.org/pub/directory/c-sdk/ldap/
|
1999-05-18 23:22:26 +02:00
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
1999-05-18 23:22:26 +02:00
|
|
|
HOMEPAGE= http://www.mozilla.org/directory/
|
2001-05-17 10:38:42 +02:00
|
|
|
COMMENT= LDAP C-SDK from the Mozilla project
|
1999-05-18 23:22:26 +02:00
|
|
|
|
2006-05-31 21:09:15 +02:00
|
|
|
CONFLICTS+= openldap-client-[0-9]*
|
1999-05-18 23:22:26 +02:00
|
|
|
|
2004-01-20 13:07:06 +01:00
|
|
|
WRKSRC= ${WRKDIR}/mozilla
|
2005-07-16 03:19:06 +02:00
|
|
|
USE_TOOLS+= gmake perl
|
1999-05-18 23:22:26 +02:00
|
|
|
|
2003-05-01 11:39:59 +02:00
|
|
|
PKG_SYSCONFSUBDIR= ldapsdk
|
|
|
|
EGDIR= ${PREFIX}/share/examples/ldapsdk
|
|
|
|
|
2007-03-01 18:19:10 +01:00
|
|
|
MAKE_ENV+= MOZILLA_CLIENT=1
|
|
|
|
MAKE_ENV+= NO_MDUPDATE=1
|
|
|
|
MAKE_ENV+= MOZ_LDAP_SDK=1
|
|
|
|
MAKE_FILE= directory/ldapsdk.mk
|
|
|
|
BUILD_TARGET= build
|
2002-10-20 23:48:16 +02:00
|
|
|
|
2006-01-15 19:10:23 +01:00
|
|
|
post-extract:
|
|
|
|
${LN} -s FreeBSD.mk ${WRKSRC}/config/DragonFly.mk
|
|
|
|
|
2003-05-01 11:39:59 +02:00
|
|
|
do-configure:
|
|
|
|
${ECHO} "PKG_SYSCONFDIR=${PKG_SYSCONFDIR}" >> ${WRKSRC}/config/rules.mk
|
|
|
|
${ECHO} "EGDIR=${EGDIR}" >> ${WRKSRC}/config/rules.mk
|
|
|
|
|
1999-05-18 23:22:26 +02:00
|
|
|
do-install:
|
2007-03-01 18:19:10 +01:00
|
|
|
cd ${WRKSRC}/dist && \
|
|
|
|
for i in disptmpl.h lber.h ldap.h srchpref.h; \
|
|
|
|
do \
|
|
|
|
${INSTALL_DATA} public/ldap/$$i ${PREFIX}/include; \
|
|
|
|
done
|
|
|
|
#
|
|
|
|
# XXX kludge
|
|
|
|
#
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/lib/libldap.a ${PREFIX}/lib/libldap.a
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/lib/liblber.a ${PREFIX}/lib/liblber.a
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/dist/${OPSYS}*/bin/libldap.so.1.0 ${PREFIX}/lib/libldap.so.1.0
|
|
|
|
${LN} -sf libldap.so.1.0 ${PREFIX}/lib/libldap.so.1
|
|
|
|
${LN} -sf libldap.so.1.0 ${PREFIX}/lib/libldap.so
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/dist/${OPSYS}*/bin/liblber.so.1.0 ${PREFIX}/lib/liblber.so.1.0
|
|
|
|
${LN} -sf liblber.so.1.0 ${PREFIX}/lib/liblber.so.1
|
|
|
|
${LN} -sf liblber.so.1.0 ${PREFIX}/lib/liblber.so
|
|
|
|
${INSTALL_DATA_DIR} ${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/etc/ldapfilter.conf ${EGDIR}/ldapfilter.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/etc/ldapsearchprefs.conf ${EGDIR}/ldapsearchprefs.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/etc/ldapfriendly ${EGDIR}/ldapfriendly
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/etc/ldaptemplates.conf ${EGDIR}/ldaptemplates.conf
|
1999-05-18 23:22:26 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|