wok-current annotate avidemux/receipt @ rev 9163

Add: getmail (4.20.0)
author Claudinei Pereira <claudinei@slitaz.org>
date Mon Mar 07 23:30:53 2011 +0000 (2011-03-07)
parents e249a355be35
children 8e4c74abdf74
rev   line source
allan316@3201 1 # SliTaz package receipt.
allan316@3201 2
allan316@3201 3 PACKAGE="avidemux"
slaxemulator@6943 4 VERSION="2.5.4"
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@8965 9 BUILD_DEPENDS="tar coreutils-file-special coreutils-file-format cmake yasm gettext pkg-config zlib-dev bzip2 patch"
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 {
slaxemulator@8713 18 cd $src/avidemux/ADM_libraries
slaxemulator@8713 19 tar xzf ffmpeg_r25041.tar.gz
allan316@3201 20 cd $src
pascal@5945 21 # Fix for gcc45
pascal@5950 22 sed -i -e 's/ "$@" >>/ $@ >>/' -e 's|mktemp -u|/usr/bin/mktemp -u|' \
slaxemulator@8713 23 avidemux/ADM_libraries/ffmpeg/configure
slaxemulator@8713 24 grep -q ADM_CPU_X86_64 avidemux/ADM*/src/ADM_vidField[sA]*.cpp ||
pascal@5607 25 sed -i 's/ADM_CPU_X86/ADM_CPU_X86_64/' \
slaxemulator@8713 26 avidemux/ADM_coreImage/src/ADM_vidField[sA]*.cpp
pascal@4303 27 mkdir built
pascal@4303 28 cd built
slaxemulator@8713 29 cmake -DCMAKE_INSTALL_PREFIX=/usr ../
pascal@6656 30 sed -i 's/\(find .*\) | xargs ln -sft/- ln -sf $(\1)/' \
pascal@5443 31 avidemux/CMakeFiles/ffmpeg.dir/build.make
slaxemulator@8713 32 make -j 4 && make -j1 DESTDIR=$DESTDIR install
slaxemulator@8713 33
slaxemulator@8713 34 mkdir -p $DESTDIR/usr/share/pixmaps $DESTDIR/usr/share/applications
slaxemulator@8713 35 cp -a $src/avidemux_icon.png $DESTDIR/usr/share/pixmaps/avidemux.png
slaxemulator@8713 36 cp -a $src/avidemux2.desktop $DESTDIR/usr/share/applications/avidemux2.desktop
allan316@3201 37 }
allan316@3201 38
allan316@3201 39 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@3201 40 genpkg_rules()
allan316@3201 41 {
slaxemulator@5385 42 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps $fs/usr/share/applications
allan316@3201 43 cp -a $_pkg/usr/bin $fs/usr
pankso@4327 44 cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
pankso@4327 45 cp -a $_pkg/usr/share/ADM_scripts $fs/usr/share
slaxemulator@8713 46
allan316@3201 47 }