wok annotate avidemux/receipt @ rev 12233

Up:ocsinventory-agent (2.0.4)
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Mon Apr 09 12:02:13 2012 +0200 (2012-04-09)
parents 254cdebd32d5
children 71f2fec8fdc4
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
gokhlayeh@11574 32 make $MAKEFLAGS && 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 }