Commit a2b6035d authored by Rafaël Carré's avatar Rafaël Carré

vpx: fix FreeBSD build

Change bash location if it isn't in /bin
Use 'linux' OS

Patches inspired from FreeBSD port
parent 8f1c7e12
...@@ -8,12 +8,19 @@ $(TARBALLS)/libvpx-$(VPX_VERSION).tar.bz2: ...@@ -8,12 +8,19 @@ $(TARBALLS)/libvpx-$(VPX_VERSION).tar.bz2:
.sum-vpx: libvpx-$(VPX_VERSION).tar.bz2 .sum-vpx: libvpx-$(VPX_VERSION).tar.bz2
ifneq ($(which bash),/bin/bash)
PATCH_BASH_LOCATION=sed -i.orig s,^\#!/bin/bash,\#!`which bash`,g `grep -Rl ^\#!/bin/bash libvpx-$(VPX_VERSION)`
else
PATCH_BASH_LOCATION=true #bash is in /bin
endif
libvpx: libvpx-$(VPX_VERSION).tar.bz2 .sum-vpx libvpx: libvpx-$(VPX_VERSION).tar.bz2 .sum-vpx
$(UNPACK) $(UNPACK)
$(APPLY) $(SRC)/vpx/libvpx-no-cross.patch $(APPLY) $(SRC)/vpx/libvpx-no-cross.patch
$(APPLY) $(SRC)/vpx/libvpx-no-abi.patch $(APPLY) $(SRC)/vpx/libvpx-no-abi.patch
$(APPLY) $(SRC)/vpx/libvpx-win64.patch $(APPLY) $(SRC)/vpx/libvpx-win64.patch
$(APPLY) $(SRC)/vpx/libvpx-darwin10.patch $(APPLY) $(SRC)/vpx/libvpx-darwin10.patch
$(PATCH_BASH_LOCATION)
$(MOVE) $(MOVE)
DEPS_vpx = DEPS_vpx =
...@@ -58,6 +65,8 @@ else ifdef HAVE_WIN64 # must be before WIN32 ...@@ -58,6 +65,8 @@ else ifdef HAVE_WIN64 # must be before WIN32
VPX_OS := win64 VPX_OS := win64
else ifdef HAVE_WIN32 else ifdef HAVE_WIN32
VPX_OS := win32 VPX_OS := win32
else ifdef HAVE_BSD
VPX_OS := linux
endif endif
VPX_TARGET := generic-gnu VPX_TARGET := generic-gnu
......
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