1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-29 05:38:00 +00:00

- Fix build on 4.x

PR:		97131
Submitted by:	Sven Berkvens-Matthijsse
This commit is contained in:
Michael Johnson 2006-05-11 12:12:23 +00:00
parent 369d8ef21e
commit b05523340e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162076
4 changed files with 30 additions and 0 deletions

View File

@ -51,6 +51,8 @@ BUILD_DEPENDS+= yasm:${PORTSDIR}/devel/yasm
MAKE_ENV+= ARCH_X86_64="1"
.endif
MAKE_ARGS+= ARCH=${ARCH}
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif

View File

@ -0,0 +1,13 @@
--- encoder/ratecontrol.c.orig Thu May 11 13:35:36 2006
+++ encoder/ratecontrol.c Thu May 11 13:36:57 2006
@@ -38,6 +38,9 @@
#if defined(SYS_FREEBSD) || defined(SYS_BEOS) || defined(SYS_NETBSD)
#define exp2f(x) powf( 2, (x) )
#endif
+#if defined(__FreeBSD__) && (__FreeBSD__ < 5)
+#define isfinite(val) (!isnan((val)) && !isinf((val)))
+#endif
#if defined(SYS_MACOSX)
#define exp2f(x) (float)pow( 2, (x) )
#define sqrtf sqrt

View File

@ -51,6 +51,8 @@ BUILD_DEPENDS+= yasm:${PORTSDIR}/devel/yasm
MAKE_ENV+= ARCH_X86_64="1"
.endif
MAKE_ARGS+= ARCH=${ARCH}
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif

View File

@ -0,0 +1,13 @@
--- encoder/ratecontrol.c.orig Thu May 11 13:35:36 2006
+++ encoder/ratecontrol.c Thu May 11 13:36:57 2006
@@ -38,6 +38,9 @@
#if defined(SYS_FREEBSD) || defined(SYS_BEOS) || defined(SYS_NETBSD)
#define exp2f(x) powf( 2, (x) )
#endif
+#if defined(__FreeBSD__) && (__FreeBSD__ < 5)
+#define isfinite(val) (!isnan((val)) && !isinf((val)))
+#endif
#if defined(SYS_MACOSX)
#define exp2f(x) (float)pow( 2, (x) )
#define sqrtf sqrt