CFLAGS += -I../ -I../../cinelerra \
-I../../guicast \
- -I../../quicktime \
-+ -I/usr/include/quicktime \
++ -I/usr/include/quicktime -I../../quicktime \
-I../colors
$(shell echo $(CFLAGS) > ../$(OBJDIR)/c_flags)
-lpthread \
-lpng \
-lz \
+--- cinelerra-1.1.5/plugins/titler/Makefile.orig Sat Aug 17 04:26:42 2002
++++ cinelerra-1.1.5/plugins/titler/Makefile Fri Mar 21 08:40:47 2003
+@@ -1,25 +1,28 @@
+ FREETYPE_DIR = $(shell expr ../../freetype* )
+-CFLAGS += -I$(FREETYPE_DIR)/include -I../../
++CFLAGS += -I/usr/include/freetype2
+
+ include ../../global_config
+
+ OBJS = $(OBJDIR)/title.o \
+ $(OBJDIR)/titlewindow.o \
+ ../colors/$(OBJDIR)/colorpicker.o \
+- ../colors/$(OBJDIR)/plugincolors.o \
+- $(FREETYPE_DIR)/objs/.libs/libfreetype.a
++ ../colors/$(OBJDIR)/plugincolors.o
++
++LIBS = -lfreetype
+
+ OUTPUT = ../$(OBJDIR)/titler.plugin
+
+-include ../../plugin_config
++all: $(OUTPUT)
+
+-inst:
++install:
+ cp $(OUTPUT) /usr/lib/cinelerra
+ cp -a fonts /usr/lib/cinelerra
+
++$(OUTPUT) : $(OBJS)
++ $(LDLINKER) -o $(OUTPUT) $(OBJS) $(LIBS)
+
+-
+-
++$(OBJS):
++ $(CC) -c $(CFLAGS) -I/usr/include/quicktime -I../../quicktime -I../../cinelerra -I../../guicast -I../colors $(subst $(OBJDIR)/,, $*.C) -o $*.o
+
+ $(OBJDIR)/title.o: title.C
+ $(OBJDIR)/titlewindow.o: titlewindow.C
%{__make} -C mplexhi
%{__make} -C mplexlo
%{__make} -C guicast
-%{__make} -C cinerella
-# TODO: titler (w/freetype) fails
+%{__make} -C cinelerra
+# TODO: lame fails (termcap.h not found)
+# TODO: lame should use shared lame library
+# TODO: defaulttheme and microtheme cannot be stripped
+# (they have resources appended to linked binary :/)
%{__make} -C plugins
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/cinelerra}
-install cinerella/*/cinerella $RPM_BUILD_ROOT%{_bindir}
+install cinelerra/*/cinelerra $RPM_BUILD_ROOT%{_bindir}
+install plugins/`uname -m`/*.plugin $RPM_BUILD_ROOT%{_libdir}/cinelerra
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*
-%{_libdir}/cinerella
+%attr(755,root,root) %{_libdir}/cinelerra