diff options
author | Thierry Thomas <thierry@FreeBSD.org> | 2006-01-22 13:43:46 +0000 |
---|---|---|
committer | Thierry Thomas <thierry@FreeBSD.org> | 2006-01-22 13:43:46 +0000 |
commit | 38fc40e4d08a9db95cc3f4136b24f40a17499af9 (patch) | |
tree | 2d245490c681afb5a90ef46a4579380f78483687 /graphics/gephex/files/patch-configure.ac | |
parent | - Add checks to make sure a database backend has been chosen. (diff) |
GePhex is an interactive effect system for video jockeys. The effects
can be controlled with external devices like joysticks, web-cams, or
midi-devices. New effects can be designed in a GUI (Graphical User
Interface) by composing basic effects into more complex ones.
WWW: http://www.gephex.org/
PR: ports/7359
Submitted by: Igor Pokrovsky <ip (at) doom.homeunix.org>
Diffstat (limited to 'graphics/gephex/files/patch-configure.ac')
-rw-r--r-- | graphics/gephex/files/patch-configure.ac | 126 |
1 files changed, 126 insertions, 0 deletions
diff --git a/graphics/gephex/files/patch-configure.ac b/graphics/gephex/files/patch-configure.ac new file mode 100644 index 000000000000..4d981a0194cf --- /dev/null +++ b/graphics/gephex/files/patch-configure.ac @@ -0,0 +1,126 @@ +--- configure.ac.orig ++++ configure.ac +@@ -126,8 +126,11 @@ + fi + + # qt ++saved_LDFLAGS="${LDFLAGS}" ++LDFLAGS="${LDFLAGS} %%PTHREAD_LIBS%%" + AM_PATH_QT([2.3.0], $SHAREDLIBEXT, have_qt=yes, have_qt=no) + AM_CONDITIONAL(HAVE_QT, test "x$have_qt" = "xyes") ++LDFLAGS="${saved_LDFLAGS}" + + # Checks for libraries. + AC_CHECK_LIB(dl,dlopen, +@@ -170,11 +173,16 @@ + + # optional libraries + ++ac_save_CFLAGS="$CFLAGS" ++CFLAGS="${CFLAGS} -I%%X11BASE%%/include" ++ + CHECK_EXTRA_LIB([GL], + [AC_CHECK_HEADER([GL/glx.h],have_gl=yes,have_gl=no)], + [no], [with_gl], [have_gl], [use_gl]) + AM_CONDITIONAL([WITH_GL], test "x$use_gl" = "xyes") + ++CFLAGS="${ac_save_CFLAGS}" ++ + CHECK_EXTRA_LIB([SDL], [AM_PATH_SDL([1.1.0], have_sdl=yes, have_sdl=no)], + [yes], [with_sdl], [have_sdl], [use_sdl]) + AM_CONDITIONAL([WITH_SDL], test "x$use_sdl" = "xyes") +@@ -223,7 +231,8 @@ + # libpng + CHECK_EXTRA_LIB([LIBPNG], + [AC_CHECK_HEADER([png.h],have_libpng=yes,have_libpng=no)], +- [no], [with_libpng], [have_libpng], [use_libpng]) ++ [no], [with_libpng], [have_libpng], [use_libpng], ++ [AC_SUBST(PNG_LDFLAGS, "-L%%LOCALBASE%%/lib")]) + AM_CONDITIONAL([WITH_LIBPNG], test "x$use_libpng" = "xyes") + + # aalib +@@ -269,7 +278,7 @@ + + # ffmpeg + CHECK_EXTRA_LIB([FFMPEG], +- [if test -d $srcdir/contrib/ffmpeg; then have_ffmpeg=yes; else have_ffmpeg=no; fi], ++ [have_ffmpeg=yes], + [yes], [with_ffmpeg], [have_ffmpeg], [use_ffmpeg]) + AM_CONDITIONAL([WITH_FFMPEG], test "x$use_ffmpeg" = "xyes") + +@@ -345,46 +354,46 @@ + AC_DEFINE_UNQUOTED([FRBINMODULE_CACHE_SIZE], $FRBINCACHE, [Size of the cache the frbinmodule uses (in MB)]) + fi; + +-if test "x$use_ffmpeg" = "xyes"; then +- FFMPEG_CONFIGURE_FLAGS="--prefix=$prefix --disable-ffserver --disable-ffplay --enable-shared" ++#if test "x$use_ffmpeg" = "xyes"; then ++# FFMPEG_CONFIGURE_FLAGS="--prefix=$prefix --disable-ffserver --disable-ffplay --enable-shared" + #--disable-risky" + +- echo Preparing ffmpeg configure call... ++# echo Preparing ffmpeg configure call... + + # If building with builddir != srcdir, ffmpegs configure wants to be + # called with an absolute path. + # Also, we have to do some workarounds (doc dir is missing for example). +- if test "x${srcdir}" != x.; then +- pwd +- (mkdir contrib && mkdir contrib/ffmpeg) || true +- +- if ! test -e contrib/ffmpeg/doc +- then +- mkdir contrib/ffmpeg/doc +- echo "all:" > contrib/ffmpeg/doc/Makefile +- fi +- +- TMPDIR=`pwd` && cd ${srcdir} && absolute_srcdir=`pwd` && cd $TMPDIR +- +- FFMPEG_CONFIG_DIR="${absolute_srcdir}/contrib/ffmpeg" +- +- AC_SUBST(FFMPEG_DIR,"${absolute_srcdir}/contrib/ffmpeg") #TODO +- else +- FFMPEG_CONFIG_DIR="." +- AC_SUBST(FFMPEG_DIR,"../../../contrib/ffmpeg") #TODO +- fi ++# if test "x${srcdir}" != x.; then ++# pwd ++# (mkdir contrib && mkdir contrib/ffmpeg) || true ++# ++# if ! test -e contrib/ffmpeg/doc ++# then ++# mkdir contrib/ffmpeg/doc ++# echo "all:" > contrib/ffmpeg/doc/Makefile ++# fi ++# ++# TMPDIR=`pwd` && cd ${srcdir} && absolute_srcdir=`pwd` && cd $TMPDIR ++# ++# FFMPEG_CONFIG_DIR="${absolute_srcdir}/contrib/ffmpeg" ++# ++# AC_SUBST(FFMPEG_DIR,"${absolute_srcdir}/contrib/ffmpeg") #TODO ++# else ++# FFMPEG_CONFIG_DIR="." ++# AC_SUBST(FFMPEG_DIR,"../../../contrib/ffmpeg") #TODO ++# fi + + # get absolute path of builddir +- abs_builddir=`pwd` ++# abs_builddir=`pwd` + +- AC_SUBST(FFMPEG_LDFLAGS,"${abs_builddir}/contrib/ffmpeg/libavformat/libavformat.a ${abs_builddir}/contrib/ffmpeg/libavcodec/libavcodec.a -lz") ++ AC_SUBST(FFMPEG_LDFLAGS,"%%LOCALBASE%%/lib/libavformat.a %%LOCALBASE%%/lib/libavcodec.a -lz") + # AC_SUBST(FFMPEG_LDFLAGS,"-L${abs_builddir}/contrib/ffmpeg/libavcodec -lavcodec -lz -L${abs_builddir}/contrib/ffmpeg/libavformat -lavformat") +- AC_SUBST(FFMPEG_CFLAGS,"-I${FFMPEG_DIR}/libavcodec -I${FFMPEG_DIR}/libavformat") ++ AC_SUBST(FFMPEG_CFLAGS,"-I%%LOCALBASE%%/include/ffmpeg") + +- echo Calling ffmpeg configure with flags: +- echo "${FFMPEG_CONFIG_DIR}/configure $FFMPEG_CONFIGURE_FLAGS" +- cd contrib/ffmpeg/ && ${FFMPEG_CONFIG_DIR}/configure $FFMPEG_CONFIGURE_FLAGS && cd ../.. +-fi ++# echo Calling ffmpeg configure with flags: ++# echo "${FFMPEG_CONFIG_DIR}/configure $FFMPEG_CONFIGURE_FLAGS" ++# cd contrib/ffmpeg/ && ${FFMPEG_CONFIG_DIR}/configure $FFMPEG_CONFIGURE_FLAGS && cd ../.. ++#fi + + # set gphx_module_lib_dir and gphx_type_lib_dir + test "x$prefix" = xNONE && prefix=$ac_default_prefix |