aboutsummaryrefslogtreecommitdiffstats
path: root/multimedia/x264-devel
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2006-05-11 20:12:23 +0800
committerahze <ahze@FreeBSD.org>2006-05-11 20:12:23 +0800
commitcea24eaa51c39befefe6e0cc2c9c9cc9fc703ae2 (patch)
tree295e77ef4df23826c3b73a4d060924bb97023b79 /multimedia/x264-devel
parentb62a7e38bc1409aa610626c036655364101cb78c (diff)
downloadfreebsd-ports-gnome-cea24eaa51c39befefe6e0cc2c9c9cc9fc703ae2.tar.gz
freebsd-ports-gnome-cea24eaa51c39befefe6e0cc2c9c9cc9fc703ae2.tar.zst
freebsd-ports-gnome-cea24eaa51c39befefe6e0cc2c9c9cc9fc703ae2.zip
- Fix build on 4.x
PR: 97131 Submitted by: Sven Berkvens-Matthijsse
Diffstat (limited to 'multimedia/x264-devel')
-rw-r--r--multimedia/x264-devel/Makefile2
-rw-r--r--multimedia/x264-devel/files/patch-encoder_ratecontrol.c13
2 files changed, 15 insertions, 0 deletions
diff --git a/multimedia/x264-devel/Makefile b/multimedia/x264-devel/Makefile
index 8eb875e54389..e510563b6d62 100644
--- a/multimedia/x264-devel/Makefile
+++ b/multimedia/x264-devel/Makefile
@@ -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
diff --git a/multimedia/x264-devel/files/patch-encoder_ratecontrol.c b/multimedia/x264-devel/files/patch-encoder_ratecontrol.c
new file mode 100644
index 000000000000..7e10b7b28297
--- /dev/null
+++ b/multimedia/x264-devel/files/patch-encoder_ratecontrol.c
@@ -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
+