aboutsummaryrefslogtreecommitdiffstats
path: root/net/ldapsdk/Makefile
diff options
context:
space:
mode:
authorehaupt <ehaupt@FreeBSD.org>2011-10-19 05:11:28 +0800
committerehaupt <ehaupt@FreeBSD.org>2011-10-19 05:11:28 +0800
commit287957f17ae6a0d13fd9a9a7988fb918f3b6fdef (patch)
treeedc79a4135b601f559679b28dd3d18af50615b6d /net/ldapsdk/Makefile
parentdd5ca057b0f3ffa7dd90664380b4146b4d34aced (diff)
downloadfreebsd-ports-gnome-287957f17ae6a0d13fd9a9a7988fb918f3b6fdef.tar.gz
freebsd-ports-gnome-287957f17ae6a0d13fd9a9a7988fb918f3b6fdef.tar.zst
freebsd-ports-gnome-287957f17ae6a0d13fd9a9a7988fb918f3b6fdef.zip
Update to 6.0.7
PR: 161651 Submitted by: KATO Tsuguru <tkato432@yahoo.com>
Diffstat (limited to 'net/ldapsdk/Makefile')
-rw-r--r--net/ldapsdk/Makefile77
1 files changed, 20 insertions, 57 deletions
diff --git a/net/ldapsdk/Makefile b/net/ldapsdk/Makefile
index 741e83d1dfee..8dcdde5226d3 100644
--- a/net/ldapsdk/Makefile
+++ b/net/ldapsdk/Makefile
@@ -6,71 +6,34 @@
#
PORTNAME= ldapsdk
-PORTVERSION= 1998.12.31
-PORTREVISION= 1
+PORTVERSION= 6.0.7
+PORTEPOCH= 1
CATEGORIES= net
-MASTER_SITES= ${MASTER_SITE_MOZILLA}
-MASTER_SITE_SUBDIR= directory/c-sdk/ancient
-DISTNAME= ldapsdk_12311998
+MASTER_SITES= MOZILLA/directory/c-sdk/releases/v${PORTVERSION}/src
+DISTNAME= mozldap-${PORTVERSION}
MAINTAINER= ports@FreeBSD.org
COMMENT= Mozilla LDAP sdk
-WRKSRC= ${WRKDIR}/mozilla
-MAKEFILE= ${WRKSRC}/directory/ldapsdk.mk
-USE_GMAKE= yes
-USE_LDCONFIG= yes
-USE_PERL5= yes
+LIB_DEPENDS= nspr4.1:${PORTSDIR}/devel/nspr
+
+WRKSRC= ${WRKDIR}/${DISTNAME}/c-sdk
-MAKE_ENV+= MOZILLA_CLIENT=1 NO_MDUPDATE=1 MOZ_LDAP_SDK=1
-ALL_TARGET= build
+USE_PERL5= yes
+USE_GMAKE= yes
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS= --disable-optimize \
+ --with-dist-prefix=${WRKDIR}/fakeroot \
+ --with-nspr-inc=${LOCALBASE}/include/nspr \
+ --with-nspr-lib=${LOCALBASE}/lib
+MAKE_JOBS_SAFE= yes
-OBJDIR= ${WRKSRC}/dist/${OPSYS}${OSREL}_DBG.OBJ
-INSTALL_DIR= ${PREFIX}/mozilla/directory
+post-extract:
+ @${MKDIR} ${WRKDIR}/fakeroot
do-install:
- ${MKDIR} ${INSTALL_DIR}/etc
- ${MKDIR} ${INSTALL_DIR}/include
- ${MKDIR} ${INSTALL_DIR}/lib
- ${INSTALL_DATA} ${OBJDIR}/bin/liblber.so.1.0 \
- ${PREFIX}/lib/libmozlber.so.1
- -(cd ${PREFIX}/lib; ${LN} -s libmozlber.so.1 libmozlber.so)
- ${INSTALL_DATA} ${OBJDIR}/bin/libldap.so.1.0 \
- ${PREFIX}/lib/libmozldap.so.1
- -(cd ${PREFIX}/lib; ${LN} -s libmozldap.so.1 libmozldap.so)
- ${INSTALL_DATA} ${OBJDIR}/lib/liblber.a ${PREFIX}/lib/libmozlber.a
- ${INSTALL_DATA} ${OBJDIR}/lib/libldap.a ${PREFIX}/lib/libmozldap.a
- cd ${OBJDIR}/etc && ${TAR} -chf - * | \
- ${TAR} -xf - -C ${INSTALL_DIR}/etc
- cd ${OBJDIR}/include && ${TAR} -chf - * | \
- ${TAR} -xf - -C ${INSTALL_DIR}/include
- cd ${INSTALL_DIR}/include \
- && [ -f lber.h ] \
- && ( cat lber.h | sed -e 's/ldap\.h/mozldap\.h/' > mozlber.h ) \
- && rm lber.h \
- && [ -f ldap.h ] \
- && ( cat ldap.h | sed -e 's/lber\.h/mozlber\.h/' > mozldap.h ) \
- && rm ldap.h
- ${LN} -sf ${INSTALL_DIR}/include/mozlber.h ${PREFIX}/include
- ${LN} -sf ${INSTALL_DIR}/include/mozldap.h ${PREFIX}/include
-
-post-install:
- @echo
- @echo 'PLEASE NOTE (2000/8/23):'
- @echo ' The mozilla lber and ldap libraries now are installed'
- @echo ' with the names mozlber and mozldap.'
- @echo
- @echo ' This has been done to resolve a library naming conflict with '
- @echo ' the openldap port. Also, these libraries and related'
- @echo ' header files are now installed by default in the standard'
- @echo ' directories /usr/local/lib and /usr/local/include.'
- @echo
- @echo ' The complete set of mozilla ldapsdk header files'
- @echo ' has been installed in /usr/local/mozilla/directory/include,'
- @echo ' should you require one of the more esoteric ones.'
- @echo
- @echo ' Also, please note that the PerLDAP port (../perldap) has'
- @echo ' been updated to link appropriately to these new library names.'
- @echo
+ @${MKDIR} ${PREFIX}/mozilla/directory
+ @(cd ${WRKDIR}/fakeroot \
+ && ${COPYTREE_SHARE} . ${PREFIX}/mozilla/directory)
.include <bsd.port.mk>