wok view avidemux/receipt @ rev 17723
zonecheck: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Mar 05 18:20:41 2015 +0100 (2015-03-05) |
parents | 1f94f879d67c |
children | 7f39549720b8 |
line source
1 # SliTaz package receipt.
3 PACKAGE="avidemux"
4 VERSION="2.5.6"
5 CATEGORY="multimedia"
6 SHORT_DESC="free video editor"
7 MAINTAINER="allan316@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="http://fixounet.free.fr/$PACKAGE"
10 TARBALL="${PACKAGE}_${VERSION}.tar.gz"
11 WGET_URL="http://download.berlios.de/$PACKAGE/$TARBALL"
12 TAGS="video movie editor avi mpeg mp4"
14 DEPENDS="alsa-lib libxml2 xorg-libXv cairo libxslt libvpx libvorbis gtk+ \
15 opencore-amr lame faac faad2 libsamplerate xvidcore x264"
16 BUILD_DEPENDS="tar coreutils-file-special coreutils-file-format cmake yasm \
17 gettext pkg-config xorg-libXv-dev libxml2-dev libvorbis-dev lame-dev xvidcore-dev \
18 opencore-amr-dev x264-dev faac-dev faad2-dev libsamplerate-dev alsa-lib-dev \
19 libxslt-dev libvpx-dev gtk+-dev"
21 # Rules to configure and make the package.
22 compile_rules()
23 {
24 cd $src
25 # grep -q ADM_CPU_X86_64 avidemux/ADM*/src/ADM_vidField[sA]*.cpp ||
26 # sed -i 's/ADM_CPU_X86/ADM_CPU_X86_64/' \
27 # avidemux/ADM_coreImage/src/ADM_vidField[sA]*.cpp
28 mkdir built
29 cd built
30 cmake -DCMAKE_INSTALL_PREFIX=/usr \
31 -DCMAKE_BUILD_TYPE=Release \
32 -DCMAKE_SKIP_RPATH=ON \
33 -DGTK=1 \
34 -DQT4=0 \
35 .. &&
36 make -j 1 && make -j1 DESTDIR=$DESTDIR install
38 cd $src/built/lib
39 find ../avidemux -name '*.so*' | xargs ln -sft .
40 cd $src/plugins
41 mkdir build ; cd build
42 cmake -D CMAKE_INSTALL_PREFIX=/usr \
43 -D AVIDEMUX_SOURCE_DIR="${src}" \
44 -D AVIDEMUX_CORECONFIG_DIR="${src}/built/config" \
45 -D AVIDEMUX_INSTALL_PREFIX="${src}/built" \
46 -D CMAKE_BUILD_TYPE=Release \
47 -DCMAKE_SKIP_RPATH=ON \
48 .. &&
49 make -j 1 && make -j1 DESTDIR=$DESTDIR install
51 mkdir -p $DESTDIR/usr/share/pixmaps $DESTDIR/usr/share/applications
52 cp $src/avidemux_icon.png $DESTDIR/usr/share/pixmaps/avidemux.png
53 cp $src/avidemux2.desktop $DESTDIR/usr/share/applications
54 rm -rf $src/built $src/plugins/build
55 }
57 # Rules to gen a SliTaz package suitable for Tazpkg.
58 genpkg_rules()
59 {
60 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps $fs/usr/share/applications
61 cp -a $install/usr/bin $fs/usr
62 cp -a $install/usr/lib $fs/usr
63 cp -a $install/usr/share/ADM_scripts $fs/usr/share
65 }