freebsd-ports/multimedia/mplayer2/files/extra-patch-base_system_log2f
Chris Rees e60f4e63a5 MPlayer2 is an advanced general-purpose video player.
A fork of the original MPlayer project, it contains significant further
development and supports a number of features not available
in other Unix players.

WWW: http://www.mplayer2.org/

PR:		ports/163438
Submitted by:	Grzegorz Blach <magik@roorback.net>
Feature safe:	yes
2012-10-24 16:32:17 +00:00

21 lines
628 B
Text

--- configure~ 2012-05-12 01:10:33.294799627 -0500
+++ configure 2012-05-12 01:13:51.714477505 -0500
@@ -2819,7 +2819,7 @@ if test "$_posix4" = yes ; then
fi
echores "$_posix4"
-for func in exp2 exp2f llrint log2 log2f lrint lrintf round roundf truncf; do
+for func in exp2 exp2f llrint lrint lrintf round roundf truncf; do
echocheck $func
eval _$func=no
statement_check math.h "${func}(2.0)" -D_ISOC99_SOURCE $_ld_lm && eval _$func=yes
@@ -2831,6 +2831,9 @@ else
echores no
fi
done
+for func in log2 log2f; do
+ eval def_$func="\"#define HAVE_$(echo $func | tr '[a-z]' '[A-Z]') 0\""
+done
echocheck "mkstemp"