speex upgrade to 1.1.12 ?
Jeremy Messenger
mezz7 at cox.net
Thu Feb 22 19:54:32 UTC 2007
On Thu, 22 Feb 2007 11:55:43 -0600, Luigi Rizzo <rizzo at icir.org> wrote:
> On Thu, Feb 22, 2007 at 11:44:27AM -0600, Jeremy Messenger wrote:
> ...
>> > http://info.iet.unipi.it/~luigi/FreeBSD/speex-devel-20070221.tgz
>>
>> Why remove two patches? They are not need anymore? I can build with two
>
> apparently yes they are not needed anymore.
>
>> patches w/out any of problem. As for the Makefile, I have done a bit
>> tweak
>> from your changes. Example:
>> -PORTVERSION -> DISTVERSION.
>> -CONFLICTS=speex-*, this is incorrect and is too general. It should be
>> speex-[0-9]*.
>> -Remove 'devel version' and peroid. An end of peroid in the sentence is
>> illegal in COMMENT.
>> -INSTALLS_SHLIB -> USE_LDCONFIG.
>> -CONFIGURE_TARGET -> USE_GNOME=gnometarget
>> -Add USE_GNOME=ltverhack to avoid shared library version bump to often
>> by
>> fix libtool bug.
FYI: The result is libspeex.so.1 now instead of libspeex.so.[3|5].
>> -Add CONFIGURE_ENV by add -I/-L${LOCALBASE}/[...] to make it works when
>> install speex in the different prefix.
>
> fine, most of the things you note below were just inherited from
> the previous one (PORTVERSION, CONFIGURE_TARGET, INSTALL_SHLIBS).
>
>> -Remove MAKE_ENV, I don't think it is need.
>
> LDFLAGS was added because some of the code uses the math library and
> -lm is not included by default on my box at least (RELENG_6).
> Maybe some of the other changes you made also imply -lm ?
It was from configure that added -lm by itself.
=====================================
checking for sin in -lm... yes
[...]
cc -shared[...]-L/usr/local/lib -lm -Wl,-soname -Wl,libspeex.so.1 -o
.libs/libspeex.so.1
[...]
/bin/sh[...]libspeex.la -lm
[...goes on...]
=====================================
In the configure's test looks like:
=====================================
/* Override any gcc2 internal prototype to avoid an error. */
#ifdef __cplusplus
extern "C"
#endif
/* We use char because int might match the return type of a gcc2
builtin and then its argument prototype would still apply. */
char sin ();
int
main ()
{
sin ();
;
return 0;
}
=====================================
Have you check in your log to see why it doesn't add -lm yet?
> CFLAGS were just added to build with stricter compiler flags,
> so it is not strictly necessary;
Yep.
I have committed speex-devel update. I can do speex-devel -> speex in this
weekend. It will be require for me to chase these ports that depend on
speex for shared library version change, bump them, and etc.
Cheers,
Mezz
>> I am not done (have to go back to class soon) with it yet, so if you
>> have
>> any of question then let me know.
>
> nothing else.
>
> cheers
> luigi
--
mezz7 at cox.net - mezz at FreeBSD.org
FreeBSD GNOME Team - FreeBSD Multimedia Hat (ports, not src)
http://www.FreeBSD.org/gnome/ - gnome at FreeBSD.org
http://wiki.freebsd.org/multimedia - multimedia at FreeBSD.org
More information about the freebsd-multimedia
mailing list