ports/97131: [PATCH] multimedia/x264 does not compile on FreeBSD 4.x
Sven Berkvens-Matthijsse
sven at ilse.net
Thu May 11 11:50:17 UTC 2006
>Number: 97131
>Category: ports
>Synopsis: [PATCH] multimedia/x264 does not compile on FreeBSD 4.x
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu May 11 11:50:15 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Sven Berkvens-Matthijsse
>Release: FreeBSD 4.10-STABLE i386
>Organization:
ilse media BV
>Environment:
System: FreeBSD serv7.ilse.net 4.10-STABLE FreeBSD 4.10-STABLE #23: Wed Aug 4 15:18:52 CEST 2004 root at tango.ilse.net:/usr/obj/usr/src/sys/BAROQUE i386
>Description:
multimedia/x264 does not compile on FreeBSD 4.x.
>How-To-Repeat:
Try to install it.
>Fix:
Fix the Makefile using this patch:
--- Makefile.orig Thu May 11 13:46:12 2006
+++ Makefile Thu May 11 13:42:57 2006
@@ -51,6 +51,8 @@
MAKE_ENV+= ARCH_X86_64="1"
.endif
+MAKE_ARGS+= ARCH=${ARCH}
+
.if defined(WITH_DEBUG)
CONFIGURE_ARGS+= --enable-debug
.endif
Also, install a new patch in the files directory (patch-ratecontrol.c):
--- 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
This should not break the build on any other system and will cause
the port to work again on FreeBSD 4.x.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list