From owner-freebsd-ppc@FreeBSD.ORG Sat Feb 1 23:06:33 2014 Return-Path: Delivered-To: freebsd-ppc@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 45A33130 for ; Sat, 1 Feb 2014 23:06:33 +0000 (UTC) Received: from smtp.fgznet.ch (mail.fgznet.ch [81.92.96.47]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id B50C0161D for ; Sat, 1 Feb 2014 23:06:32 +0000 (UTC) Received: from deuterium.andreas.nets (dhclient-91-190-14-19.flashcable.ch [91.190.14.19]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id s11N6GA0062673; Sun, 2 Feb 2014 00:06:22 +0100 (CET) (envelope-from andreast-list@fgznet.ch) Message-ID: <52ED7DE8.6090500@fgznet.ch> Date: Sun, 02 Feb 2014 00:06:16 +0100 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.2.0 MIME-Version: 1.0 To: Cresente Ulit , freebsd-ppc@freebsd.org Subject: Re: x264 compile error on FreeBSD 10 References: In-Reply-To: Content-Type: multipart/mixed; boundary="------------030906020705010200020006" X-Scanned-By: MIMEDefang 2.64 on 81.92.96.47 X-BeenThere: freebsd-ppc@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to the PowerPC List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 01 Feb 2014 23:06:33 -0000 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--