]> git.sesse.net Git - vlc/blob - debian/patches/20_osdmenu-paths.dpatch
* : svn:keywords
[vlc] / debian / patches / 20_osdmenu-paths.dpatch
1 #! /bin/sh -e
2 ##
3 ## All lines beginning with `## DP:' are a description of the patch.
4 ## DP: No description.
5
6 if [ $# -lt 1 ]; then
7     echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
8     exit 1
9 fi
10
11 [ -f debian/patches/00patch-opts ] && . debian/patches/00patch-opts
12 patch_opts="${patch_opts:--f --no-backup-if-mismatch} ${2:+-d $2}"
13
14 case "$1" in
15     -patch) patch -p1 ${patch_opts} < $0;;
16     -unpatch) patch -R -p1 ${patch_opts} < $0;;
17     *)
18         echo "`basename $0`: script expects -patch|-unpatch as argument" >&2
19         exit 1;;
20 esac
21
22 exit 0
23
24 @DPATCH@
25 --- vlc.orig/share/osdmenu/default.cfg
26 +++ vlc/share/osdmenu/default.cfg
27 @@ -1,4 +1,4 @@
28 -dir share/osdmenu/default
29 +dir /usr/share/vlc/osdmenu/default
30  action key-play-pause (0,0)
31         unselect unselected.png
32         select   selection/play_pause.png
33 --- vlc.orig/share/osdmenu/dvd.cfg
34 +++ vlc/share/osdmenu/dvd.cfg
35 @@ -1,4 +1,4 @@
36 -dir share/osdmenu/dvd
37 +dir /usr/share/vlc/osdmenu/dvd
38  action key-play (0,0)
39         unselect unselect/barroff.png
40         select   selection/play.png
41 --- vlc.orig/modules/video_filter/osdmenu.c
42 +++ vlc/modules/video_filter/osdmenu.c
43 @@ -90,7 +90,7 @@
44  #if defined( WIN32 ) || defined( UNDER_CE )
45  #define OSD_DEFAULT_CFG "osdmenu/default.cfg"
46  #else
47 -#define OSD_DEFAULT_CFG "share/osdmenu/default.cfg"
48 +#define OSD_DEFAULT_CFG "/usr/share/vlc/osdmenu/default.cfg"
49  #endif
50  
51  #define OSD_UPDATE_MIN     0