Okay, I worked on this today. It's unfortunate that you are trying src2pkg for the first time with such a messy and unconventional source tarball. Still, src2pkg makes this fairly easy.
First, if you haven't removed the SRC_DIR which you already built (shoule be /tmp/cinerella-*-src-1) cd in there (inside the bin dir) and see if you have a bunch of files named *.plugin. If so, that means that you did get a successful build. On my system I didn't get a successful build at first.
First I had to build, package and install yasm, which was no problem with src2pkg. Then, the build was failing while compiling ffmpeg because of some erros that boiled down to using 'vhook'. For my system, I created a patch which configures ffmpeg with '--disable-vhook' to get past this. If you have the same problem you'll want to use the patch below:
Code:
--- ./quicktime/configure.00 2008-08-15 12:30:13.000000000 +0200
+++ ./quicktime/configure 2008-08-15 12:30:36.000000000 +0200
@@ -72,7 +72,7 @@
# For the latest version,
# delete faad tests in configure so it passes before faad is compiled.
# Change -O3 to -O2 to fix compiler errors.
-cd thirdparty/ffmpeg* && ./configure --enable-pthreads --enable-libfaad --enable-gpl --disable-ffplay --extra-cflags=-I$TOPDIR/$LIBFAAD_PATH/include --extra-libs=-L$TOPDIR/$LIBFAAD_PATH/libfaad/.libs/ --disable-ffmpeg --disable-ffserver --disable-ffplay && cd ../..
+cd thirdparty/ffmpeg* && ./configure --disable-vhook --enable-pthreads --enable-libfaad --enable-gpl --disable-ffplay --extra-cflags=-I$TOPDIR/$LIBFAAD_PATH/include --extra-libs=-L$TOPDIR/$LIBFAAD_PATH/libfaad/.libs/ --disable-ffmpeg --disable-ffserver --disable-ffplay && cd ../..
echo "CONFIGURING X264"
# Currently using the last version which works with mplayer.
If you need that, just paste it into a new empty file and save it as:
'cinelerra-no-vhook.diff'
If you were able to build successfully without that change, then just comment out the line in the src2pkg build script below which begins with 'PATCHLIST'.
Code:
#!/bin/bash
## src2pkg script for: cinelerra-4
## src2pkg Copyright 2005-2008 Gilbert Ashley <amigo@ibilio.org>
SOURCE_NAME='cinelerra-4-src.tar.bz2'
ALT_NAME='cinelerra'
ALT_VERSION='4'
# ARCH='i486'
BUILD='1'
PRE_FIX='usr'
# Any extra options go here
# EXTRA_CONFIGS=''
# STD_FLAGS='-O2 -march=i486 -mtune=i686'
PATCHLIST='./cinelerra-no-vhook.diff'
DOCLIST='COPYING bin/doc/cinelerra.html'
# Get the functions and configs
. /usr/libexec/src2pkg/FUNCTIONS ;
# do_all_processes can substitute these 16 steps:
pre_process
find_source
make_dirs
unpack_source
fix_source_perms
(
cd $SRC_DIR/bin ;
rm cinelerra mpeg3cat mpeg3dump mpeg3peek mpeg3toc
)
configure_source
compile_source
#fake_install
cd $SRC_DIR && make install
mkdir -p $PKG_DIR/usr/lib/cinelerra-4
cp -a $SRC_DIR/bin/* $PKG_DIR/usr/lib/cinelerra-4/
mkdir -p $PKG_DIR/usr/bin
cat > $PKG_DIR/usr/bin/cinelerra <<EOF
#!/bin/bash
cd /usr/lib/cinelerra-4
exec ./cinelerra
EOF
fix_pkg_perms
strip_bins
create_docs
compress_man_pages
make_description
make_doinst
make_package
post_process
To use the above script, just paste the contents into an new empty file and save as:
cinelerra.src2pkg
Then, you can build cinelerra using src2pkg with the command:
'src2pkg -X'
although you may want to use 'src2pkg -X -VV' so you can see all the output from the commands which are run.
Now a little explanation. I didn't find any true SlackBuild script for cinerella, although I found a couple of scripts which use another build system and the packages. They both were building the 'community version' of cinerella which is quite different from the sources you chose. The community version builds only the core cinerella program and links to shared libraries for its' (*many*) dependencies. The sources you chose are for the development version and build static libraries of all the included dependencies. This makes it easier to build, but harder to package and the resulting binary is very large - around 14MB. Still, it works and saves you the headache of figuring out which versios to use for all the depends and building and installing them separately -there are around 40 programs and libs which are required and Slackware only comes with about 10 of them.
If you decide you want to build it that way, src2pkg will make building and packaging each prog/lib much easier and building cinelerra should also be straightforward. Building all the separate packages will, of course, take quite awhile. Building the combined sources you chose takes over 1.5 hours on my system and it took 3 builds to work out the kinks of installation. As tuxdev noted, the combined sources install everything into a subdir of the sources. So what the above src2pkg script does is copy/install these files into a subdir of /usr/lib and then create a wrapper script which installs in /usr/bin. This makes everything run as expected -the wrapper cd's into the dir /usr/lib/cinelerra-4 and execs the cinelerra program from there.
Here's a slack-desc file which you can use for the package also:
Code:
cinelerra: Cinelerra (A non-linear video editing application for Linux)
cinelerra:
cinelerra: Cinelerra is an advanced and complete audio and video authoring
cinelerra: application. It understands a lot of multimedia formats
cinelerra: (quicktime, avi, ogg) and audio/video compression codecs (divx,
cinelerra: xvid, mpeg1/2, etc).
cinelerra:
cinelerra:
cinelerra: visit http://cv.cinelerra.org/
cinelerra:
cinelerra: Packaged by src2pkg
Just place that alongside the sources named as 'slack-desc' for use.
Here's a list of the requireds which was included with one of the packages I found:
a52dec >= 0.7.4
alsa-lib >= 1.0.14a
audiofile >= 0.2.6
e2fsprogs >= 1.39
esound >= 0.2.38
faac >= 1.25
faad2 >= 2.5
fftw >= 3.1.2
flac >= 1.1.2
freetype >= 2.3.4
gcc >= 4.1.2
ilmbase >= 1.0.1
lame >= 3.97
libX11 >= 1.1.1
libXau >= 1.0.3
libXdmcp >= 1.0.2
libXext >= 1.0.3
libXv >= 1.0.3
libXxf86vm >= 1.0.1
libavc1394 >= 0.5.3
libdrm >= 2.3.0
libdv >= 1.0.0
libiec61883 >= 1.1.0
libjpeg >= 6b
libogg >= 1.1.3
libpng >= 1.2.18
libraw1394 >= 1.2.1
libsndfile >= 1.0.17
libtheora >= 1.0alpha7
libtiff >= 3.8.2
libvorbis >= 1.1.2
libxcb >= 1.0
mesa >= 6.5.2
mjpegtools >= 1.9.0rc2
openexr >= 1.6.1
x264
zlib >= 1.2.3
The versions may or may not be the same for some other (community) version which try to build. The above was for cinelerra-cv from svn on 20071205. Of all the dependencies, ffmpeg is probably the most difficult to build. But if you build separate packages be sure to study carefully the version numbers required by the cinelerra sources.