wok-next annotate avidemux/receipt @ rev 6928
Up: elfutils to 0.149. Fixed it to build in clean chroot. Fixed it also to download sources with real wget by since sources are on https host. So now elfutils can download its sources just fine.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Fri Oct 22 22:36:22 2010 +0000 (2010-10-22) |
parents | 782e1b0dfb11 |
children | cc9ca7fbcf3d |
rev | line source |
---|---|
allan316@3201 | 1 # SliTaz package receipt. |
allan316@3201 | 2 |
allan316@3201 | 3 PACKAGE="avidemux" |
pascal@5607 | 4 VERSION="2.5.3" |
allan316@3201 | 5 CATEGORY="multimedia" |
allan316@3201 | 6 SHORT_DESC="free video editor" |
allan316@3201 | 7 MAINTAINER="allan316@gmail.com" |
pankso@5337 | 8 DEPENDS="libsdl alsa-lib libsdl-gfx libxml2 xorg-libXv gtk+ cairo libQtGui" |
slaxemulator@5385 | 9 BUILD_DEPENDS="cmake alsa-lib-dev libsdl-dev libsdl-gfx-dev tar coreutils-file-special" |
pascal@4303 | 10 TARBALL="avidemux_$VERSION.tar.gz" |
allan316@3201 | 11 WEB_SITE="http://fixounet.free.fr/$PACKAGE" |
allan316@3201 | 12 WGET_URL="http://download.berlios.de/$PACKAGE/$TARBALL" |
jozee@3564 | 13 TAGS="video movie editor avi mpeg mp4" |
allan316@3201 | 14 |
allan316@3201 | 15 # Rules to configure and make the package. |
allan316@3201 | 16 compile_rules() |
allan316@3201 | 17 { |
pascal@5010 | 18 [ -L /usr/bin/patch ] && tazpkg get-install patch --forced |
pascal@4303 | 19 mkdir $WOK/$PACKAGE/avidemux-$VERSION |
pascal@4303 | 20 mv $WOK/$PACKAGE/avidemux_$VERSION $WOK/$PACKAGE/avidemux-$VERSION/src |
pascal@5947 | 21 cd $src/src/avidemux/ADM_libraries |
pascal@5947 | 22 tar xzf ffmpeg*.tar.gz |
allan316@3201 | 23 cd $src |
pascal@5945 | 24 # Fix for gcc45 |
pascal@5950 | 25 sed -i -e 's/ "$@" >>/ $@ >>/' -e 's|mktemp -u|/usr/bin/mktemp -u|' \ |
pascal@5945 | 26 src/avidemux/ADM_libraries/ffmpeg/configure |
pascal@5607 | 27 grep -q ADM_CPU_X86_64 src/avidemux/ADM*/src/ADM_vidField[sA]*.cpp || |
pascal@5607 | 28 sed -i 's/ADM_CPU_X86/ADM_CPU_X86_64/' \ |
pascal@5607 | 29 src/avidemux/ADM_coreImage/src/ADM_vidField[sA]*.cpp |
pascal@4303 | 30 mkdir built |
pascal@4303 | 31 cd built |
pascal@4303 | 32 cmake -DCMAKE_INSTALL_PREFIX=/usr ../src |
pascal@6656 | 33 sed -i 's/\(find .*\) | xargs ln -sft/- ln -sf $(\1)/' \ |
pascal@5443 | 34 avidemux/CMakeFiles/ffmpeg.dir/build.make |
pascal@5607 | 35 make -j 4 && make DESTDIR=$PWD/../_pkg install |
allan316@3201 | 36 } |
allan316@3201 | 37 |
allan316@3201 | 38 # Rules to gen a SliTaz package suitable for Tazpkg. |
allan316@3201 | 39 genpkg_rules() |
allan316@3201 | 40 { |
slaxemulator@5385 | 41 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps $fs/usr/share/applications |
allan316@3201 | 42 cp -a $_pkg/usr/bin $fs/usr |
pankso@4327 | 43 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib |
pankso@4327 | 44 cp -a $_pkg/usr/share/ADM_scripts $fs/usr/share |
slaxemulator@5385 | 45 cp -a $src/src/avidemux_icon.png $fs/usr/share/pixmaps/avidemux.png |
slaxemulator@5385 | 46 cp -a $src/src/avidemux2.desktop $fs/usr/share/applications/avidemux2.desktop |
allan316@3201 | 47 } |