]> git.pld-linux.org Git - packages/cinelerra.git/blob - cinelerra-system-libs.patch
- updated
[packages/cinelerra.git] / cinelerra-system-libs.patch
1 --- cinelerra-4/cinelerra/Makefile.orig 2008-08-08 08:29:31.000000000 +0200
2 +++ cinelerra-4/cinelerra/Makefile      2008-08-28 17:53:28.910125929 +0200
3 @@ -1,33 +1,14 @@
4  include ../global_config
5  
6 -AVC_DIR := $(shell expr ../thirdparty/libavc1394* )
7 -DV_DIR := $(shell expr ../quicktime/thirdparty/libdv-*/ )
8 -FLAC_DIR := $(shell expr ../thirdparty/flac*/ )
9 -FFMPEG_DIR := $(shell expr ../quicktime/thirdparty/ffmpeg* )
10 -JPEG_DIR := $(shell expr ../quicktime/thirdparty/jpeg-mmx* )
11 -LAME_DIR := ../quicktime/thirdparty/lame-3.93.1/include
12 -LIBIEC_DIR := $(shell expr ../thirdparty/libiec61883* )
13 -LIBRAW_DIR := $(shell expr ../thirdparty/libraw1394* )
14 -OGG_DIR := $(shell expr ../quicktime/thirdparty/libogg* )
15 -SNDFILE_DIR := $(shell expr ../thirdparty/libsndfile* )
16 -THEORA_DIR := $(shell expr ../thirdparty/libtheora* )
17 -TIFF_DIR := ../thirdparty/tiff-v3.5.7
18  TOOLAME_DIR := ../thirdparty/toolame-02l
19 -UUID_DIR := ../thirdparty/uuid
20 -VORBIS_DIR := $(shell expr ../quicktime/thirdparty/libvorbis* )
21  
22 -AVC_LIB := $(AVC_DIR)/libavc1394/.libs/libavc1394.a $(AVC_DIR)/librom1394/.libs/librom1394.a
23 -RAW_LIB := $(LIBRAW_DIR)/src/.libs/libraw1394.a
24 -IEC_LIB := $(LIBIEC_DIR)/src/.libs/libiec61883.a
25 -SNDFILE_LIB := $(SNDFILE_DIR)/src/.libs/libsndfile.a
26 -THEORA_LIB := $(THEORA_DIR)/lib/.libs/libtheora.a
27 -EXR_LIBS :=  \
28 -       ../thirdparty/lib/libIlmImf.a \
29 -       ../thirdparty/lib/libIlmThread.a \
30 -       ../thirdparty/lib/libImath.a \
31 -       ../thirdparty/lib/libHalf.a \
32 -       ../thirdparty/lib/libIex.a
33 -EXR_INCLUDES := -I../thirdparty/include/OpenEXR
34 +AVC_LIB := -lavc1394 -lrom1394
35 +RAW_LIB := -lraw1394
36 +IEC_LIB := -liec61883
37 +SNDFILE_LIB := -lsndfile
38 +THEORA_LIB := -ltheora
39 +EXR_LIBS :=  -lIlmImf -lIlmThread -lImath -lHalf -lIex
40 +EXR_INCLUDES := -I/usr/include/OpenEXR
41  OBJS = \
42         $(OBJDIR)/aattachmentpoint.o \
43         $(OBJDIR)/aautomation.o \
44 @@ -331,34 +312,16 @@
45  
46  
47  STATICLIBS = \
48 -       $(AVC_LIB) \
49 -       $(RAW_LIB) \
50 -       $(IEC_LIB) \
51 -       ../quicktime/$(OBJDIR)/libquicktime.a \
52 -        $(ESOUNDLIBS) \
53 -       $(EXR_LIBS) \
54 -       $(FLAC_DIR)/src/libFLAC/.libs/libFLAC.a \
55 -       $(TIFF_DIR)/$(OBJDIR)/libtiff.a \
56         ../guicast/$(OBJDIR)/libguicast.a \
57 -       ../libmpeg3/$(OBJDIR)/libmpeg3.a \
58 -       $(SNDFILE_LIB) \
59 -       $(UUID_DIR)/$(OBJDIR)/libuuid.a \
60         ../mpeg2enc/$(OBJDIR)/mpeg2enc.a \
61         $(TOOLAME_DIR)/$(OBJDIR)/toolame.a \
62 -       $(THEME_DATA) \
63 -       $(THEORA_LIB)
64 +       $(THEME_DATA)
65  
66  LIBS := \
67         -L./ \
68         -L../guicast
69  
70  
71 -ifeq ($(OBJDIR), x86_64)
72 -LIBS += -L/usr/X11R6/lib64
73 -else
74 -LIBS += -L/usr/X11R6/lib
75 -endif
76 -
77  ifeq ($(HAVE_GL), y)
78  LIBS += -lGL -lGLU
79  endif
80 @@ -372,6 +334,19 @@
81  
82  
83  LIBS += \
84 +       $(AVC_LIB) \
85 +       $(RAW_LIB) \
86 +       $(IEC_LIB) \
87 +       -lquicktime -lvorbisfile \
88 +       -lavformat \
89 +       $(ESOUNDLIBS) \
90 +       $(EXR_LIBS) \
91 +       -lFLAC \
92 +       -ltiff \
93 +       -lmpeg3 \
94 +       $(SNDFILE_LIB) \
95 +       -luuid \
96 +       $(THEORA_LIB) \
97         -lX11 \
98         -lXext \
99         -lXv \
100 @@ -390,26 +365,20 @@
101  
102  CFLAGS += \
103         -I../guicast \
104 -       -I../quicktime \
105 -       -I$(JPEG_DIR) \
106 -       -I$(DV_DIR) \
107 -       -I$(OGG_DIR)/include \
108 -       -I$(VORBIS_DIR)/include \
109 -       -I$(LIBRAW_DIR)/ \
110 -       -I$(AVC_DIR) \
111 -       -I$(LIBIEC_DIR)/src/ \
112 -       -I$(TIFF_DIR)/libtiff \
113 -       -I$(UUID_DIR) \
114 +       -I/usr/include/quicktime \
115 +       -I/usr/include/libdv \
116 +       -I/usr/include/libraw1394 \
117 +       -I/usr/include/libiec61883 \
118 +       -I/usr/include/uuid \
119         -I$(TOOLAME_DIR) \
120 -       -I$(LAME_DIR) \
121 -       -I../libmpeg3 \
122 -       -I$(SNDFILE_DIR)/src \
123 +       -I/usr/include/lame \
124 +       -I/usr/include/libmpeg3 \
125         $(ESOUNDCFLAGS) \
126 -       -I$(THEORA_DIR)/include
127 +       -I/usr/include/theora
128  
129  
130  # Speed up linking with this linking sequence
131 -ifeq ($(OBJDIR), alpha)
132 +ifeq ($(OBJDIR), alpha-ccc)
133  
134  
135  
136 @@ -431,10 +431,9 @@
137  
138  FFMPEG_CFLAGS := \
139         $(CFLAGS) \
140 -       -I$(FFMPEG_DIR)/libavcodec \
141 -       -I$(FFMPEG_DIR)/libavformat \
142 -       -I$(FFMPEG_DIR)/libavutil \
143 -       -I$(FFMPEG_DIR)
144 +       -I/usr/include/libavcodec \
145 +       -I/usr/include/libavformat \
146 +       -I/usr/include/libavutil
147  
148  
149  $(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
150 @@ -519,7 +488,7 @@
151         $(CC) -c `cat $(OBJDIR)/c_flags` $(EXR_INCLUDES) $(subst $(OBJDIR)/,, $*.C) -o $*.o
152  
153  $(FILEFLAC): fileflac.C
154 -       $(CC) -c `cat $(OBJDIR)/c_flags` -I$(FLAC_DIR)/include $(subst $(OBJDIR)/,, $*.C) -o $*.o
155 +       $(CC) -c `cat $(OBJDIR)/c_flags` -I/usr/include/FLAC $(subst $(OBJDIR)/,, $*.C) -o $*.o
156  
157  $(FFMPEG_OBJS):
158         $(CC) -c `cat $(OBJDIR)/ffmpeg_cflags` $(subst $(OBJDIR)/,, $*.C) -o $*.o
159 --- cinelerra-1.1.8/mpeg2enc/Makefile.orig      2003-10-14 09:54:43.000000000 +0200
160 +++ cinelerra-1.1.8/mpeg2enc/Makefile   2003-11-12 22:23:56.387225920 +0100
161 @@ -1,6 +1,6 @@
162  include ../global_config
163  CC = gcc
164 -CFLAGS += -I../libmpeg3 -I../quicktime
165 +CFLAGS += -I/usr/include/libmpeg3 -I/usr/include/quicktime
166  
167  
168  ifeq ($(OBJDIR), i686)
169 @@ -48,8 +48,8 @@
170         $(OBJDIR)/writepic.o
171  
172  LIBS = \
173 -       ../../quicktime/$(OBJDIR)/libquicktime.a \
174 -       ../../libmpeg3/$(OBJDIR)/libmpeg3.a \
175 +       -lquicktime \
176 +       -lmpeg3 \
177         -lpthread \
178         -lpng \
179         -lz \
180 --- cinelerra-1.1.8/mplexlo/Makefile.orig       2003-10-14 09:54:14.000000000 +0200
181 +++ cinelerra-1.1.8/mplexlo/Makefile    2003-11-12 22:06:01.235673800 +0100
182 @@ -2,12 +2,12 @@
183  
184  OBJS = $(OBJDIR)/mplex.o
185  CC = gcc
186 -CFLAGS += -I../libmpeg3
187 +CFLAGS += -I/usr/include/libmpeg3
188  
189  OUTPUT := $(OBJDIR)/mplexlo
190  
191  $(OUTPUT): $(OBJS)
192 -       $(CC) -o $(OUTPUT) $(OBJS) ../libmpeg3/$(OBJDIR)/libmpeg3.a -lpthread -lm
193 +       $(CC) -o $(OUTPUT) $(OBJS) -lmpeg3 -lpthread -lm
194  
195  $(OBJS):
196         $(CC) -c $(CFLAGS) $(subst $(OBJDIR)/,, $*.c) -o $*.o
197 --- cinelerra-4/plugins/titler/Makefile~        2008-09-02 14:38:09.000000000 +0300
198 +++ cinelerra-4/plugins/titler/Makefile 2009-07-07 11:50:40.564300866 +0300
199 @@ -8,8 +8,8 @@
200  
201  
202  OUTPUT = $(PLUGIN_DIR)/titler.plugin
203 -CFLAGS += -I$(FREETYPE_DIR)/include -I../../thirdparty/
204 -LFLAGS += $(FREETYPE_DIR)/$(OBJDIR)/libfreetype.a
205 +CFLAGS += -I/usr/include/freetype2
206 +LFLAGS += -lfreetype
207  
208  include ../../plugin_config
209  
210 --- cinelerra-4/global_config.orig      2008-08-07 05:33:09.000000000 +0200
211 +++ cinelerra-4/global_config   2008-08-28 17:31:46.010117548 +0200
212 @@ -36,7 +36,7 @@
213  
214  ############################# FINAL DESTINATION FOR INSTALLATION BINARIES
215  
216 -PREFIX = /usr/
217 +PREFIX = /usr
218  LIBPREFIX = $(PREFIX)/lib
219  
220  
221 @@ -64,10 +64,10 @@
222  
223  
224  ifeq ($(HAVE_ESOUND), y)
225 -ESOUND_DIR := ../thirdparty/esound
226 -AUDIOFILE_DIR := ../thirdparty/audiofile
227 -ESOUNDCFLAGS = -DHAVE_ESOUND -I$(ESOUND_DIR) -I$(AUDIOFILE_DIR)
228 -ESOUNDLIBS = $(ESOUND_DIR)/$(OBJDIR)/libesound.a
229 +AUDIOFILEDIR=
230 +ESOUNDDIR=
231 +ESOUNDCFLAGS = -DHAVE_ESOUND
232 +ESOUNDLIBS = -lesd
233  endif
234  
235  
236 @@ -76,8 +76,8 @@
237  #CFLAGS += -I.      # Caused fileavi.C to fail
238  
239  # the directory for plugin includes
240 -FREETYPE_DIR := $(shell expr ../../thirdparty/freetype-* )
241 -CFLAGS += -I$(FREETYPE_DIR)/include -I../../
242 +FREETYPE_DIR =
243 +CFLAGS += -I/usr/include/freetype2
244  
245  ifeq ($(HAVE_OSS), y)
246  CFLAGS += -DHAVE_OSS
247 @@ -91,7 +91,7 @@
248  CFLAGS += $(ALSA_CFLAGS)
249  endif
250  
251 -ifeq ($(OBJDIR), alpha)
252 +ifeq ($(OBJDIR), alpha-ccc)
253  CXXREPOSITORY = cxx_repository/*.o
254  endif
255  
256 --- cinelerra-1.1.8/plugin_config.orig  2003-10-14 09:53:58.000000000 +0200
257 +++ cinelerra-1.1.8/plugin_config       2003-11-12 22:22:42.189505688 +0100
258 @@ -1,6 +1,6 @@
259  CFLAGS += -I../ -I../../cinelerra \
260         -I../../guicast \
261 -       -I../../quicktime \
262 +       -I/usr/include/quicktime \
263         -I../colors \
264         -fPIC
265  
266 --- cinelerra-2.0/guicast/Makefile.orig 2005-11-01 14:30:52.865839000 +0100
267 +++ cinelerra-2.0/guicast/Makefile      2005-11-01 14:41:01.161364152 +0100
268 @@ -2,9 +2,9 @@
269  
270  # Need the freetype include that matches the X server for Xft rendering
271  #FREETYPE_DIR := ..//usr/X11R6/include/freetype2
272 -FREETYPE_DIR := $(shell expr ../freetype*/include )
273 +#FREETYPE_DIR := $(shell expr ../freetype*/include )
274  
275 -CFLAGS += -I../quicktime -I$(FREETYPE_DIR)
276 +CFLAGS += -I/usr/include/quicktime -I/usr/include/freetype2
277  
278  # must only define here so applications using libpng don't see any of the XFT
279  # includes at all.  They use a conflicting setjmp.
280 --- cinelerra-2.0/cinelerra/avc1394control.h.orig       2005-09-11 22:13:22.000000000 +0200
281 +++ cinelerra-2.0/cinelerra/avc1394control.h    2005-11-01 16:49:01.785731768 +0100
282 @@ -3,11 +3,11 @@
283  
284  
285  #include "bcwindowbase.inc"
286 -#include "librom1394/rom1394.h"
287 -#include "libavc1394/avc1394.h"
288 -#include "libavc1394/avc1394_vcr.h"
289 +#include <libavc1394/rom1394.h>
290 +#include <libavc1394/avc1394.h>
291 +#include <libavc1394/avc1394_vcr.h>
292  #include "mutex.inc"
293 -#include "libraw1394/raw1394.h"
294 +#include <libraw1394/raw1394.h>
295  #include <sys/types.h>
296  #include <stdio.h>
297  #include <errno.h>
298 --- cinelerra-2.0/cinelerra/fileogg.h.orig      2005-09-07 23:25:21.000000000 +0200
299 +++ cinelerra-2.0/cinelerra/fileogg.h   2005-11-01 17:03:29.505818264 +0100
300 @@ -1,7 +1,7 @@
301  #ifndef FILEOGG_H
302  #define FILEOGG_H
303  
304 -#include "../config.h"
305 +#include "../hvirtual_config.h"
306  #include "filebase.h"
307  #include "file.inc"
308  
This page took 0.697651 seconds and 3 git commands to generate.