]> git.pld-linux.org Git - packages/cinelerra.git/blame - cinelerra-plugindir.patch
- fixed plugindir patch
[packages/cinelerra.git] / cinelerra-plugindir.patch
CommitLineData
288309f5 1diff -Nur cinelerra-4.4.orig/cinelerra/mwindow.C cinelerra-4.4/cinelerra/mwindow.C
2--- cinelerra-4.4.orig/cinelerra/mwindow.C 2012-06-05 07:38:16.000000000 +0100
3+++ cinelerra-4.4/cinelerra/mwindow.C 2012-09-24 20:39:50.888929765 +0100
4@@ -376,7 +376,7 @@
5 char index_path[BCTEXTLEN];
6 FILE *index_fd = 0;
7
8- sprintf(index_path, "%s/%s", path, PLUGIN_FILE);
9+ sprintf(index_path, "%s/%s", preferences->index_directory, PLUGIN_FILE);
10 //printf("MWindow::init_plugin_path %d %s plugindb=%p\n", __LINE__, index_path, plugindb);
11
12
13diff -Nur cinelerra-4.4.orig/cinelerra/preferences.C cinelerra-4.4/cinelerra/preferences.C
14--- cinelerra-4.4.orig/cinelerra/preferences.C 2012-01-07 23:02:41.000000000 +0000
15+++ cinelerra-4.4/cinelerra/preferences.C 2012-09-24 20:39:50.342263049 +0100
16@@ -62,7 +62,10 @@
17
18
19
20- get_exe_path(plugin_dir);
21+ if (CINELERRA_PLUGIN_DIR)
22+ sprintf(plugin_dir, CINELERRA_PLUGIN_DIR);
23+ else
24+ get_exe_path(plugin_dir);
25
26 sprintf(index_directory, BCASTDIR);
27 if(strlen(index_directory))
28diff -Nur cinelerra-4.4.orig/cinelerra/preferences.inc cinelerra-4.4/cinelerra/preferences.inc
29--- cinelerra-4.4.orig/cinelerra/preferences.inc 2008-07-23 05:30:59.000000000 +0100
30+++ cinelerra-4.4/cinelerra/preferences.inc 2012-09-24 20:39:51.568929829 +0100
31@@ -27,6 +27,10 @@
80b33511 32 #define BACKUP_PATH BCASTDIR "backup.xml"
33 #define DEAMON_PORT 400
70526a6a 34
288309f5 35+#ifndef CINELERRA_PLUGIN_DIR
36+#define CINELERRA_PLUGIN_DIR NULL
70526a6a 37+#endif
80b33511 38+
39 class Preferences;
40 class PlaybackConfig;
41 class AudioOutConfig;
288309f5 42--- cinelerra-4.4.orig/cinelerra/Makefile 2012-09-25 18:13:01.004961617 +0100
43+++ cinelerra-4.4/cinelerra/Makefile 2012-09-25 18:13:42.014965455 +0100
44@@ -1,5 +1,6 @@
45 include ../global_config
70526a6a 46
288309f5 47+CINELERRA_PLUGIN_DIR := NULL
48 AVC_DIR := $(shell expr ../thirdparty/libavc1394* )
49 DV_DIR := $(shell expr ../quicktime/thirdparty/libdv-*/ )
50 FLAC_DIR := $(shell expr ../thirdparty/flac*/ )
51@@ -422,8 +423,8 @@
52 -I../libmpeg3 \
53 -I$(SNDFILE_DIR)/src \
54 $(ESOUNDCFLAGS) \
55- -I$(THEORA_DIR)/include
56-
57+ -I$(THEORA_DIR)/include \
58+ -DCINELERRA_PLUGIN_DIR=$(CINELERRA_PLUGIN_DIR)
70526a6a 59
288309f5 60 # Speed up linking with this linking sequence
61 ifeq ($(OBJDIR), alpha)
This page took 0.072256 seconds and 4 git commands to generate.