blob: 5ef97f518e554973011defeb0ae31551fd0bc9d4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# New ports collection makefile for: perldap
# Date created: 17 May 1999
# Whom: paul@freebsd.org
#
# $FreeBSD$
#
PORTNAME= ldapsdk
PORTVERSION= 1998.12.31
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_MOZILLA}
MASTER_SITE_SUBDIR= directory/c-sdk/ldap
DISTNAME= ldapsdk_12311998
MAINTAINER= paul@FreeBSD.org
WRKSRC= ${WRKDIR}/mozilla
MAKEFILE= ${WRKSRC}/directory/ldapsdk.mk
USE_GMAKE= yes
MAKE_ENV+= MOZILLA_CLIENT=1 NO_MDUPDATE=1 MOZ_LDAP_SDK=1
ALL_TARGET= build
OBJDIR= ${WRKSRC}/dist/${OPSYS}${OSREL}_DBG.OBJ
INSTALL_DIR= ${PREFIX}/mozilla/directory
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:
@${SETENV} OBJFORMAT=${PORTOBJFORMAT} ${LDCONFIG} -m ${PREFIX}/lib
@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
.include <bsd.port.mk>
|