1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-12 07:27:57 +00:00

Add knob to enable LDAP support, no PORTREVISION bump required.

PR:		34090
Submitted by:	maintainer
This commit is contained in:
Patrick Li 2002-01-21 05:03:38 +00:00
parent 56067c5970
commit 4fb04b2ad9
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=53434
4 changed files with 44 additions and 0 deletions

View File

@ -55,6 +55,12 @@ CONFIGURE_ARGS+=--enable-jpilot
.else
CONFIGURE_ARGS+= --disable-jpilot
.endif
.if defined(WITH_LDAP)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2
CONFIGURE_ARGS+=--enable-ldap
.else
CONFIGURE_ARGS+=--disable-ldap
.endif
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+=--enable-ssl
@ -72,10 +78,15 @@ pre-everything::
@${ECHO} " WITH_JCONV=yes Enable Japanese charset conversion"
@${ECHO} " library libjconv."
@${ECHO} " WITH_JPILOT=yes Enable JPilot support."
@${ECHO} " WITH_LDAP=yes Enable LDAP support."
@${ECHO} ""
@${ECHO} " WITHOUT_SSL=yes Disable OpenSSL support."
@${ECHO} ""
post-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g; \
s|-lresolv||g' ${WRKSRC}/configure
pre-build:
${LN} -sf ${LOCALBASE}/bin/${LIBTOOL} ${WRKSRC}/libtool

View File

@ -55,6 +55,12 @@ CONFIGURE_ARGS+=--enable-jpilot
.else
CONFIGURE_ARGS+= --disable-jpilot
.endif
.if defined(WITH_LDAP)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2
CONFIGURE_ARGS+=--enable-ldap
.else
CONFIGURE_ARGS+=--disable-ldap
.endif
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+=--enable-ssl
@ -72,10 +78,15 @@ pre-everything::
@${ECHO} " WITH_JCONV=yes Enable Japanese charset conversion"
@${ECHO} " library libjconv."
@${ECHO} " WITH_JPILOT=yes Enable JPilot support."
@${ECHO} " WITH_LDAP=yes Enable LDAP support."
@${ECHO} ""
@${ECHO} " WITHOUT_SSL=yes Disable OpenSSL support."
@${ECHO} ""
post-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g; \
s|-lresolv||g' ${WRKSRC}/configure
pre-build:
${LN} -sf ${LOCALBASE}/bin/${LIBTOOL} ${WRKSRC}/libtool

View File

@ -55,6 +55,12 @@ CONFIGURE_ARGS+=--enable-jpilot
.else
CONFIGURE_ARGS+= --disable-jpilot
.endif
.if defined(WITH_LDAP)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2
CONFIGURE_ARGS+=--enable-ldap
.else
CONFIGURE_ARGS+=--disable-ldap
.endif
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+=--enable-ssl
@ -72,10 +78,15 @@ pre-everything::
@${ECHO} " WITH_JCONV=yes Enable Japanese charset conversion"
@${ECHO} " library libjconv."
@${ECHO} " WITH_JPILOT=yes Enable JPilot support."
@${ECHO} " WITH_LDAP=yes Enable LDAP support."
@${ECHO} ""
@${ECHO} " WITHOUT_SSL=yes Disable OpenSSL support."
@${ECHO} ""
post-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g; \
s|-lresolv||g' ${WRKSRC}/configure
pre-build:
${LN} -sf ${LOCALBASE}/bin/${LIBTOOL} ${WRKSRC}/libtool

View File

@ -55,6 +55,12 @@ CONFIGURE_ARGS+=--enable-jpilot
.else
CONFIGURE_ARGS+= --disable-jpilot
.endif
.if defined(WITH_LDAP)
LIB_DEPENDS+= ldap.2:${PORTSDIR}/net/openldap2
CONFIGURE_ARGS+=--enable-ldap
.else
CONFIGURE_ARGS+=--disable-ldap
.endif
.if !defined(WITHOUT_SSL)
USE_OPENSSL= yes
CONFIGURE_ARGS+=--enable-ssl
@ -72,10 +78,15 @@ pre-everything::
@${ECHO} " WITH_JCONV=yes Enable Japanese charset conversion"
@${ECHO} " library libjconv."
@${ECHO} " WITH_JPILOT=yes Enable JPilot support."
@${ECHO} " WITH_LDAP=yes Enable LDAP support."
@${ECHO} ""
@${ECHO} " WITHOUT_SSL=yes Disable OpenSSL support."
@${ECHO} ""
post-patch:
@${PERL} -pi -e 's|-lpthread|${PTHREAD_LIBS:S/"//g}|g; \
s|-lresolv||g' ${WRKSRC}/configure
pre-build:
${LN} -sf ${LOCALBASE}/bin/${LIBTOOL} ${WRKSRC}/libtool