wok diff avidemux/receipt @ rev 8713

Fixed avidemux.
author Christopher Rogers <slaxemulator@gmail.com>
date Thu Feb 17 18:20:31 2011 +0000 (2011-02-17)
parents cc9ca7fbcf3d
children 254cdebd32d5
line diff
     1.1 --- a/avidemux/receipt	Sun Oct 24 19:16:18 2010 +0000
     1.2 +++ b/avidemux/receipt	Thu Feb 17 18:20:31 2011 +0000
     1.3 @@ -6,7 +6,7 @@
     1.4  SHORT_DESC="free video editor"
     1.5  MAINTAINER="allan316@gmail.com"
     1.6  DEPENDS="libsdl alsa-lib libsdl-gfx libxml2 xorg-libXv gtk+ cairo libQtGui"
     1.7 -BUILD_DEPENDS="gtk+-dev xorg-libXv-dev libxml2-dev alsa-lib-dev libsdl-dev libsdl-gfx-dev tar coreutils-file-special coreutils-file-format cmake yasm gettext pkg-config zlib-dev xorg-dev-proto bzip2"
     1.8 +BUILD_DEPENDS="gtk+-dev xorg-libXv-dev libxml2-dev alsa-lib-dev libsdl-dev libsdl-gfx-dev tar coreutils-file-special coreutils-file-format cmake yasm gettext pkg-config zlib-dev xorg-dev-proto bzip2 patch"
     1.9  TARBALL="avidemux_$VERSION.tar.gz"
    1.10  WEB_SITE="http://fixounet.free.fr/$PACKAGE"
    1.11  WGET_URL="http://download.berlios.de/$PACKAGE/$TARBALL"
    1.12 @@ -15,24 +15,25 @@
    1.13  # Rules to configure and make the package.
    1.14  compile_rules()
    1.15  {
    1.16 -	[ -L /usr/bin/patch ] && tazpkg get-install patch --forced
    1.17 -	mkdir $WOK/$PACKAGE/avidemux-$VERSION
    1.18 -	mv $WOK/$PACKAGE/avidemux_$VERSION $WOK/$PACKAGE/avidemux-$VERSION/src
    1.19 -	cd $src/src/avidemux/ADM_libraries
    1.20 -	tar xzf ffmpeg*.tar.gz
    1.21 +	cd $src/avidemux/ADM_libraries
    1.22 +	tar xzf ffmpeg_r25041.tar.gz
    1.23  	cd $src
    1.24  	# Fix for gcc45
    1.25  	sed -i -e 's/    "$@" >>/    $@ >>/' -e 's|mktemp -u|/usr/bin/mktemp -u|' \
    1.26 -		src/avidemux/ADM_libraries/ffmpeg/configure
    1.27 -	grep -q ADM_CPU_X86_64 src/avidemux/ADM*/src/ADM_vidField[sA]*.cpp ||
    1.28 +		avidemux/ADM_libraries/ffmpeg/configure
    1.29 +	grep -q ADM_CPU_X86_64 avidemux/ADM*/src/ADM_vidField[sA]*.cpp ||
    1.30  	sed -i 's/ADM_CPU_X86/ADM_CPU_X86_64/' \
    1.31 -		src/avidemux/ADM_coreImage/src/ADM_vidField[sA]*.cpp 
    1.32 +		avidemux/ADM_coreImage/src/ADM_vidField[sA]*.cpp 
    1.33  	mkdir built
    1.34  	cd built
    1.35 -	cmake -DCMAKE_INSTALL_PREFIX=/usr ../src
    1.36 +	cmake -DCMAKE_INSTALL_PREFIX=/usr ../
    1.37  	sed -i 's/\(find .*\) | xargs ln -sft/- ln -sf $(\1)/' \
    1.38  		avidemux/CMakeFiles/ffmpeg.dir/build.make
    1.39 -	make -j 4  && make DESTDIR=$PWD/../_pkg install
    1.40 +	make -j 4  && make -j1 DESTDIR=$DESTDIR install
    1.41 +
    1.42 +	mkdir -p $DESTDIR/usr/share/pixmaps $DESTDIR/usr/share/applications
    1.43 +	cp -a $src/avidemux_icon.png $DESTDIR/usr/share/pixmaps/avidemux.png
    1.44 +	cp -a $src/avidemux2.desktop $DESTDIR/usr/share/applications/avidemux2.desktop
    1.45  }
    1.46  
    1.47  # Rules to gen a SliTaz package suitable for Tazpkg.
    1.48 @@ -42,6 +43,5 @@
    1.49  	cp -a $_pkg/usr/bin $fs/usr
    1.50  	cp -a $_pkg/usr/lib/*.so* $fs/usr/lib
    1.51  	cp -a $_pkg/usr/share/ADM_scripts $fs/usr/share
    1.52 -	cp -a $src/src/avidemux_icon.png $fs/usr/share/pixmaps/avidemux.png
    1.53 -	cp -a $src/src/avidemux2.desktop $fs/usr/share/applications/avidemux2.desktop
    1.54 +
    1.55  }