wok view avidemux/receipt @ rev 25088
modified recipe for lightdm
author | Hans-G?nter Theisgen |
---|---|
date | Sat Jun 18 09:31:48 2022 +0100 (2022-06-18) |
parents | 11b5e93cb5f2 |
children | c470ca10c896 |
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 # What is the latest version available today?
22 current_version()
23 {
24 wget -O - http://avidemux.sourceforge.net/download.html 2>/dev/null | \
25 sed '/tar.gz/!d;s|.*mux_||;s|.tar.*||;q'
26 }
28 # Rules to configure and make the package.
29 compile_rules()
30 {
31 # grep -q ADM_CPU_X86_64 avidemux/ADM*/src/ADM_vidField[sA]*.cpp ||
32 # sed -i 's/ADM_CPU_X86/ADM_CPU_X86_64/' \
33 # avidemux/ADM_coreImage/src/ADM_vidField[sA]*.cpp
34 mkdir built
35 cd built
36 cmake -DCMAKE_INSTALL_PREFIX=/usr \
37 -DCMAKE_BUILD_TYPE=Release \
38 -DCMAKE_SKIP_RPATH=ON \
39 -DGTK=1 \
40 -DQT4=0 \
41 .. &&
42 make -j 1 && make -j1 DESTDIR=$DESTDIR install
44 cd $src/built/lib
45 find ../avidemux -name '*.so*' | xargs ln -sft .
46 cd $src/plugins
47 mkdir build ; cd build
48 cmake -D CMAKE_INSTALL_PREFIX=/usr \
49 -D AVIDEMUX_SOURCE_DIR="${src}" \
50 -D AVIDEMUX_CORECONFIG_DIR="${src}/built/config" \
51 -D AVIDEMUX_INSTALL_PREFIX="${src}/built" \
52 -D CMAKE_BUILD_TYPE=Release \
53 -DCMAKE_SKIP_RPATH=ON \
54 .. &&
55 make -j 1 && make -j1 DESTDIR=$DESTDIR install
57 mkdir -p $DESTDIR/usr/share/pixmaps $DESTDIR/usr/share/applications
58 cp $src/avidemux_icon.png $DESTDIR/usr/share/pixmaps/avidemux.png
59 cp $src/avidemux2.desktop $DESTDIR/usr/share/applications
60 rm -rf $src/built $src/plugins/build
62 cook_pick_manpages $src/man/avidemux.1
63 }
65 # Rules to gen a SliTaz package suitable for Tazpkg.
66 genpkg_rules()
67 {
68 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps $fs/usr/share/applications
69 cp -a $install/usr/bin $fs/usr
70 cp -a $install/usr/lib $fs/usr
71 cp -a $install/usr/share/ADM_scripts $fs/usr/share
72 }