--- /dev/null
+#!/bin/bash
+
+echo "##########################################################################"
+echo "ffmpeg" $VERSION
+echo "##########################################################################"
+
+mkdir -p $PRODUCT_INSTALL
+
+rm -rf $BUILD_DIR
+mkdir $BUILD_DIR
+cd $BUILD_DIR
+
+cp -r $SOURCE_DIR/* .
+
+CONFIGURE_OPTIONS=
+CONFIGURE_OPTIONS+=" --prefix=${PRODUCT_INSTALL}"
+CONFIGURE_OPTIONS+=" --disable-yasm"
+CONFIGURE_OPTIONS+=" --disable-doc"
+CONFIGURE_OPTIONS+=" --enable-shared"
+
+echo
+echo "*** configure $CONFIGURE_OPTIONS"
+$BUILD_DIR/configure $CONFIGURE_OPTIONS
+if [ $? -ne 0 ]; then
+ echo "ERROR on configure"
+ exit 1
+fi
+
+echo
+echo "*** make" $MAKE_OPTIONS
+make $MAKE_OPTIONS
+if [ $? -ne 0 ]; then
+ echo "ERROR on make"
+ exit 2
+fi
+
+echo
+echo "*** make install"
+make install
+if [ $? -ne 0 ]; then
+ echo "ERROR on make install"
+ exit 3
+fi
+
+echo
+echo "########## END"
--- /dev/null
+#!/usr/bin/env python
+#-*- coding:utf-8 -*-
+
+import os.path, platform
+
+def set_env(env, prereq_dir, version):
+ if platform.system() == "Windows"
+ pass
+ else:
+ env.set("FFMPEG_ROOT_DIR",prereq_dir)
+ env.prepend('LD_LIBRARY_PATH', os.path.join(prereq_dir, 'lib'))
+ env.prepend('PKG_CONFIG_PATH',os.path.join(prereq_dir, 'lib/pkgconfig'))
+
+def set_nativ_env(env):
+ pass
+
# Only used as a native product for dedicated opencv compilation
default :
{
- name : "ffmpeg"
- get_source : "system"
+ name : "ffmpeg"
+ build_source: "script"
+ compil_script : $name + $VARS.scriptExtension
+ get_source : "archive"
depend : []
+ build_depend: []
+ source_dir : $APPLICATION.workdir + $VARS.sep + 'SOURCES' + $VARS.sep + $name
+ build_dir : $APPLICATION.workdir + $VARS.sep + 'BUILD' + $VARS.sep + $name
+ install_dir : 'base'
system_info :
{
rpm : ["ffmpeg"]
apt : ["ffmpeg"]
apt_dev : []
}
+ environ :
+ {
+ env_script : $name + ".py"
+ }
+ properties :
+ {
+ incremental : "yes"
+ }
+}
+
+version_2_1_3:
+{
+ compil_script : "ffmpeg-2.1.3.sh"
}