diff options
Diffstat (limited to 'mail/sylpheed3/Makefile')
-rw-r--r-- | mail/sylpheed3/Makefile | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mail/sylpheed3/Makefile b/mail/sylpheed3/Makefile index b8f29d229792..e4fa03742d7b 100644 --- a/mail/sylpheed3/Makefile +++ b/mail/sylpheed3/Makefile @@ -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 |