diff -ruN sylpheed.old/Makefile /usr/ports/mail/sylpheed/Makefile --- sylpheed.old/Makefile Sun Jan 20 16:47:00 2002 +++ /usr/ports/mail/sylpheed/Makefile Sun Jan 20 16:47:58 2002 @@ -7,6 +7,7 @@ PORTNAME= sylpheed PORTVERSION= 0.7.0 +PORTREVISION= 1 CATEGORIES= mail ipv6 MASTER_SITES= http://sylpheed.good-day.net/sylpheed/ @@ -55,6 +56,12 @@ .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,9 +79,14 @@ @${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}|g; \ + s|-lresolv||g' ${WRKSRC}/configure pre-build: ${LN} -sf ${LOCALBASE}/bin/${LIBTOOL} ${WRKSRC}/libtool