Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 02 Feb 2014 00:06:16 +0100
From:      Andreas Tobler <andreast-list@fgznet.ch>
To:        Cresente Ulit <cresente.ulit@me.com>, freebsd-ppc@freebsd.org
Subject:   Re: x264 compile error on FreeBSD 10
Message-ID:  <52ED7DE8.6090500@fgznet.ch>
In-Reply-To: <D2E1FCE4-328D-4829-97E7-14EC8792941D@me.com>
References:  <D2E1FCE4-328D-4829-97E7-14EC8792941D@me.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is a multi-part message in MIME format.
--------------030906020705010200020006
Content-Type: text/plain; charset=windows-1252
Content-Transfer-Encoding: 8bit

On 01.02.14 04:13, Cresente Ulit wrote:
> Hi everyone,
> 
> I’m trying to compile x264 (for ffmpeg & musicpd) but I’m stuck at
> this error. I’m using an early 2005 dual 2 GHz Power Mac G5. I
> appreciate any help!

Replace the attached patch file in your multimedia/x264/files directory.
After that you should be able to build x264.....

Andreas

--------------030906020705010200020006
Content-Type: text/plain; charset=UTF-8; x-mac-type="0"; x-mac-creator="0";
 name="patch-Makefile"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="patch-Makefile"

--- Makefile.orig	2013-08-27 22:45:07.000000000 +0200
+++ Makefile	2014-02-01 23:56:50.000000000 +0100
@@ -86,13 +86,13 @@
 endif
 X86SRC = $(X86SRC0:%=common/x86/%)
 
-ifeq ($(ARCH),X86)
+ifeq ($(ARCH),i386)
 ARCH_X86 = yes
 ASMSRC   = $(X86SRC) common/x86/pixel-32.asm
 ASFLAGS += -DARCH_X86_64=0
 endif
 
-ifeq ($(ARCH),X86_64)
+ifeq ($(ARCH),amd64)
 ARCH_X86 = yes
 ASMSRC   = $(X86SRC:-32.asm=-64.asm) common/x86/trellis-64.asm
 ASFLAGS += -DARCH_X86_64=1
@@ -108,7 +108,14 @@
 endif
 
 # AltiVec optims
-ifeq ($(ARCH),PPC)
+ifeq ($(ARCH),powerpc)
+ARCH_PPC = yes
+endif
+ifeq ($(ARCH),powerpc64)
+ARCH_PPC = yes
+endif
+
+ifdef ARCH_PPC
 ifneq ($(AS),)
 SRCS += common/ppc/mc.c common/ppc/pixel.c common/ppc/dct.c \
         common/ppc/quant.c common/ppc/deblock.c \
@@ -253,10 +260,10 @@
 install-lib-dev:
 	install -d $(DESTDIR)$(includedir)
 	install -d $(DESTDIR)$(libdir)
-	install -d $(DESTDIR)$(libdir)/pkgconfig
+	install -d $(DESTDIR)/usr/local/libdata/pkgconfig
 	install -m 644 $(SRCPATH)/x264.h $(DESTDIR)$(includedir)
 	install -m 644 x264_config.h $(DESTDIR)$(includedir)
-	install -m 644 x264.pc $(DESTDIR)$(libdir)/pkgconfig
+	install -m 644 x264.pc $(DESTDIR)/usr/local/libdata/pkgconfig
 
 install-lib-static: lib-static install-lib-dev
 	install -m 644 $(LIBX264) $(DESTDIR)$(libdir)
@@ -274,7 +281,7 @@
 
 uninstall:
 	rm -f $(DESTDIR)$(includedir)/x264.h $(DESTDIR)$(includedir)/x264_config.h $(DESTDIR)$(libdir)/libx264.a
-	rm -f $(DESTDIR)$(bindir)/x264$(EXE) $(DESTDIR)$(libdir)/pkgconfig/x264.pc
+	rm -f $(DESTDIR)$(bindir)/x264$(EXE) $(DESTDIR)/usr/local/libdata/pkgconfig/x264.pc
 ifneq ($(IMPLIBNAME),)
 	rm -f $(DESTDIR)$(bindir)/$(SONAME) $(DESTDIR)$(libdir)/$(IMPLIBNAME)
 else ifneq ($(SONAME),)

--------------030906020705010200020006--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?52ED7DE8.6090500>