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 + diff --git a/multimedia/x264/Makefile b/multimedia/x264/Makefile index 8eb875e54389..e510563b6d62 100644 --- a/multimedia/x264/Makefile +++ b/multimedia/x264/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/files/patch-encoder_ratecontrol.c b/multimedia/x264/files/patch-encoder_ratecontrol.c new file mode 100644 index 000000000000..7e10b7b28297 --- /dev/null +++ b/multimedia/x264/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 +