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