Commit 41373a85 authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

contrib: Fix and simplify libvpx build settings.

parent e26b8a04
...@@ -874,30 +874,17 @@ libvpx: ...@@ -874,30 +874,17 @@ libvpx:
$(GIT) clone git://review.webmproject.org/libvpx.git $(GIT) clone git://review.webmproject.org/libvpx.git
ifdef HAVE_WIN32 ifdef HAVE_WIN32
VPX_TARGET=x86-win32-gcc
CROSS=$(HOST)- CROSS=$(HOST)-
else
ifdef HAVE_MACOSX
ifdef HAVE_MACOSX64
VPX_TARGET=x86_64-MACOSX9-gcc
else
ifdef HAVE_MACOSX_ON_INTEL
VPX_TARGET=x86-MACOSX9-gcc
else
VPX_TARGET=ppc32-MACOSX9-gcc
endif
endif
else
VPX_TARGET=FIXME
endif
endif endif
ifdef HAVE_MACOSX_ON_INTEL VPX_TARGET-$(ENABLED) = $(TARGET)
.libvpx: libvpx .yasm VPX_TARGET-$(HAVE_WIN32) = x86-win32-gcc
else
.libvpx: libvpx VPX_DEPS-$(ENABLED) =
endif VLX_DEPS-$(HAVE_MACOSX_ON_INTEL) += .yasm
(cd $<; CROSS=$(CROSS) ./configure --target=$(VPX_TARGET) --disable-install-bins --disable-install-srcs --disable-install-libs --disable-install-docs --disable-examples --disable-vp8-decoder && make && make install)
.libvpx: libvpx $(VPX_DEPS-1)
(cd $<; CROSS=$(CROSS) ./configure --target=$(VPX_TARGET-1) --disable-install-bins --disable-install-srcs --disable-install-libs --disable-install-docs --disable-examples --disable-vp8-decoder && make && make install)
(rm -rf $(PREFIX)/include/vpx/ && mkdir -p $(PREFIX)/include/vpx/; cd $< && cp vpx/*.h vpx_ports/*.h $(PREFIX)/include/vpx/) # Of course, why the hell would one expect it to be listed or in make install? (rm -rf $(PREFIX)/include/vpx/ && mkdir -p $(PREFIX)/include/vpx/; cd $< && cp vpx/*.h vpx_ports/*.h $(PREFIX)/include/vpx/) # Of course, why the hell would one expect it to be listed or in make install?
rm $(PREFIX)/include/vpx/config.h rm $(PREFIX)/include/vpx/config.h
(cd $<; $(RANLIB) libvpx.a && mkdir -p $(PREFIX)/lib && cp libvpx.a $(PREFIX)/lib/) # Of course, why the hell would one expect it to be listed or in make install? (cd $<; $(RANLIB) libvpx.a && mkdir -p $(PREFIX)/lib && cp libvpx.a $(PREFIX)/lib/) # Of course, why the hell would one expect it to be listed or in make install?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment