OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

298 lines
9.6 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../cinelerra/world.patch
  5. # Copyright (C) 2006 The OpenSDE Project
  6. # Copyright (C) 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This patch file is dual-licensed. It is available under the license the
  11. # patched project is licensed under, as long as it is an OpenSource license
  12. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  13. # of the GNU General Public License as published by the Free Software
  14. # Foundation; either version 2 of the License, or (at your option) any later
  15. # version.
  16. # --- SDE-COPYRIGHT-NOTE-END ---
  17. diff -ur cinelerra-2.1.orig/build/Makefile.cinelerra cinelerra-2.1/build/Makefile.cinelerra
  18. --- cinelerra-2.1.orig/build/Makefile.cinelerra 2006-10-11 20:50:15.286456500 +0200
  19. +++ cinelerra-2.1/build/Makefile.cinelerra 2006-10-11 20:52:02.405151000 +0200
  20. @@ -5,9 +5,7 @@
  21. DIRS := \
  22. doc \
  23. - libmpeg3 \
  24. mpeg2enc \
  25. - mplexlo \
  26. guicast \
  27. cinelerra \
  28. plugins \
  29. @@ -23,22 +21,10 @@
  30. all: $(OBJDIR)/soundtest
  31. -ifeq ($(HAVE_FIREWIRE), y)
  32. - $(MAKE) -C libraw1394*
  33. $(MAKE) -C libiec61883*
  34. - $(MAKE) -C libavc1394*
  35. -endif
  36. - $(MAKE) -C fftw*
  37. - $(MAKE) -f build/Makefile.esound
  38. - $(MAKE) -f build/Makefile.freetype
  39. - $(MAKE) -f build/Makefile.tiff
  40. $(MAKE) -f build/Makefile.toolame
  41. $(MAKE) -f build/Makefile.uuid
  42. - MAKE='make -j1' make -j1 -C mjpegtools*
  43. - $(MAKE) -C libsndfile*
  44. $(MAKE) -C quicktime
  45. - $(MAKE) -C libtheora*
  46. - $(MAKE) -f build/Makefile.exr
  47. @ for i in $(DIRS) ; \
  48. do \
  49. $(MAKE) -C $$i ; \
  50. @@ -83,8 +69,6 @@
  51. install:
  52. $(MAKE) -C cinelerra install
  53. $(MAKE) -C plugins install
  54. - $(MAKE) -C libmpeg3 install
  55. - $(MAKE) -C mplexlo install
  56. $(MAKE) -C po install
  57. cp $(OBJDIR)/soundtest /usr/bin
  58. diff -ur cinelerra-2.1.orig/cinelerra/Makefile cinelerra-2.1/cinelerra/Makefile
  59. --- cinelerra-2.1.orig/cinelerra/Makefile 2006-10-11 20:51:04.481531000 +0200
  60. +++ cinelerra-2.1/cinelerra/Makefile 2006-10-11 20:52:58.244640750 +0200
  61. @@ -16,11 +16,11 @@
  62. UUID_DIR := ../uuid
  63. VORBIS_DIR := $(shell expr ../quicktime/libvorbis* )
  64. -AVC_LIB := $(AVC_DIR)/libavc1394/.libs/libavc1394.a $(AVC_DIR)/librom1394/.libs/librom1394.a
  65. -RAW_LIB := $(LIBRAW_DIR)/src/.libs/libraw1394.a
  66. +AVC_LIB := -lavc1394 -lrom1394
  67. +RAW_LIB := -lraw1394
  68. IEC_LIB := $(LIBIEC_DIR)/src/.libs/libiec61883.a
  69. -SNDFILE_LIB := $(SNDFILE_DIR)/src/.libs/libsndfile.a
  70. -THEORA_LIB := $(THEORA_DIR)/lib/.libs/libtheora.a
  71. +SNDFILE_LIB := -lsndfile
  72. +THEORA_LIB := -ltheora
  73. OBJS = \
  74. $(OBJDIR)/aattachmentpoint.o \
  75. @@ -322,11 +322,11 @@
  76. $(RAW_LIB) \
  77. $(IEC_LIB) \
  78. ../quicktime/$(OBJDIR)/libquicktime.a \
  79. - $(ESOUNDLIBS) \
  80. - $(EXR_DIR)/$(OBJDIR)/libexr.a \
  81. - $(TIFF_DIR)/$(OBJDIR)/libtiff.a \
  82. + -lesd \
  83. + -lHalf -lIex -lImath -lIlmImf \
  84. + -ltiff \
  85. ../guicast/$(OBJDIR)/libguicast.a \
  86. - ../libmpeg3/$(OBJDIR)/libmpeg3.a \
  87. + $(LDIR)/libmpeg3.a \
  88. $(SNDFILE_LIB) \
  89. $(UUID_DIR)/$(OBJDIR)/libuuid.a \
  90. ../mpeg2enc/$(OBJDIR)/mpeg2enc.a \
  91. @@ -340,9 +340,9 @@
  92. ifeq ($(OBJDIR), x86_64)
  93. -LIBS += -L/usr/X11R6/lib64
  94. +LIBS += -L/usr/X11/lib64
  95. else
  96. -LIBS += -L/usr/X11R6/lib
  97. +LIBS += -L/usr/X11/lib
  98. endif
  99. ifeq ($(HAVE_GL), y)
  100. @@ -450,7 +450,7 @@
  101. $(shell echo "\#define BUILDDATE \"`date`\"" > builddate.h )
  102. $(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
  103. -$(shell echo $(LDFLAGS1) $(OBJS) $(DCRAW) $(FILEEXR) $(AVIOBJS) $(CXXREPOSITORY) $(STATICLIBS) $(LIBS) $(LDFLAGS2) > $(OBJDIR)/objs)
  104. +$(shell echo $(LDFLAGS1) $(OBJS) $(DCRAW) $(FILEEXR) $(AVIOBJS) $(CXXREPOSITORY) $(STATICLIBS) $(LIBS) $(LDFLAGS2) -lvorbis -lvorbisfile -lvorbisenc -logg -ltiff -lmp3lame -ldv -lavcodec > $(OBJDIR)/objs)
  105. @@ -501,7 +501,7 @@
  106. $(FILEEXR): fileexr.C
  107. @echo C++ $*.o
  108. - @$(CC) -c `cat $(OBJDIR)/c_flags` -I$(EXR_DIR)IlmImf -I$(EXR_DIR)Imath -I$(EXR_DIR)Iex -I$(EXR_DIR)Half $(subst $(OBJDIR)/,, $*.C) -o $*.o
  109. + @$(CC) -c `cat $(OBJDIR)/c_flags` -I/usr/include/OpenEXR/ $(subst $(OBJDIR)/,, $*.C) -o $*.o
  110. $(DCRAW): dcraw.c
  111. @echo CC $*.o
  112. diff -ur cinelerra-2.1.orig/configure cinelerra-2.1/configure
  113. --- cinelerra-2.1.orig/configure 2006-10-11 20:49:40.788300500 +0200
  114. +++ cinelerra-2.1/configure 2006-10-11 20:52:02.405151000 +0200
  115. @@ -135,47 +135,12 @@
  116. echo CONFIGURING QUICKTIME
  117. cd quicktime* && ./configure && cd ..
  118. -echo CONFIGURING LIBMPEG3
  119. -cd libmpeg3* && ./configure && cd ..
  120. -
  121. -echo CONFIGURING FFTW
  122. -cd fftw* && CFLAGS=-fPIC ./configure && cd ..
  123. -
  124. -echo CONFIGURING MJPEGTOOLS
  125. -cd mjpegtools* && ./configure --enable-shared=no && cd ..
  126. -
  127. -
  128. -
  129. -echo CONFIGURING SNDFILE
  130. -cd libsndfile* && chmod a+x ./configure && ./configure && cd ..
  131. -
  132. -echo CONFIGURING RAW1394
  133. -cd libraw1394* && \
  134. -./configure --enable-shared=no && \
  135. -ln -sf src libraw1394 && \
  136. -cd ..
  137. -
  138. -echo CONFIGURING AVC1394
  139. -cd libavc1394* && \
  140. -RAW1394_PATH=`expr $TOPDIR/libraw1394*` && \
  141. -PKG_CONFIG_PATH=$RAW1394_PATH CFLAGS=-I$RAW1394_PATH/ LDFLAGS=-L$RAW1394_PATH/src/.libs ./configure --enable-shared=no && \
  142. -cd ..
  143. -
  144. echo CONFIGURING IEC61883
  145. cd libiec61883* && \
  146. RAW1394_PATH=`expr $TOPDIR/libraw1394*` && \
  147. PKG_CONFIG_PATH=$RAW1394_PATH CFLAGS=-I$RAW1394_PATH/ LDFLAGS=-L$RAW1394_PATH/src/.libs ./configure --enable-shared=no && \
  148. cd ..
  149. -echo CONFIGURING THEORA
  150. -LIBOGG_PATH=`expr $TOPDIR/quicktime/libogg*` && \
  151. -LIBVORBIS_PATH=`expr $TOPDIR/quicktime/libvorbis*` && \
  152. -cd libtheora* && \
  153. -PKG_CONFIG_PATH=$LIBOGG_PATH:$LIBVORBIS_PATH CFLAGS="-I$LIBOGG_PATH/include -L$LIBOGG_PATH/src -I$LIBVORBIS_PATH/include -L$LIBVORBIS_PATH/lib" ./configure --enable-shared=no && \
  154. -cd ..
  155. -
  156. -
  157. -
  158. # write configuration header
  159. echo "Writing hvirtual_config.h"
  160. cat > hvirtual_config.h << EOF
  161. diff -ur cinelerra-2.1.orig/global_config cinelerra-2.1/global_config
  162. --- cinelerra-2.1.orig/global_config 2006-10-11 20:49:40.800301250 +0200
  163. +++ cinelerra-2.1/global_config 2006-10-11 20:52:02.413151500 +0200
  164. @@ -49,8 +49,10 @@
  165. # libraries are stored in different directories depending on CPU
  166. ifeq ($(OBJDIR), i686)
  167. PLUGINDIR := /usr/lib/cinelerra
  168. +LDIR := /usr/lib
  169. else
  170. PLUGINDIR := /usr/lib64/cinelerra
  171. +LDIR := /usr/lib64
  172. endif
  173. diff -ur cinelerra-2.1.orig/plugins/Makefile cinelerra-2.1/plugins/Makefile
  174. --- cinelerra-2.1.orig/plugins/Makefile 2006-10-11 20:49:43.972499500 +0200
  175. +++ cinelerra-2.1/plugins/Makefile 2006-10-11 20:52:02.413151500 +0200
  176. @@ -132,7 +132,7 @@
  177. cp $(OBJDIR)/*.plugin $(PLUGINDIR)
  178. mkdir -p $(PLUGINDIR)/fonts
  179. cp titler/fonts/* $(PLUGINDIR)/fonts
  180. - cp ../mjpegtools*/mpeg2enc/mpeg2enc $(PLUGINDIR)/mpeg2enc.plugin
  181. +
  182. diff -ur cinelerra-2.1.orig/plugins/titler/Makefile cinelerra-2.1/plugins/titler/Makefile
  183. --- cinelerra-2.1.orig/plugins/titler/Makefile 2006-10-11 20:49:43.368461750 +0200
  184. +++ cinelerra-2.1/plugins/titler/Makefile 2006-10-11 20:52:02.409151250 +0200
  185. @@ -15,7 +15,7 @@
  186. $(OUTPUT_PLUGIN): $(OBJS)
  187. $(LDLINKER) -o $(OUTPUT_PLUGIN) \
  188. $(OBJS) \
  189. - $(FREETYPE_DIR)/$(OBJDIR)/libfreetype.a
  190. + -lfreetype
  191. strip $(OUTPUT_PLUGIN)
  192. include ../../plugin_config
  193. diff -ur cinelerra-2.1.orig/quicktime/Makefile cinelerra-2.1/quicktime/Makefile
  194. --- cinelerra-2.1.orig/quicktime/Makefile 2006-10-11 20:50:07.377962250 +0200
  195. +++ cinelerra-2.1/quicktime/Makefile 2006-10-11 20:52:02.413151500 +0200
  196. @@ -94,11 +94,11 @@
  197. #include Makefile.jpeg
  198. #include Makefile.vorbis
  199. -include Makefile.lame
  200. +#include Makefile.lame
  201. #include Makefile.dv
  202. include Makefile.encore50
  203. -
  204. +LAME_DIR = /usr
  205. @@ -218,7 +218,7 @@
  206. -I$(DV_INCLUDE) \
  207. -I$(JPEG_INCLUDE) \
  208. -I$(MPEG3_DIR) \
  209. - -I$(LAME_DIR)/include \
  210. + -I$(LAME_DIR)/include/lame \
  211. -I$(OGG_DIR)/include \
  212. -I$(VORBIS_DIR)/include \
  213. -ffast-math \
  214. @@ -248,11 +248,11 @@
  215. $(shell if ! test -d $(OBJDIR) \; then mkdir -p $(DIRS) \; fi )
  216. $(shell echo $(CFLAGS) > $(OBJDIR)/c_flags)
  217. $(shell echo $(LAME_CFLAGS) > $(OBJDIR)/lame_flags)
  218. -$(shell echo $(OBJS) $(JPEG_LIB)/*.o $(DV_LIB)/*.o $(FAAD_LIB)/*.o $(FAAC_LIB)/*.o $(FFMPEG_LIB)/*.o $(X264_LIB)/*.o $(OGG_LIB)/*.o $(VORBIS_LIB)/*.o $(LAME_OBJS) > $(OBJDIR)/objs)
  219. +$(shell echo $(OBJS) $(X264_LIB)/*.o > $(OBJDIR)/objs)
  220. all: $(OBJDIR) $(OUTPUT)
  221. -$(OUTPUT): $(OBJS) $(ENCOREMMX_OBJS) $(JPEG_NASM) $(LAME_OBJS) $(FAAD_LIB) $(FAAC_LIB) $(FFMPEG_LIB) $(X264_LIB) $(DV_LIB) $(JPEG_LIB) $(OGG_LIB)/ $(VORBIS_LIB)
  222. +$(OUTPUT): $(OBJS) $(ENCOREMMX_OBJS) $(JPEG_NASM) $(X264_LIB)
  223. ar rcs $(OUTPUT) `cat $(OBJDIR)/objs`
  224. # this is the only way we figured out to merge .a files
  225. diff -ur cinelerra-2.1.orig/quicktime/configure cinelerra-2.1/quicktime/configure
  226. --- cinelerra-2.1.orig/quicktime/configure 2006-10-11 20:49:47.504720250 +0200
  227. +++ cinelerra-2.1/quicktime/configure 2006-10-11 20:52:02.413151500 +0200
  228. @@ -54,24 +54,12 @@
  229. # configure them all
  230. # version 2.0 of faad2 produced defective Makefile
  231. -cd faad2* && ./configure && sed 's/ /\t/' Makefile > Makefile2 && mv -f Makefile2 Makefile && cd ..
  232. +##cd faad2* && ./configure && sed 's/ /\t/' Makefile > Makefile2 && mv -f Makefile2 Makefile && cd ..
  233. -cd faac* && ./configure && cd ..
  234. -
  235. -cd ffmpeg* && ./configure && cd ..
  236. +##cd faac* && ./configure && cd ..
  237. cd x264* && ./configure --enable-pthread && cd ..
  238. -cd libdv* && ./configure --disable-gtk --enable-shared=no && cd ..
  239. -
  240. -cd libogg* && ./configure && cd ..
  241. -
  242. -LIBOGG_PATH=`expr libogg*` && \
  243. -cd libvorbis* && \
  244. -CFLAGS="-I../../$LIBOGG_PATH/include -L../../$LIBOGG_PATH/src/" ./configure --enable-shared=no&& \
  245. -cd ..
  246. -
  247. -
  248. if [ `arch` == i686 ];
  249. then
  250. diff -ur cinelerra-2.1.orig/quicktime/mp4a.c cinelerra-2.1/quicktime/mp4a.c
  251. --- cinelerra-2.1.orig/quicktime/mp4a.c 2006-10-11 20:49:53.981125000 +0200
  252. +++ cinelerra-2.1/quicktime/mp4a.c 2006-10-11 20:52:02.413151500 +0200
  253. @@ -10,7 +10,7 @@
  254. #undef LTP
  255. -#include "faad.h"
  256. +#include "neaacdec.h"
  257. #include "funcprotos.h"
  258. #include "quicktime.h"