x264 compile error on FreeBSD 10
Andreas Tobler
andreast-list at fgznet.ch
Sat Feb 1 23:06:33 UTC 2014
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
-------------- next part --------------
--- 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),)
More information about the freebsd-ppc
mailing list