]> git.pld-linux.org Git - packages/SDLcam.git/blame - SDLcam-path.patch
- added gcc33 patch, use optflags
[packages/SDLcam.git] / SDLcam-path.patch
CommitLineData
350c83a3 1diff -urN SDLcam-0.7.3.orig/SDL_v4l_filters.c SDLcam-0.7.3/SDL_v4l_filters.c
2--- SDLcam-0.7.3.orig/SDL_v4l_filters.c Mon Sep 9 17:10:46 2002
3+++ SDLcam-0.7.3/SDL_v4l_filters.c Mon Sep 9 17:13:24 2002
4@@ -310,8 +310,8 @@
5 g_filter_stats.reorder_radius = 45;
6 g_filter_stats.reorder_effekt = 0.8;
7 g_filter_stats.plugin = NULL;
8- Fetch_Plugins ("/usr/local/lib/SDLcam/filters", 0);
9- Fetch_Plugins ("/usr/local/lib/SDLcam/capture", 1);
10+ Fetch_Plugins ("/usr/X11R6/lib/SDLcam/filters", 0);
11+ Fetch_Plugins ("/usr/X11R6/lib/SDLcam/capture", 1);
12 Fetch_Plugins ("./filter" , 0);
13 Fetch_Plugins ("./capture", 1);
14 printf("Done!\n");
15diff -urN SDLcam-0.7.3.orig/SDLcam.xml SDLcam-0.7.3/SDLcam.xml
16--- SDLcam-0.7.3.orig/SDLcam.xml Mon Sep 9 17:10:46 2002
17+++ SDLcam-0.7.3/SDLcam.xml Mon Sep 9 17:12:52 2002
18@@ -124,7 +124,7 @@
19 <Spezial tab="4" font="2" left="100" top="50" name="reorder" fg="green"/>
20
21 <Source tab="5" font="2" left="84" top="50" device="/dev/v4l/video0" fg="green" type="Webcam" width="320" height="240">Philips</Source>
22- <Source tab="5" font="2" left="0" top="50" device="/usr/local/share/SDLcam/smpte.jpeg" fg="green" type="jpeg" >Jpeg</Source>
23+ <Source tab="5" font="2" left="0" top="50" device="/usr/X11R6/share/SDLcam/smpte.jpeg" fg="green" type="jpeg" >Jpeg</Source>
24 </Elements>
25 </GUILayout>
26 </SDLcam>
27diff -urN SDLcam-0.7.3.orig/configuration.h SDLcam-0.7.3/configuration.h
28--- SDLcam-0.7.3.orig/configuration.h Mon Sep 9 17:10:46 2002
29+++ SDLcam-0.7.3/configuration.h Mon Sep 9 17:13:40 2002
30@@ -24,7 +24,7 @@
31 #endif
32
33
34-#define RESSOURCE_PATH "/usr/local/share/SDLcam/"
35+#define RESSOURCE_PATH "/usr/X11R6/share/SDLcam/"
36
37 #define DEFAULT_CAPTURE_RATE 20
38
39diff -urN SDLcam-0.7.3.orig/interface.cpp SDLcam-0.7.3/interface.cpp
40--- SDLcam-0.7.3.orig/interface.cpp Mon Sep 9 17:10:46 2002
41+++ SDLcam-0.7.3/interface.cpp Mon Sep 9 17:12:19 2002
42@@ -719,10 +719,10 @@
43 XML_Theme ("SDLcam.xml");
44 return;
45 }
46- tmp_file = fopen("/usr/local/share/SDLcam/SDLcam.xml", "r");
47+ tmp_file = fopen("/usr/X11R6/share/SDLcam/SDLcam.xml", "r");
48 if (tmp_file != NULL) {
49 fclose(tmp_file);
50- XML_Theme ("/usr/local/share/SDLcam/SDLcam.xml");
51+ XML_Theme ("/usr/X11R6/share/SDLcam/SDLcam.xml");
52 return;
53 }
54 fprintf(stderr, "Could not find/open SDLcam.xml. Aborting\n");
2264acc2 55diff -urN SDLcam-0.7.3.orig/main.cpp SDLcam-0.7.3/main.cpp
56--- SDLcam-0.7.3.orig/main.cpp Thu Oct 3 14:07:46 2002
57+++ SDLcam-0.7.3/main.cpp Thu Oct 3 14:51:30 2002
58@@ -89,8 +89,8 @@
59 }}}
60 if (neu == NULL) {{{
61 newInput make = NULL;
62- char *TYPE = (char*) xMalloc (strlen ("sources/.so") + strlen (type) + 2);
63- sprintf(TYPE, "sources/%s.so", type);
64+ char *TYPE = (char*) xMalloc (strlen ("/usr/X11R6/lib/SDLcam/sources/.so") + strlen (type) + 2);
65+ sprintf(TYPE, "/usr/X11R6/lib/SDLcam/sources/%s.so", type);
66 void *handle = dlopen (TYPE, RTLD_NOW);
67 free (TYPE);
68 if (handle == NULL) {
This page took 0.088627 seconds and 4 git commands to generate.