wok-next annotate avidemux/receipt @ rev 20061

gcompris: receipt v2
author Pascal Bellard <pascal.bellard@slitaz.org>
date Mon Oct 23 23:48:26 2017 +0200 (2017-10-23)
parents ace91d9d5849
children 2809ecb8c754
rev   line source
allan316@3201 1 # SliTaz package receipt.
allan316@3201 2
allan316@3201 3 PACKAGE="avidemux"
psychomaniak@20001 4 VERSION="2.7.0"
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"
psychomaniak@20001 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
jozee@3564 12 TAGS="video movie editor avi mpeg mp4"
allan316@3201 13
psychomaniak@20001 14 DEPENDS="alsa-lib libxml2 xorg-libXv cairo libxslt libvpx libvorbis qt5-base \
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@20012 19 libxslt-dev libvpx-dev bash qt5-dev xorg-dev zlib-dev mesa17-dev sqlite-dev \
psychomaniak@20045 20 libglu-mesa-dev fribidi-dev "
slaxemulator@12867 21
allan316@3201 22 # Rules to configure and make the package.
allan316@3201 23 compile_rules()
allan316@3201 24 {
psychomaniak@20001 25 sed -i 's|../avidemux/qt4|../avidemux/qt4 -DLRELEASE_EXECUTABLE=/usr/bin/lrelease-qt5|' bootStrap.bash
psychomaniak@20001 26 sed -ri 's|(Name=).*|\1avidemux (Qt)|' avidemux2.desktop
psychomaniak@20001 27 sed -ri 's|(Exec=).*|\1avidemux3_qt5|' avidemux2.desktop
psychomaniak@20045 28 sed 's/pkg_check_modules(PULSEAUDIOSIMPLE libpulse-simple)//' -i cmake/admCheckAudioDeviceLibs.cmake
psychomaniak@20046 29 sed 's|$EXTRA_CMAKE_DEFS|& -DVAPOURSYNTH=false -DFAAD=false -DFRIBIDI=false |' -i bootStrap.bash
psychomaniak@20014 30 bash bootStrap.bash --with-core --with-cli --with-plugins 2>/dev/null
psychomaniak@20001 31 for i in Cli Core PluginsCLI PluginsCommon Qt5 PluginsQt5; do
psychomaniak@20013 32 ( make -C build${i} DESTDIR="$DESTDIR" install 2>/dev/null) | \
psychomaniak@20013 33 egrep -v 'No package|ld returned 1 exit status'
psychomaniak@20001 34 done
slaxemulator@8713 35 mkdir -p $DESTDIR/usr/share/pixmaps $DESTDIR/usr/share/applications
al@14789 36 cp $src/avidemux_icon.png $DESTDIR/usr/share/pixmaps/avidemux.png
al@14789 37 cp $src/avidemux2.desktop $DESTDIR/usr/share/applications
al@19269 38
al@19275 39 cook_pick_manpages $src/man/avidemux.1
allan316@3201 40 }
allan316@3201 41
allan316@3201 42 # Rules to gen a SliTaz package suitable for Tazpkg.
allan316@3201 43 genpkg_rules()
allan316@3201 44 {
slaxemulator@5385 45 mkdir -p $fs/usr/lib $fs/usr/share/pixmaps $fs/usr/share/applications
al@14789 46 cp -a $install/usr/bin $fs/usr
psychomaniak@17445 47 cp -a $install/usr/lib $fs/usr
allan316@3201 48 }