ports/multimedia/mplayer/files/extra-patch-base_system_log2f
Christian Weisgerber 71ed9f76bb Update mplayer and mencoder to a recent snapshot. Major changes:
- Reduce the number of dependencies (use internal ffmpeg whenever possible)
  in mplayer
- Do not build with clang on i386
- Use new options framework

PR:		177083
Submitted by:	Thomas Zander <thomas.e.zander@googlemail.com> (maintainer)
2013-03-23 15:45:25 +00:00

21 lines
742 B
Text

--- configure.orig 2013-03-03 11:29:18.000000000 +0100
+++ configure 2013-03-08 19:04:01.903917043 +0100
@@ -3265,7 +3265,7 @@
echores "$_kstat"
-for func in atanf cbrt cbrtf cosf expf exp2 exp2f isnan isinf llrint llrintf log2 log2f log10f lrint lrintf rint round roundf sinf trunc truncf; do
+for func in atanf cbrt cbrtf cosf expf exp2 exp2f isnan isinf llrint llrintf lrint lrintf rint round roundf sinf trunc truncf; do
echocheck $func
eval _$func=no
statement_check math.h "${func}(2.0)" -D_ISOC99_SOURCE && eval _$func=yes
@@ -3278,6 +3278,9 @@
fi
done
+for func in log2 log2f log10f; do
+ eval def_$func="\"#define HAVE_$(echo $func | tr '[a-z]' '[A-Z]') 0\""
+done
for func in atan2f ldexpf powf; do
echocheck $func