aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-11-08 16:25:36 +0000
committertobigun <tobigun@b956fd51-792f-4845-bead-9b4dfca2ff2c>2010-11-08 16:25:36 +0000
commit42f4abb95bee3221367221bd39bf4692dace5d85 (patch)
treeeee7ddd96a10b1babc52a1a905917cb8da311d2e
parent66c58d0a28ba3067620aae3e1c6ff21f01f400ff (diff)
downloadusdx-42f4abb95bee3221367221bd39bf4692dace5d85.tar.gz
usdx-42f4abb95bee3221367221bd39bf4692dace5d85.tar.xz
usdx-42f4abb95bee3221367221bd39bf4692dace5d85.zip
preliminary build scripts
git-svn-id: svn://svn.code.sf.net/p/ultrastardx/svn/branches/experimental@2717 b956fd51-792f-4845-bead-9b4dfca2ff2c
-rw-r--r--mediaplugin/src/plugins/media/ffmpeg/Makefile.am10
-rwxr-xr-xmediaplugin/src/plugins/media/ffmpeg/autogen.sh6
-rw-r--r--mediaplugin/src/plugins/media/ffmpeg/configure.ac96
3 files changed, 112 insertions, 0 deletions
diff --git a/mediaplugin/src/plugins/media/ffmpeg/Makefile.am b/mediaplugin/src/plugins/media/ffmpeg/Makefile.am
new file mode 100644
index 00000000..cc28dd9a
--- /dev/null
+++ b/mediaplugin/src/plugins/media/ffmpeg/Makefile.am
@@ -0,0 +1,10 @@
+lib_LTLIBRARIES = libffmpegplugin.la
+libffmpegplugin_la_SOURCES = ../core/plugin_core.cpp ../core/util.cpp ../core/logger.cpp ffmpeg_core.cpp ffmpeg_audio_convert.cpp ffmpeg_audio_decode.cpp ffmpeg_video_decode.cpp ffmpeg_plugin.cpp
+libffmpegplugin_la_CXXFLAGS = -I../include \
+ $(ffmpeg_CFLAGS) \
+ $(libswscale_CFLAGS)
+libffmpegplugin_la_LDFLAGS = -module -export-dynamic \
+ $(ffmpeg_LIBS) \
+ $(libswscale_LIBS) \
+ $(LDFLAGS)
+
diff --git a/mediaplugin/src/plugins/media/ffmpeg/autogen.sh b/mediaplugin/src/plugins/media/ffmpeg/autogen.sh
new file mode 100755
index 00000000..15355926
--- /dev/null
+++ b/mediaplugin/src/plugins/media/ffmpeg/autogen.sh
@@ -0,0 +1,6 @@
+#!/bin/sh
+AUTOGEN_DIR=../../../../dists/autogen
+libtoolize
+aclocal -I ${AUTOGEN_DIR}/m4 && autoconf
+automake -a
+
diff --git a/mediaplugin/src/plugins/media/ffmpeg/configure.ac b/mediaplugin/src/plugins/media/ffmpeg/configure.ac
new file mode 100644
index 00000000..790ab091
--- /dev/null
+++ b/mediaplugin/src/plugins/media/ffmpeg/configure.ac
@@ -0,0 +1,96 @@
+#
+# ultrastardx configure.ac script
+#
+# by UltraStar Deluxe Team
+#
+# Execute "autogen.sh" or "make reconf"
+# to create the configure script.
+
+# Require autoconf >= 2.61
+AC_PREREQ(2.61)
+
+# Init autoconf
+AC_INIT([usdx-ffmpeg-plugin], [1.1])
+
+# Specify a source-file so autoconf can check if the source-dir exists
+AC_CONFIG_SRCDIR(.)
+
+# Set the path to install-sh
+AC_CONFIG_AUX_DIR(../../../../dists/autogen)
+
+# show features and packages in one list
+AC_PRESERVE_HELP_ORDER
+
+# -----------------------------------------
+# find tools
+# -----------------------------------------
+
+LT_INIT
+
+# options for make command
+AC_PROG_MAKE_SET
+# find tool for ln -s (e.g. uses cp -p for FAT-filesystems)
+#AC_LN_S
+# find a program for recursive dir creation
+#AC_PROG_MKDIR_P
+# find the best install tool
+#AC_PROG_INSTALL
+# some other useful tools
+#AC_PROG_AWK
+#AC_PROG_SED
+#AC_PROG_GREP
+AC_PROG_LIBTOOL
+#AC_PROG_RANLIB
+#AC_PROG_EGREP
+
+AM_INIT_AUTOMAKE([foreign])
+
+# -----------------------------------------
+# check for compilers
+# -----------------------------------------
+
+AC_CANONICAL_HOST
+
+# find and test the C compiler (for C-libs and wrappers)
+AC_PROG_CC
+AC_LANG([C])
+
+# find and test the C++ compiler (for C-libs and wrappers)
+AC_PROG_CXX
+AC_LANG([C++])
+
+
+# find pkg-config
+PKG_PROG_PKG_CONFIG()
+if [[ x$PKG_CONFIG = x ]]; then
+ AC_MSG_ERROR([
+!!! pkg-config was not found on your system.
+!!! It is needed to determine the versions of your libraries.
+!!! Install it and try again.])
+fi
+
+
+# -----------------------------------------
+# check for libraries
+# -----------------------------------------
+
+# find FFMpeg
+PKG_CHECK_MODULES([ffmpeg], [libavcodec libavformat libavutil], [
+ #AC_CHECK_HEADERS(libavcodec/avcodec.h ffmpeg/avcodec.h)
+ #AC_CHECK_HEADERS(libavutil/avutil.h ffmpeg/avutil.h)
+ ])
+# find FFMpeg's swscale lib (just if FFMpeg is compiled in GPL mode)
+PKG_CHECK_MODULES([libswscale], [libswscale],
+ [
+ HAVE_SWSCALE="yes"
+ ], [
+ HAVE_SWSCALE="no"
+ ])
+
+# -----------------------------------------
+# create output files
+# -----------------------------------------
+
+AC_CONFIG_FILES([Makefile])
+AC_OUTPUT
+