2022-03-05 17:16:19 +00:00
|
|
|
From 501dd92d440fcfe4862a6f505818d459eccbce27 Mon Sep 17 00:00:00 2001
|
2014-09-24 14:53:51 +00:00
|
|
|
From: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
Date: Wed, 24 Sep 2014 08:47:14 -0600
|
2019-01-03 13:32:27 +00:00
|
|
|
Subject: [PATCH] alarm fixes
|
2014-09-24 14:53:51 +00:00
|
|
|
|
|
|
|
---
|
2022-03-05 17:16:19 +00:00
|
|
|
Makefile | 35 +++++++++++------------------------
|
2017-11-15 01:45:39 +00:00
|
|
|
omxplayer.cpp | 4 ++--
|
2022-03-05 17:16:19 +00:00
|
|
|
2 files changed, 13 insertions(+), 26 deletions(-)
|
2014-09-24 14:53:51 +00:00
|
|
|
|
|
|
|
diff --git a/Makefile b/Makefile
|
2022-03-05 17:16:19 +00:00
|
|
|
index 8d00dec..70cd9a7 100644
|
2014-09-24 14:53:51 +00:00
|
|
|
--- a/Makefile
|
|
|
|
+++ b/Makefile
|
2022-03-05 17:16:19 +00:00
|
|
|
@@ -1,10 +1,10 @@
|
|
|
|
-CFLAGS=-pipe -mfloat-abi=hard -mcpu=arm1176jzf-s -fomit-frame-pointer -mabi=aapcs-linux -mtune=arm1176jzf-s -mfpu=vfp -Wno-psabi -g
|
|
|
|
+CFLAGS=-pipe -fomit-frame-pointer -march=armv7-a -mfloat-abi=hard -mfpu=neon -Wno-psabi -g
|
2014-08-10 22:08:37 +00:00
|
|
|
CFLAGS+=-std=c++0x -D__STDC_CONSTANT_MACROS -D__STDC_LIMIT_MACROS -DTARGET_POSIX -DTARGET_LINUX -fPIC -DPIC -D_REENTRANT -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -DHAVE_CMAKE_CONFIG -D__VIDEOCORE4__ -U_FORTIFY_SOURCE -Wall -DHAVE_OMXLIB -DUSE_EXTERNAL_FFMPEG -DHAVE_LIBAVCODEC_AVCODEC_H -DHAVE_LIBAVUTIL_OPT_H -DHAVE_LIBAVUTIL_MEM_H -DHAVE_LIBAVUTIL_AVUTIL_H -DHAVE_LIBAVFORMAT_AVFORMAT_H -DHAVE_LIBAVFILTER_AVFILTER_H -DHAVE_LIBSWRESAMPLE_SWRESAMPLE_H -DOMX -DOMX_SKIP64BIT -ftree-vectorize -DUSE_EXTERNAL_OMX -DTARGET_RASPBERRY_PI -DUSE_EXTERNAL_LIBBCM_HOST
|
|
|
|
|
2022-03-05 17:16:19 +00:00
|
|
|
-LDFLAGS=-L$(SDKSTAGE)/opt/vc/lib/
|
2017-11-15 01:45:39 +00:00
|
|
|
-LDFLAGS+=-L./ -Lffmpeg_compiled/usr/local/lib/ -lc -lbrcmGLESv2 -lbrcmEGL -lbcm_host -lopenmaxil -lfreetype -lz -lasound
|
2022-03-05 17:16:19 +00:00
|
|
|
+LDFLAGS=-L$(SDKSTAGE)/opt/vc/lib/ -L/usr/lib/ffmpeg4.4
|
2017-11-15 01:45:39 +00:00
|
|
|
+LDFLAGS+=-L./ -lc -lbrcmGLESv2 -lbrcmEGL -lbcm_host -lopenmaxil -lfreetype -lz -lasound
|
2014-08-10 22:08:37 +00:00
|
|
|
|
2017-11-15 01:45:39 +00:00
|
|
|
-INCLUDES+=-I./ -Ilinux -Iffmpeg_compiled/usr/local/include/ -I /usr/include/dbus-1.0 -I /usr/lib/arm-linux-gnueabihf/dbus-1.0/include -I/usr/include/freetype2 -isystem$(SDKSTAGE)/opt/vc/include -isystem$(SDKSTAGE)/opt/vc/include/interface/vcos/pthreads
|
2022-03-05 17:16:19 +00:00
|
|
|
+INCLUDES+=-I./ -Ilinux -I/usr/include/dbus-1.0 -I/usr/lib/dbus-1.0/include -I/usr/include/freetype2 -I/opt/vc/include -I/usr/include/ffmpeg4.4
|
2014-08-10 22:08:37 +00:00
|
|
|
|
|
|
|
DIST ?= omxplayer-dist
|
2017-11-15 01:45:39 +00:00
|
|
|
STRIP ?= strip
|
2022-03-05 17:16:19 +00:00
|
|
|
@@ -42,7 +42,7 @@ SRC= linux/XMemUtils.cpp \
|
2014-08-10 22:08:37 +00:00
|
|
|
|
|
|
|
OBJS+=$(filter %.o,$(SRC:.cpp=.o))
|
|
|
|
|
|
|
|
-all: dist
|
|
|
|
+all: omxplayer.bin
|
|
|
|
|
|
|
|
%.o: %.cpp
|
|
|
|
@rm -f $@
|
2022-03-05 17:16:19 +00:00
|
|
|
@@ -54,7 +54,7 @@ version:
|
2014-08-10 22:08:37 +00:00
|
|
|
bash gen_version.sh > version.h
|
|
|
|
|
|
|
|
omxplayer.bin: version $(OBJS)
|
2016-05-10 00:44:14 +00:00
|
|
|
- $(CXX) $(LDFLAGS) -o omxplayer.bin $(OBJS) -lvchiq_arm -lvchostif -lvcos -ldbus-1 -lrt -lpthread -lavutil -lavcodec -lavformat -lswscale -lswresample -lpcre
|
|
|
|
+ $(CXX) -o omxplayer.bin $(OBJS) $(LDFLAGS) -lvchiq_arm -lvchostif -lvcos -ldbus-1 -lrt -lpthread -lavutil -lavcodec -lavformat -lswscale -lswresample -lpcre
|
2014-08-10 22:08:37 +00:00
|
|
|
$(STRIP) omxplayer.bin
|
|
|
|
|
|
|
|
help.h: README.md Makefile
|
2022-03-05 17:16:19 +00:00
|
|
|
@@ -77,25 +77,12 @@ clean:
|
2014-08-10 22:08:37 +00:00
|
|
|
@rm -rf $(DIST)
|
|
|
|
@rm -f omxplayer-dist.tar.gz
|
|
|
|
|
|
|
|
-ffmpeg:
|
|
|
|
- @rm -rf ffmpeg
|
|
|
|
- make -f Makefile.ffmpeg
|
|
|
|
- make -f Makefile.ffmpeg install
|
|
|
|
-
|
|
|
|
-dist: omxplayer.bin omxplayer.1
|
|
|
|
- mkdir -p $(DIST)/usr/lib/omxplayer
|
|
|
|
- mkdir -p $(DIST)/usr/bin
|
|
|
|
- mkdir -p $(DIST)/usr/share/doc/omxplayer
|
|
|
|
- mkdir -p $(DIST)/usr/share/man/man1
|
|
|
|
- cp omxplayer omxplayer.bin $(DIST)/usr/bin
|
|
|
|
- cp COPYING $(DIST)/usr/share/doc/omxplayer
|
|
|
|
- cp README.md $(DIST)/usr/share/doc/omxplayer/README
|
|
|
|
- cp omxplayer.1 $(DIST)/usr/share/man/man1
|
2016-03-24 00:28:00 +00:00
|
|
|
- cp -P ffmpeg_compiled/usr/local/lib/*.so* $(DIST)/usr/lib/omxplayer/
|
2014-08-10 22:08:37 +00:00
|
|
|
- cd $(DIST); tar -czf ../$(DIST).tgz *
|
2017-11-15 01:45:39 +00:00
|
|
|
-
|
|
|
|
install:
|
|
|
|
- cp -r $(DIST)/* /
|
2014-08-10 22:08:37 +00:00
|
|
|
+ install -d $(DESTDIR)/usr/bin
|
|
|
|
+ install -d $(DESTDIR)/usr/share/doc/omxplayer
|
|
|
|
+ install omxplayer $(DESTDIR)/usr/bin/
|
|
|
|
+ install omxplayer.bin $(DESTDIR)/usr/bin/
|
|
|
|
+ install README.md COPYING $(DESTDIR)/usr/share/doc/omxplayer/
|
2017-11-15 01:45:39 +00:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -rf /usr/bin/omxplayer
|
2015-02-28 01:59:53 +00:00
|
|
|
diff --git a/omxplayer.cpp b/omxplayer.cpp
|
2022-03-05 17:16:19 +00:00
|
|
|
index b20ffb7..333bf5f 100644
|
2015-02-28 01:59:53 +00:00
|
|
|
--- a/omxplayer.cpp
|
|
|
|
+++ b/omxplayer.cpp
|
2022-03-05 17:16:19 +00:00
|
|
|
@@ -84,8 +84,8 @@ bool m_osd = !is_model_pi4() && !is_fkms_active();
|
2015-02-28 01:59:53 +00:00
|
|
|
bool m_no_keys = false;
|
|
|
|
std::string m_external_subtitles_path;
|
|
|
|
bool m_has_external_subtitles = false;
|
|
|
|
-std::string m_font_path = "/usr/share/fonts/truetype/freefont/FreeSans.ttf";
|
|
|
|
-std::string m_italic_font_path = "/usr/share/fonts/truetype/freefont/FreeSansOblique.ttf";
|
|
|
|
+std::string m_font_path = "/usr/share/fonts/TTF/FreeSans.ttf";
|
|
|
|
+std::string m_italic_font_path = "/usr/share/fonts/TTF/FreeSansOblique.ttf";
|
|
|
|
std::string m_dbus_name = "org.mpris.MediaPlayer2.omxplayer";
|
|
|
|
bool m_asked_for_font = false;
|
|
|
|
bool m_asked_for_italic_font = false;
|
2014-09-24 14:53:51 +00:00
|
|
|
--
|
2022-03-05 17:16:19 +00:00
|
|
|
2.35.1
|
2014-09-24 14:53:51 +00:00
|
|
|
|