From ssedov@mbsd.msk.ru  Sat Aug  5 21:41:59 2006
Return-Path: <ssedov@mbsd.msk.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 5709716A4EC
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  5 Aug 2006 21:41:59 +0000 (UTC)
	(envelope-from ssedov@mbsd.msk.ru)
Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 1A02143DBE
	for <FreeBSD-gnats-submit@freebsd.org>; Sat,  5 Aug 2006 21:41:28 +0000 (GMT)
	(envelope-from ssedov@mbsd.msk.ru)
Received: from [217.118.83.1] (helo=fonon.realnet)
	by com1.ht-systems.ru with esmtpa (Exim 4.62)
	(envelope-from <ssedov@mbsd.msk.ru>)
	id 1G9U1N-0001pC-LV
	for FreeBSD-gnats-submit@freebsd.org; Sun, 06 Aug 2006 01:49:32 +0400
Received: by fonon.realnet (Postfix, from userid 1001)
	id BCE9B11B6D; Sun,  6 Aug 2006 00:47:18 +0400 (MSD)
Message-Id: <20060805204718.BCE9B11B6D@fonon.realnet>
Date: Sun,  6 Aug 2006 00:47:18 +0400 (MSD)
From: Stanislav Sedov <ssedov@mbsd.msk.ru>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [PATCH] audio/ecasound: fix depends
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         101437
>Category:       ports
>Synopsis:       [PATCH] audio/ecasound: fix depends
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Aug 05 21:50:15 GMT 2006
>Closed-Date:    Sun Aug 06 05:38:26 GMT 2006
>Last-Modified:  Sun Aug 06 05:38:26 GMT 2006
>Originator:     Stanislav Sedov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
MBSD labs, Inc.
>Environment:
System: FreeBSD fonon.realnet 7.0-CURRENT FreeBSD 7.0-CURRENT #1: Wed Aug  2 21:44:37 MSD
>Description:
 - Depend on readline port if library exists - program will link it rather than
 a system one.

>How-To-Repeat:
>Fix:

--- ecasound-2.4.4_2.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/audio/ecasound/Makefile /var/tmp/ecasound/Makefile
--- /usr/ports/audio/ecasound/Makefile	Wed May  3 09:14:14 2006
+++ /var/tmp/ecasound/Makefile	Sun Aug  6 00:45:31 2006
@@ -7,7 +7,7 @@
 
 PORTNAME=	ecasound
 PORTVERSION=	2.4.4
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	audio
 MASTER_SITES=	http://ecasound.seul.org/download/
 
@@ -16,7 +16,7 @@
 
 USE_GNOME=	gnometarget
 USE_GMAKE=	yes
-GNU_CONFIGURE=  yes
+GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
 CONFIGURE_ARGS=	--disable-pyecasound --disable-rubyecasound --with-largefile \
 		--enable-sys-readline
@@ -32,8 +32,11 @@
 
 .include <bsd.port.pre.mk>
 
-.if ${OSVERSION} < 500000
+.if ${OSVERSION} < 500000 || exists(${LOCALBASE}/lib/libreadline.so.5)
 LIB_DEPENDS+=	readline.5:${PORTSDIR}/devel/readline
+.endif
+
+.if ${OSVERSION} < 500000
 CFLAGS+=	-fpermissive
 .endif
 
--- ecasound-2.4.4_2.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: rafan 
State-Changed-When: Sun Aug 6 05:38:22 UTC 2006 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=101437 
>Unformatted:
