2012-10-31 12:16:30 +01:00
|
|
|
# $NetBSD: Makefile,v 1.34 2012/10/31 11:17:09 asau Exp $
|
1999-05-18 23:22:26 +02:00
|
|
|
|
2003-05-01 11:43:42 +02:00
|
|
|
DISTNAME= ldapsdk_12311998
|
|
|
|
PKGNAME= ${DISTNAME:S/_/-/}
|
2012-10-03 23:53:53 +02:00
|
|
|
PKGREVISION= 3
|
1999-05-18 23:22:26 +02:00
|
|
|
CATEGORIES= devel databases
|
2007-12-22 08:22:04 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_MOZILLA_ALL:=directory/c-sdk/ancient/}
|
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
|
|
|
|
2008-05-27 00:25:25 +02:00
|
|
|
NOT_FOR_BULK_PLATFORM= Linux-*-*
|
2008-03-03 18:45:33 +01:00
|
|
|
|
2009-07-07 07:51:28 +02:00
|
|
|
MAKE_JOBS_SAFE= no
|
|
|
|
|
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
|
2011-11-26 18:11:24 +01:00
|
|
|
MAKE_FILE= ${WRKSRC}/directory/ldapsdk.mk
|
2007-03-01 18:19:10 +01:00
|
|
|
BUILD_TARGET= build
|
2011-11-26 18:11:24 +01:00
|
|
|
BUILD_DIRS= config .
|
2002-10-20 23:48:16 +02:00
|
|
|
|
2008-02-28 12:58:47 +01:00
|
|
|
AUTO_MKDIRS= yes
|
2007-09-11 23:05:36 +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-09-11 23:05:36 +02:00
|
|
|
cd ${WRKSRC}/dist/public/ldap \
|
2008-03-03 18:45:33 +01:00
|
|
|
&& ${INSTALL_DATA} disptmpl.h lber.h ldap.h srchpref.h ${DESTDIR}${PREFIX}/include
|
2007-03-01 18:19:10 +01:00
|
|
|
#
|
|
|
|
# XXX kludge
|
|
|
|
#
|
2008-03-03 18:45:33 +01:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/lib/libldap.a ${DESTDIR}${PREFIX}/lib/libldap.a
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/lib/liblber.a ${DESTDIR}${PREFIX}/lib/liblber.a
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/dist/${OPSYS}*/bin/libldap.so.1.0 ${DESTDIR}${PREFIX}/lib/libldap.so.1.0
|
|
|
|
${LN} -sf libldap.so.1.0 ${DESTDIR}${PREFIX}/lib/libldap.so.1
|
|
|
|
${LN} -sf libldap.so.1.0 ${DESTDIR}${PREFIX}/lib/libldap.so
|
|
|
|
${INSTALL_LIB} ${WRKSRC}/dist/${OPSYS}*/bin/liblber.so.1.0 ${DESTDIR}${PREFIX}/lib/liblber.so.1.0
|
|
|
|
${LN} -sf liblber.so.1.0 ${DESTDIR}${PREFIX}/lib/liblber.so.1
|
|
|
|
${LN} -sf liblber.so.1.0 ${DESTDIR}${PREFIX}/lib/liblber.so
|
|
|
|
${INSTALL_DATA_DIR} ${DESTDIR}${EGDIR}
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/etc/ldapfilter.conf ${DESTDIR}${EGDIR}/ldapfilter.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/etc/ldapsearchprefs.conf ${DESTDIR}${EGDIR}/ldapsearchprefs.conf
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/etc/ldapfriendly ${DESTDIR}${EGDIR}/ldapfriendly
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/dist/${OPSYS}*/etc/ldaptemplates.conf ${DESTDIR}${EGDIR}/ldaptemplates.conf
|
1999-05-18 23:22:26 +02:00
|
|
|
|
|
|
|
.include "../../mk/bsd.pkg.mk"
|