From sgk@anarion.elendil.ru  Thu May 18 16:32:30 2006
Return-Path: <sgk@anarion.elendil.ru>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 4BEF016A547
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 May 2006 16:32:30 +0000 (UTC)
	(envelope-from sgk@anarion.elendil.ru)
Received: from tirith.elendil.ru (tirith.elendil.ru [195.68.151.124])
	by mx1.FreeBSD.org (Postfix) with SMTP id D7DFF43D46
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 18 May 2006 16:32:28 +0000 (GMT)
	(envelope-from sgk@anarion.elendil.ru)
Received: (qmail 9368 invoked from network); 18 May 2006 16:32:26 -0000
Received: from narsil.elendil.ru ([10.19.72.1])
  by tirith.elendil.ru ([10.19.72.4])
  with ESMTP via TCP; 18 May 2006 16:32:26 -0000
Received: (qmail 12927 invoked from network); 18 May 2006 16:32:26 -0000
Received: from anarion.elendil.ru ([10.19.3.11])
  by narsil.elendil.ru ([10.19.72.1])
  with ESMTP via TCP; 18 May 2006 16:32:26 -0000
Received: (qmail 39097 invoked by uid 0); 18 May 2006 16:33:44 -0000
Message-Id: <20060518163344.39096.qmail@anarion.elendil.ru>
Date: 18 May 2006 16:33:44 -0000
From: Sergei Kolobov <sergei@FreeBSD.org>
To: FreeBSD-gnats-submit@freebsd.org
Cc: ahze@FreeBSD.org
Subject: [PATCH] audio/speex: fix packaging when LOCALBASE != /usr/local
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         97464
>Category:       ports
>Synopsis:       [PATCH] audio/speex: fix packaging when LOCALBASE != /usr/local
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    sergei
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu May 18 16:40:18 GMT 2006
>Closed-Date:    Thu May 18 16:48:42 GMT 2006
>Last-Modified:  Thu May 18 16:48:42 GMT 2006
>Originator:     Sergei Kolobov
>Release:        FreeBSD 7.0-CURRENT i386
>Organization:
Elendil LLC
>Environment:
System: FreeBSD anarion.elendil.ru 7.0-CURRENT FreeBSD 7.0-CURRENT #0: Thu Apr 20 03:19:04 MSD 2006
>Description:
- Use configure script --with-ogg-dir argument to specify devel/libogg
  dependency location instead of explicitly passing modified CPPFLAGS
  and LDFLAGS variables. This gives configure script a chance to do the 
  right thing when detecting libogg if ${LOCALBASE} != "/usr/local"

Port maintainer (ahze@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- speex-1.0.5_1,1.patch begins here ---
Index: Makefile
===================================================================
RCS file: /data/cvs/FreeBSD/ports/audio/speex/Makefile,v
retrieving revision 1.41
diff -u -u -r1.41 Makefile
--- Makefile	3 May 2006 05:14:28 -0000	1.41
+++ Makefile	18 May 2006 16:29:17 -0000
@@ -27,14 +27,11 @@
 USE_GETOPT_LONG=yes
 GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=	--build=${ARCH}-portbld-freebsd${OSREL}
-CONFIGURE_ENV=	CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
+CONFIGURE_ARGS=	--with-ogg-dir=${LOCALBASE}
 INSTALLS_SHLIB=	yes
 
 MAN1=		speexdec.1 speexenc.1
 
-CPPFLAGS=	-I${LOCALBASE}/include
-LDFLAGS=	-L${LOCALBASE}/lib
-
 post-patch:
 	@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
 		's|doc win32|win32|g ; \
--- speex-1.0.5_1,1.patch ends here ---

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sergei 
State-Changed-When: Thu May 18 16:46:08 UTC 2006 
State-Changed-Why:  
Committed (maintainer approved the patch in a private e-mail). 


Responsible-Changed-From-To: freebsd-ports-bugs->sergei 
Responsible-Changed-By: sergei 
Responsible-Changed-When: Thu May 18 16:46:08 UTC 2006 
Responsible-Changed-Why:  
I handled it. 

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