1From 81d1f8bc102b23bdfa63a01f252f3e4c74ae7da9 Mon Sep 17 00:00:00 2001
2From: Paul Barker <pbarker@toganlabs.com>
3Date: Thu, 7 Sep 2017 19:14:20 +0000
4Subject: [PATCH] Don't require internet connection during build
5
6The following issues break offline builds:
7
8* Building the man page uses a web service hosted on heroku.
9
10* Makefile.ffmpeg explicitly does a "git clone" from the internet.
11
12Signed-off-by: Paul Barker <pbarker@toganlabs.com>
13Upstream-Status: Inappropriate
14
15---
16 Makefile        | 6 ++----
17 Makefile.ffmpeg | 2 +-
18 2 files changed, 3 insertions(+), 5 deletions(-)
19
20Index: git/Makefile
21===================================================================
22--- git.orig/Makefile
23+++ git/Makefile
24@@ -81,17 +81,14 @@ ffmpeg:
25 	make -f Makefile.ffmpeg
26 	make -f Makefile.ffmpeg install
27
28-dist: omxplayer.bin omxplayer.1
29+dist: omxplayer.bin
30 	mkdir -p $(DIST)/usr/lib/omxplayer
31 	mkdir -p $(DIST)/usr/bin
32 	mkdir -p $(DIST)/usr/share/doc/omxplayer
33-	mkdir -p $(DIST)/usr/share/man/man1
34 	cp omxplayer omxplayer.bin $(DIST)/usr/bin
35 	cp COPYING $(DIST)/usr/share/doc/omxplayer
36 	cp README.md $(DIST)/usr/share/doc/omxplayer/README
37-	cp omxplayer.1 $(DIST)/usr/share/man/man1
38 	cp -P ffmpeg_compiled/usr/lib/*.so* $(DIST)/usr/lib/omxplayer/
39-	tar -czf omxplayer-dist.tar.gz $(DIST)
40
41 install:
42 	cp -r $(DIST)/* /
43Index: git/Makefile.ffmpeg
44===================================================================
45--- git.orig/Makefile.ffmpeg
46+++ git/Makefile.ffmpeg
47@@ -5,7 +5,7 @@ FFMPEG_EXTRA_CFLAGS?=-mfpu=vfp -mfloat-a
48 WORK=$(PWD)
49
50 .PHONY : all
51-all: checkout configure compile
52+all: configure compile
53
54 .PHONY : copy
55 copy:
56