]> git.pld-linux.org Git - packages/cinelerra.git/blame - cinelerra.spec
- started to work on plugin dir
[packages/cinelerra.git] / cinelerra.spec
CommitLineData
90df7d5d 1#
cbf2308e 2# imho, it is pointless to build this app with system libraries until we
3# start submitting patches to the author (is that possible with his
4# current development and release strategy?)... anyway, the todo follows
80b33511 5# - deal with fonts dir and plugins dir patches (cinelerra writes lists of
6# plugins in plugins dir:/)
cbf2308e 7# - review existing, but commented out patches
8# - send the existing patches to the author (so we do not have to maintain
9# them forever)
10# - build with set of current systems libs
11# - quicktime4linux seems to be dead as separate library, use the provided
12# one
90df7d5d 13# - build guicast as separate, shared library to use in xmovie,
14# mix2005 and cinelerra
90df7d5d 15#
a601b4a3 16Summary: Cinelerra - capturing, editing and production of audio/video material
70bef79d 17Summary(pl.UTF-8): Cinelerra - nagrywanie, obróbka i produkcja materiału audio/video
584c94b3 18Name: cinelerra
cbf2308e 19Version: 4.4
20Release: 0.1
f4712342 21License: GPL v2+
584c94b3 22Group: X11/Applications
cbf2308e 23Source0: http://dl.sourceforge.net/heroines/%{name}-%{version}-src.tar.xz
24# Source0-md5: 252d811546025470ae4d7fa31c1f52d4
6c08bb5e 25Patch0: %{name}-system-libs.patch
eba9969c
JB
26Patch1: %{name}-strip.patch
27Patch2: %{name}-fontsdir.patch
28Patch3: %{name}-locale_h.patch
29Patch4: %{name}-guicast_bootstrap.patch
585ddb60 30Patch6: %{name}-libpng.patch
c2b776be 31Patch7: %{name}-ffmpeg.patch
cbf2308e 32Patch8: %{name}-typo.patch
33# see speech_tools package
34Patch9: %{name}-st.patch
80b33511 35Patch10: %{name}-plugindir.patch
ba16c461 36URL: http://www.heroinewarrior.com/cinelerra.php
f4712342 37BuildRequires: OpenEXR-devel >= 1.6.1
1ba0abd4 38BuildRequires: OpenGL-GLU-devel
f4712342 39BuildRequires: OpenGL-devel >= 2.0
eba9969c 40BuildRequires: alsa-lib-devel >= 1.0.8
1ba0abd4 41BuildRequires: bzip2-devel
cbf2308e 42#x#BuildRequires: esound-devel
c2b776be 43BuildRequires: ffmpeg-devel >= 0.6
f4712342 44BuildRequires: flac-devel >= 1.1.4
3e6a57e8 45BuildRequires: freetype-devel >= 2.1.4
a601b4a3 46BuildRequires: lame-libs-devel >= 3.93.1
eba9969c
JB
47BuildRequires: libavc1394-devel >= 0.5.1
48BuildRequires: libiec61883-devel >= 1.0.0
f4712342 49BuildRequires: libmpeg3-devel >= 1.8
eba9969c
JB
50BuildRequires: libraw1394-devel >= 1.2.0
51BuildRequires: libsndfile-devel >= 1.0.11
6864ee86 52BuildRequires: libstdc++-devel >= 5:3.2.2
eba9969c 53BuildRequires: libtheora-devel >= 1.0-0.alpha4
6864ee86 54BuildRequires: libtiff-devel >= 3.5.7
3e6a57e8 55BuildRequires: libuuid-devel
3b1ebd11
JB
56%ifarch %{ix86}
57BuildRequires: nasm
58%endif
cbf2308e 59#x#BuildRequires: quicktime4linux-devel >= 2.3
05a1efcf
JB
60BuildRequires: xorg-lib-libX11-devel
61BuildRequires: xorg-lib-libXext-devel
62BuildRequires: xorg-lib-libXv-devel
63BuildRequires: xorg-lib-libXxf86vm-devel
f4712342 64Requires: OpenEXR >= 1.6.1
eba9969c 65Requires: alsa-lib >= 1.0.8
3b1ebd11 66Requires: freetype >= 2.1.4
eba9969c
JB
67Requires: libavc1394 >= 0.5.1
68Requires: libiec61883 >= 1.0.0
f4712342 69Requires: libmpeg3 >= 1.8
eba9969c
JB
70Requires: libraw1394 >= 1.2.0
71Requires: libsndfile >= 1.0.11
72Requires: libtheora >= 1.0-0.alpha4
cbf2308e 73#x#Requires: quicktime4linux >= 2.3
f295b5f3 74Obsoletes: bcast
584c94b3
JB
75BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
76
1fb4583f 77%define _noautostrip .*/microtheme.plugin
a601b4a3 78
584c94b3 79%description
a601b4a3
JB
80There are two types of moviegoers: producers who create new content,
81going back over their content at future points for further refinement,
82and consumers who want to acquire the content and watch it. Cinelerra
83is not intended for consumers. Cinelerra has many features for
84uncompressed content, high resolution processing, and compositing,
85with very few shortcuts. Producers need these features because of the
86need to retouch many generations of footage with alterations to the
87format, which makes Cinelerra very complex.
88
89Cinelerra was meant to be a Broadcast 2000 replacement.
584c94b3 90
418c6d3a
JR
91%description -l pl.UTF-8
92Są dwa rodzaje użytkowników zajmujących się filmami: producenci
93tworzący nowe filmy, wracający do nich w przyszłości w celu dalszego
94wygładzenia, oraz konsumenci, którzy chcą tylko zdobyć film i go
95obejrzeć. Cinelerra nie jest dla konsumentów. Program ma wiele
96możliwości do edycji nieskompresowanej zawartości, obróbki w wysokiej
97rozdzielczości oraz montażu, z bardzo małą liczbą skrótów. Producenci
541dda61
ER
98potrzebują tych możliwości ze względu na konieczność retuszowania oraz
99modyfikacji formatu, co czyni program bardzo złożonym.
a601b4a3 100
418c6d3a 101Cinelerra była tworzona z myślą o zastąpieniu programu Broadcast 2000.
584c94b3
JB
102
103%prep
104%setup -q
cbf2308e 105#x#%patch0 -p1
106#x#%patch1 -p1
584c94b3 107%patch2 -p1
cbf2308e 108#x#%patch3 -p1
109#x#%patch4 -p1
110#x#%patch5 -p1
585ddb60 111%patch6 -p0
cbf2308e 112#x#%patch7 -p1
113%patch8 -p1
114%patch9 -p0
80b33511 115%patch10 -p0
584c94b3 116
cbf2308e 117#x## assume we have <linux/videodev2.h> and <linux/dvb/*> (present in llh)
118#x#cat > hvirtual_config.h <<EOF
119#x##define HAVE_VIDEO4LINUX2
120#x##define HAVE_DVB
121#x##define HAVE_GL
122#x##define PACKAGE_STRING "cinelerra"
123#x#EOF
6864ee86 124
cbf2308e 125#x#%{__rm} -r libmpeg3 quicktime \
126#x# thirdparty/{audiofile,esound,fftw-*,flac-*,freetype-*,ilmbase-*,libavc1394-*,libiec61883-*,libraw1394-*,libsndfile-*,libtheora-*,mjpegtools-*,openexr-*,tiff-*,uuid}
1fb4583f 127
584c94b3 128%build
f4712342 129export CFLAGS="%{rpmcflags}"
cbf2308e 130#x#%{__make} -f build/Makefile.toolame \
131#x# STRIP="true" \
132#x# GCC="%{__cc}"
133#x#%{__make} -C mpeg2enc \
134#x# STRIP="true" \
135#x# CC="%{__cc}"
136#x#%{__make} -C mplexlo \
137#x# STRIP="true" \
138#x# CC="%{__cc}"
139#x#%{__make} -C guicast \
140#x# STRIP="true" \
141#x# GCC="%{__cc}" \
142#x# CC="%{__cxx}"
143#x## cinelerra, defaulttheme and microtheme are stripped before running "bootstrap"
144#x#%{__make} -C cinelerra \
145#x# STRIP="true" \
146#x# GCC="%{__cc}" \
147#x# CC="%{__cxx}" \
148#x# LINKER='%{__cxx} -o $(OUTPUT)'
149#x#%{__make} -C plugins \
150#x# STRIP="true" \
151#x# CC="%{__cxx}" \
152
153(
154 # to replace -ltermcap with -tncurses
155 cd thirdparty/speech_tools
156 rm ./config.cache
157 ./configure
158)
159
160./configure
161make
162
163(
164 # to link with libva
165 cd cinelerra
166 g++ -o ../bin/cinelerra `cat x86_64/objs` -lva
167)
584c94b3
JB
168
169%install
170rm -rf $RPM_BUILD_ROOT
585ddb60 171install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/cinelerra}
4e321114
ER
172cp -a bin/* $RPM_BUILD_ROOT%{_libdir}/cinelerra
173mv $RPM_BUILD_ROOT{%{_libdir}/cinelerra,%{_bindir}}/cinelerra
cbf2308e 174rm -r $RPM_BUILD_ROOT%{_libdir}/cinelerra/c_flags
584c94b3
JB
175
176%clean
177rm -rf $RPM_BUILD_ROOT
178
585ddb60 179%files
584c94b3 180%defattr(644,root,root,755)
3b1ebd11 181%doc doc/{*.png,*.html,press} cinelerra/{CHANGELOG*,TODO}
4e321114
ER
182%attr(755,root,root) %{_bindir}/cinelerra
183%dir %{_libdir}/cinelerra
184%attr(755,root,root) %{_libdir}/cinelerra/*.plugin
This page took 0.09011 seconds and 4 git commands to generate.