summaryrefslogtreecommitdiff
path: root/multimedia/omxplayer/patches/patch-omxplayer.cpp
blob: cb4641fa124f8d151755b6a534314360c7e20aef (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
$NetBSD: patch-omxplayer.cpp,v 1.1 2015/01/18 23:09:25 jmcneill Exp $

--- omxplayer.cpp.orig	2015-01-12 15:10:50.000000000 +0000
+++ omxplayer.cpp
@@ -23,7 +23,9 @@
 #include <stdint.h>
 #include <termios.h>
 #include <sys/mman.h>
+#if defined(__linux__)
 #include <linux/fb.h>
+#endif
 #include <sys/ioctl.h>
 #include <getopt.h>
 #include <string.h>
@@ -90,8 +92,8 @@ bool              m_osd                 
 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           = PREFIX "/share/fonts/X11/TTF/FreeSans.ttf";
+std::string       m_italic_font_path    = PREFIX "/share/fonts/X11/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;