From olivleh1@phobos.raisdorf.net  Sun Jan 20 07:55:35 2002
Return-Path: <olivleh1@phobos.raisdorf.net>
Received: from phobos.raisdorf.net (phobos.raisdorf.net [195.244.235.251])
	by hub.freebsd.org (Postfix) with ESMTP id 3F07337B416
	for <FreeBSD-gnats-submit@freebsd.org>; Sun, 20 Jan 2002 07:55:33 -0800 (PST)
Received: (from olivleh1@localhost)
	by phobos.raisdorf.net (8.11.6/8.11.6) id g0KFbqV18541;
	Sun, 20 Jan 2002 16:37:52 +0100 (CET)
Message-Id: <200201201537.g0KFbqV18541@phobos.raisdorf.net>
Date: Sun, 20 Jan 2002 16:37:52 +0100 (CET)
From: Oliver Lehmann <lehmann@ans-netz.de>
Reply-To: Oliver Lehmann <lehmann@ans-netz.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: Oliver Lehmann <lehmann@ans-netz.de>
Subject: update-port mail/sylpheed (enable LDAP)
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         34090
>Category:       ports
>Synopsis:       update-port mail/sylpheed (enable LDAP)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 20 08:00:03 PST 2002
>Closed-Date:    Sun Jan 20 21:03:46 PST 2002
>Last-Modified:  Sun Jan 20 21:04:02 PST 2002
>Originator:     Oliver Lehmann
>Release:        FreeBSD 4.5-RC i386
>Organization:
>Environment:
System: FreeBSD sina.sesamestreet.net 4.5-RC FreeBSD 4.5-RC #0: Fri Jan 18 00:15:28 CET 2002 olivleh1@bert.sesamestreet.net:/usr/obj/i386/usr/src/sys/SINA i386


>Description:
	enable LDAP support in sylpheed 0.7.0 (thanks to SASAKI Katuhiro)

>How-To-Repeat:
>Fix:


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

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pat 
State-Changed-When: Sun Jan 20 21:03:46 PST 2002 
State-Changed-Why:  
Fixed, Thanks! 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=34090 
>Unformatted:
