aboutsummaryrefslogtreecommitdiffstats
path: root/testing/omxplayer/fix-makefile.patch
blob: cc9f466784425f0f33d0ebe7051436f48200317a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
--- omxplayer-7af21f596378e5efeceebedff9c4a298e2d06d98.orig/Makefile
+++ omxplayer-7af21f596378e5efeceebedff9c4a298e2d06d98/Makefile
@@ -46,7 +48,7 @@
 	$(CXX) $(CFLAGS) $(INCLUDES) -c $< -o $@ -Wno-deprecated-declarations
 
 version:
-	bash gen_version.sh > version.h 
+	sh gen_version.sh > version.h 
 
 omxplayer.bin: version $(OBJS)
 	$(CXX) $(LDFLAGS) -o omxplayer.bin $(OBJS) -lvchiq_arm -lvcos -ldbus-1 -lrt -lpthread -lavutil -lavcodec -lavformat -lswscale -lswresample -lpcre
@@ -64,12 +66,9 @@
 	make -f Makefile.ffmpeg
 	make -f Makefile.ffmpeg install
 
-dist: omxplayer.bin
-	mkdir -p $(DIST)/usr/lib/omxplayer
+install: omxplayer.bin
 	mkdir -p $(DIST)/usr/bin
 	mkdir -p $(DIST)/usr/share/doc
-	cp omxplayer omxplayer.bin $(DIST)/usr/bin
+	cp omxplayer.bin $(DIST)/usr/bin/omxplayer
 	cp COPYING $(DIST)/usr/share/doc/
 	cp README.md $(DIST)/usr/share/doc/README
-	cp -a ffmpeg_compiled/usr/local/lib/*.so* $(DIST)/usr/lib/omxplayer/
-	cd $(DIST); tar -czf ../$(DIST).tgz *