Date: Thu, 11 May 2006 13:49:01 +0200 (CEST) From: Sven Berkvens-Matthijsse <sven@ilse.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: ports/97131: [PATCH] multimedia/x264 does not compile on FreeBSD 4.x Message-ID: <200605111149.k4BBn0h0012579@serv7.ilse.net> Resent-Message-ID: <200605111150.k4BBoGX7023783@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200605111149.k4BBn0h0012579>