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:
parent
369d8ef21e
commit
b05523340e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=162076
@ -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
|
||||
|
13
multimedia/x264-devel/files/patch-encoder_ratecontrol.c
Normal file
13
multimedia/x264-devel/files/patch-encoder_ratecontrol.c
Normal 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
|
||||
|
@ -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
|
||||
|
13
multimedia/x264/files/patch-encoder_ratecontrol.c
Normal file
13
multimedia/x264/files/patch-encoder_ratecontrol.c
Normal 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
|
||||
|
Loading…
Reference in New Issue
Block a user