Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 25 Aug 2001 04:10:03 -0700 (PDT)
From:      Peter Pentchev <roam@ringlet.net>
To:        freebsd-ports@FreeBSD.org
Subject:   Re: ports/30058: Update: audio/ecasound fails to detect properly audiofile
Message-ID:  <200108251110.f7PBA3M49841@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/30058; it has been noted by GNATS.

From: Peter Pentchev <roam@ringlet.net>
To: The Anarcat <anarcat@anarcat.dyndns.org>
Cc: FreeBSD-gnats-submit@freebsd.org
Subject: Re: ports/30058: Update: audio/ecasound fails to detect properly audiofile
Date: Sat, 25 Aug 2001 13:59:03 +0300

 On Fri, Aug 24, 2001 at 04:51:57PM -0400, The Anarcat wrote:
 > 
 > >Number:         30058
 > >Category:       ports
 > >Synopsis:       Update: audio/ecasound fails to detect properly audiofile
 > >Originator:     The Anarcat
 > >Release:        FreeBSD 4.4-RC i386
 > >Organization:
 > >Environment:
 > System: FreeBSD shall.anarcat.dyndns.org 4.4-RC FreeBSD 4.4-RC #4: Wed Aug 22 12:21:57 EDT 2001 anarcat@shall.anarcat.dyndns.org:/usr/obj/usr/src/sys/SHALL i386
 > 
 > ecasound-2.0.2 port
 > 
 > >Description:
 > 
 > Because of crappy autoconf macros, the configure script does not find
 > the audiofile libs unless called as: LD_FLAGS=/usr/local/lib
 > ./configure...
 > 
 > >How-To-Repeat:
 > 
 > (cd /usr/ports/audio/ecasound && make WITH_AUDIOFILE=yes)
 > 
 > audiofile not detected.
 > 
 > >Fix:
 > 
 > Simple hack: we set LDFLAGS. Also set CFLAGS and CXXFLAGS while we're
 > here. Warning: audiofile support is still broken. For some reason, the
 > stupid flags don't get passed the whole Makefile hierarchy and
 > ecasound can't find the audiofile headers files.
 [snip]
 >  .if defined(WITH_AUDIOFILE)
 > +# very crappy hack to detect audiofile properly
 > +CONFIGURE_ENV+=	LDFLAGS=-L/usr/local/lib CFLAGS=-I/usr/local/include \
 > +		CXXFLAGS=-I/usr/local/include
 
 When GNU configure scripts check for include files, they usually only
 invoke gcc -E, not a full compiler.  In that case, only the preprocessor
 is invoked, and it does not honor CFLAGS.
 
 Try setting CPPFLAGS, as in mail/fetchmail/Makefile.
 
 Also, I believe you might need to modify the MAKE_ENV, too, though most
 GNU configure scripts pass CFLAGS, CPPFLAGS and the rest properly.
 
 G'luck,
 Peter
 
 -- 
 This would easier understand fewer had omitted.

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200108251110.f7PBA3M49841>