Nouveau forum : https://forum.slackware-fr.eu.org/

Annonce

29/01/2017 : Ce forum est dsormais en lecture seule. Merci d'utiliser le nouveau forum.

13/12/2014 : Inscriptions dsactives pour un moment en raison d'une recrudescence d'inscriptions plus que douteuses.

#1 19-08-2009 13:23:46

cfdev
Slacker
Lieu: Provence
Date d'inscription: 03-01-2007
Messages: 552
Site web

[SlackBuild] Kdenlive

Kdenlive est un intuitif et puissant diteur vido. Il permet de combiner des images de la video du son...
Idal pour faire des montages vidos de son bout de chou. A vos camras big_smile

Site web du projet : http://www.kdenlive.org/

Slackbuild uniquement partir de la slackware 13.0.

Code:

#!/bin/sh
# by: cfdev - http://www.slackware-fr.org <cyril.frausti@gmail.com>
# Licence: CC-BY-SA - http://creativecommons.org/licenses/by-sa/3.0/
#
# Build script for Slackware - Based on Generic SlackBuild
#
# Latest Software sourcecode is available at:
# http://www.kdenlive.org
#
# Depends: l/mtl, l/ffmpeg

NAMESRC=${NAMESRC:-kdenlive}
VERSION=${VERSION:-0.7.5}
EXT=${EXT:-tar.gz}
NAMEPKG=${NAMEPKG:-kdenlive}
EXTPKG=${EXTPKG:-txz}
BUILD=${BUILD:-1sfo}
 
TMP=${TMP:-/tmp}
OUT=${OUT:-$TMP/build}
ARCH=${ARCH:-i686}
TARGET=${TARGET:-$ARCH}
WGET=${WGET:-http://downloads.sourceforge.net/kdenlive/$NAMESRC-$VERSION.$EXT}
DOC=${DOC:-AUTHORS COPYING README}
########################################

set -e
umask 022
 
if [ "$(id -u)" = "0" ]; then
  echo "You shouldn't run this SlackBuild as ROOT !"
  sleep 10
fi

# ---------------- DOWNLOAD -----------------------------
if [ ! -r $NAMESRC-$VERSION.$EXT ]; then
  wget -vc $WGET -O $NAMESRC-$VERSION-src.$EXT.part
  mv $NAMESRC-$VERSION-src.$EXT.part $NAMESRC-$VERSION.$EXT
fi

CWD=$(pwd)
PKG=$TMP/build/$NAMEPKG
NAME=$(tar ft $NAMESRC-$VERSION.$EXT | head -n 1 | awk -F/ '{ print $1 }')
LIBDIRSUFFIX=""

case $ARCH in
  i386)SLKCFLAGS="-O2 -march=i386 -mtune=i686";;
  i486)SLKCFLAGS="-O2 -march=i486 -mtune=i686";;
  i586)SLKCFLAGS="-O2 -march=i586 -mtune=i686";;
  i686)SLKCFLAGS="-O2 -march=i686 -mtune=i686";;
  s390)SLKCFLAGS="-O2";;
  x86_64)SLKCFLAGS="-O2 -fPIC";LIBDIRSUFFIX="64"
esac
 
if [ ! -d $TMP ]; then
  echo "$TMP doesn't exist or is not a directory !"
  exit 1
fi
 
# ---------------- BUILDING -----------------------------
cd $TMP
echo "Building $NAMESRC-$VERSION.$EXT..."
tar xf $CWD/$NAMESRC-$VERSION.$EXT
cd $NAME

mkdir -p build/release
cd build/release

 cmake \
    -DCMAKE_C_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_CXX_FLAGS:STRING="$SLKCFLAGS" \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DLIBDIR=/usr/lib${LIBDIRSUFFIX} \
    -DMAN_INSTALL_DIR=/usr/man \
    -DCMAKE_BUILD_TYPE=Release ../../
 
make -j3
make install DESTDIR=$PKG 
 
# ---------------- DESCRIPTION -----------------------------
mkdir -p $PKG/install
cat > $PKG/install/slack-desc << EOF
# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.  Line
# up the first '|' above the ':' following the base package name, and the '|'
# on the right side marks the last column you can put a character in.  You must
# make exactly 11 lines for the formatting to be correct.  It's also
# customary to leave one space after the ':'.
        |-----handy-ruler------------------------------------------------------|
kdenlive: kdenlive - free open-source video editor
kdenlive:  
kdenlive: Kdenlive is a free open-source video editor for GNU/Linux and FreeBSD
kdenlive: which supports DV, AVCHD (experimental support) and HDV editing. 
kdenlive: Kdenlive relies on several other open source projects,
kdenlive: such as FFmpeg and MLT video framework.
kdenlive:
kdenlive: Depends: l/mtl, l/ffmpeg
kdenlive: Homepage: http://www.kdenlive.org/
kdenlive:
kdenlive: by: cfdev - http://www.slackware-fr.org <cyril.frausti@gmail.com>
EOF
 
# Install the documentation
cd ../../
mkdir -p $PKG/usr/doc/$NAMEPKG-$VERSION
cp -a $DOC $PKG/usr/doc/$NAMEPKG-$VERSION
 
# Compress the man pages
if [ -d $PKG/usr/man ]; then
  find $PKG/usr/man -type f -name "*.?" -exec gzip -9 {} \;
  for manpage in $(find $PKG/usr/man -type l) ; do
    ln -s $(readlink $manpage).gz $manpage.gz
    rm -f $manpage
  done
fi
 
# Compress the info pages
if [ -d $PKG/usr/info ]; then
  rm -f $PKG/usr/info/dir
  gzip -9 $PKG/usr/info/*.info*
fi
 
# Strip binaries, libraries and archives
find $PKG -type f | xargs file | grep "LSB executable" | cut -f 1 -d : | xargs \
  strip --strip-unneeded 2> /dev/null || echo "No binaries to strip"
find $PKG -type f | xargs file | grep "shared object" | cut -f 1 -d : | xargs \
  strip --strip-unneeded 2> /dev/null || echo "No shared objects to strip"
find $PKG -type f | xargs file | grep "current ar archive" | cut -f 1 -d : | \
  xargs strip -g 2> /dev/null || echo "No archives to strip"

# ------------------ PKG ---------------- 
# Build the package
cd $PKG
mkdir -p $OUT
PACKAGING="
chown root:root . -R
/sbin/makepkg -l y -c n $OUT/$NAMEPKG-$VERSION-$ARCH-$BUILD.$EXTPKG
rm -rf $PKG
rm -rf $TMP/$NAME
"
if [ "$(which fakeroot 2> /dev/null)" ]; then
  echo "$PACKAGING" | fakeroot
else
  su -c "$PACKAGING"
fi

# End of SlackBuild

Since Slack 11.0 | My Linux user number 445875
http://www.kde.org/stuff/buttons/kde-user.png

Hors ligne

 

#2 21-11-2013 13:28:06

alice
Nouveau membre
Date d'inscription: 21-11-2013
Messages: 1

Re: [SlackBuild] Kdenlive

Le client Java n'est pas prit en charge, parce que j'utilise pas les applis Java en gnral. Si quelqu'un veut modifier le SB, feel free comme ils disent outre-manche, c'est un svn, a sert a


Get free demos for pass 4 sure exam

Hors ligne