wok-6.x annotate avidemux/receipt @ rev 20748

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