wok-4.x view avidemux/receipt @ rev 9622

Add roundup. We should have roundup in wok for next stable.
author Christopher Rogers <slaxemulator@gmail.com>
date Fri Apr 22 17:33:42 2011 +0000 (2011-04-22)
parents e249a355be35
children 8e4c74abdf74
line source
1 # SliTaz package receipt.
3 PACKAGE="avidemux"
4 VERSION="2.5.4"
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="tar coreutils-file-special coreutils-file-format cmake yasm gettext pkg-config zlib-dev bzip2 patch"
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 cd $src/avidemux/ADM_libraries
19 tar xzf ffmpeg_r25041.tar.gz
20 cd $src
21 # Fix for gcc45
22 sed -i -e 's/ "$@" >>/ $@ >>/' -e 's|mktemp -u|/usr/bin/mktemp -u|' \
23 avidemux/ADM_libraries/ffmpeg/configure
24 grep -q ADM_CPU_X86_64 avidemux/ADM*/src/ADM_vidField[sA]*.cpp ||
25 sed -i 's/ADM_CPU_X86/ADM_CPU_X86_64/' \
26 avidemux/ADM_coreImage/src/ADM_vidField[sA]*.cpp
27 mkdir built
28 cd built
29 cmake -DCMAKE_INSTALL_PREFIX=/usr ../
30 sed -i 's/\(find .*\) | xargs ln -sft/- ln -sf $(\1)/' \
31 avidemux/CMakeFiles/ffmpeg.dir/build.make
32 make -j 4 && make -j1 DESTDIR=$DESTDIR install
34 mkdir -p $DESTDIR/usr/share/pixmaps $DESTDIR/usr/share/applications
35 cp -a $src/avidemux_icon.png $DESTDIR/usr/share/pixmaps/avidemux.png
36 cp -a $src/avidemux2.desktop $DESTDIR/usr/share/applications/avidemux2.desktop
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps $fs/usr/share/applications
43 cp -a $_pkg/usr/bin $fs/usr
44 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
45 cp -a $_pkg/usr/share/ADM_scripts $fs/usr/share
47 }