wok-current view avidemux/receipt @ rev 6451
Up: libxslt, libxslt-dev to 1.1.26.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Sep 28 15:05:34 2010 +0000 (2010-09-28) |
parents | 44eeefe0357a |
children | aca0e47fb523 |
line source
1 # SliTaz package receipt.
3 PACKAGE="avidemux"
4 VERSION="2.5.3"
5 CATEGORY="multimedia"
6 SHORT_DESC="free video editor"
7 MAINTAINER="allan316@gmail.com"
8 DEPENDS="libsdl alsa-lib libsdl-gfx libxml2 xorg-libXv gtk+ cairo libQtGui"
9 BUILD_DEPENDS="cmake alsa-lib-dev libsdl-dev libsdl-gfx-dev tar coreutils-file-special"
10 TARBALL="avidemux_$VERSION.tar.gz"
11 WEB_SITE="http://fixounet.free.fr/$PACKAGE"
12 WGET_URL="http://download.berlios.de/$PACKAGE/$TARBALL"
13 TAGS="video movie editor avi mpeg mp4"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 [ -L /usr/bin/patch ] && tazpkg get-install patch --forced
19 mkdir $WOK/$PACKAGE/avidemux-$VERSION
20 mv $WOK/$PACKAGE/avidemux_$VERSION $WOK/$PACKAGE/avidemux-$VERSION/src
21 cd $src/src/avidemux/ADM_libraries
22 tar xzf ffmpeg*.tar.gz
23 cd $src
24 # Fix for gcc45
25 sed -i -e 's/ "$@" >>/ $@ >>/' -e 's|mktemp -u|/usr/bin/mktemp -u|' \
26 src/avidemux/ADM_libraries/ffmpeg/configure
27 grep -q ADM_CPU_X86_64 src/avidemux/ADM*/src/ADM_vidField[sA]*.cpp ||
28 sed -i 's/ADM_CPU_X86/ADM_CPU_X86_64/' \
29 src/avidemux/ADM_coreImage/src/ADM_vidField[sA]*.cpp
30 mkdir built
31 cd built
32 cmake -DCMAKE_INSTALL_PREFIX=/usr ../src
33 sed -i 's/\(find .*\) | xargs ln -sft/ln -sf $(\1)/' \
34 avidemux/CMakeFiles/ffmpeg.dir/build.make
35 make -j 4 && make DESTDIR=$PWD/../_pkg install
36 }
38 # Rules to gen a SliTaz package suitable for Tazpkg.
39 genpkg_rules()
40 {
41 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps $fs/usr/share/applications
42 cp -a $_pkg/usr/bin $fs/usr
43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
44 cp -a $_pkg/usr/share/ADM_scripts $fs/usr/share
45 cp -a $src/src/avidemux_icon.png $fs/usr/share/pixmaps/avidemux.png
46 cp -a $src/src/avidemux2.desktop $fs/usr/share/applications/avidemux2.desktop
47 }