Projects
Multimedia
omxplayer
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 2
View file
omxplayer.changes
Changed
@@ -1,4 +1,9 @@ ------------------------------------------------------------------- +Fri Sep 20 09:31:32 UTC 2013 - guillaume@opensuse.org + +- Fix font deps and font paths + +------------------------------------------------------------------- Mon Sep 16 14:57:11 UTC 2013 - guillaume@opensuse.org - Initial version: 2013.09.06
View file
omxplayer.spec
Changed
@@ -28,6 +28,8 @@ Patch0: Makefile.include.diff Patch1: Makefile.ffmpeg.diff Patch2: Makefile.diff +Patch3: omxplayer.diff +Patch4: omxplayer.cpp.diff License: GPL-2.0+ BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: pkg-config @@ -38,6 +40,7 @@ %if %{with external_ffmpeg} BuildRequires: ffmpeg-devel %endif +Requires: gnu-free-fonts ExclusiveArch: armv6l armv6hl %description @@ -45,11 +48,13 @@ %prep %setup -q -%patch0 -p0 +%patch0 %if !%{with external_ffmpeg} -%patch1 -p0 +%patch1 %endif -%patch2 -p0 +%patch2 +%patch3 +%patch4 %build %if !%{with external_ffmpeg}
View file
omxplayer.cpp.diff
Added
@@ -0,0 +1,24 @@ +--- omxplayer.cpp.orig 2013-09-20 11:01:13.603205969 +0200 ++++ omxplayer.cpp 2013-09-20 11:01:42.844307046 +0200 +@@ -88,8 +88,8 @@ int m_use_hw_audio + bool m_osd = true; + 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/truetype/FreeSans.ttf"; ++std::string m_italic_font_path = "/usr/share/fonts/truetype/FreeSansOblique.ttf"; + bool m_asked_for_font = false; + bool m_asked_for_italic_font = false; + float m_font_size = 0.055f; +@@ -169,8 +169,8 @@ void print_usage() + printf(" --no-osd do not display status information on screen\n"); + printf(" --subtitles path external subtitles in UTF-8 srt format\n"); + printf(" --font path subtitle font\n"); +- printf(" (default: /usr/share/fonts/truetype/freefont/FreeSans.ttf)\n"); +- printf(" --italic-font path (default: /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf)\n"); ++ printf(" (default: /usr/share/fonts/truetype/FreeSans.ttf)\n"); ++ printf(" --italic-font path (default: /usr/share/fonts/truetype/FreeSansOblique.ttf)\n"); + printf(" --font-size size font size as thousandths of screen height\n"); + printf(" (default: 55)\n"); + printf(" --align left/center subtitle alignment (default: left)\n");
View file
omxplayer.diff
Added
@@ -0,0 +1,21 @@ +--- omxplayer.orig 2013-09-20 10:59:39.933114916 +0200 ++++ omxplayer 2013-09-20 11:00:43.230142347 +0200 +@@ -6,14 +6,14 @@ OMXPLAYER="./omxplayer.bin" + FBSET="/usr/sbin/fbset" + FONT="fonts/FreeSans.ttf" + +-if [ -e /usr/share/fonts/truetype/freefont/FreeSans.ttf ]; then +- FONT="/usr/share/fonts/truetype/freefont/FreeSans.ttf" ++if [ -e /usr/share/fonts/truetype/FreeSans.ttf ]; then ++ FONT="/usr/share/fonts/truetype/FreeSans.ttf" + else + FONT="fonts/FreeSans.ttf" + fi + +-if [ -e /usr/share/fonts/truetype/freefont/FreeSansOblique.ttf ]; then +- ITALIC_FONT="/usr/share/fonts/truetype/freefont/FreeSansOblique.ttf" ++if [ -e /usr/share/fonts/truetype/FreeSansOblique.ttf ]; then ++ ITALIC_FONT="/usr/share/fonts/truetype/FreeSansOblique.ttf" + else + ITALIC_FONT="fonts/FreeSansOblique.ttf" + fi
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.