aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gnash
diff options
context:
space:
mode:
authorwg <wg@FreeBSD.org>2013-10-10 09:38:20 +0800
committerwg <wg@FreeBSD.org>2013-10-10 09:38:20 +0800
commitb6d4e8c5352e34b483a81516e4c37a3b2077210c (patch)
treea010b706e5f9332d25556aefb6440058c0b7f83f /graphics/gnash
parent7444d11f59abaf7fb5381bfc87102000a77ac0dc (diff)
downloadfreebsd-ports-gnome-b6d4e8c5352e34b483a81516e4c37a3b2077210c.tar.gz
freebsd-ports-gnome-b6d4e8c5352e34b483a81516e4c37a3b2077210c.tar.zst
freebsd-ports-gnome-b6d4e8c5352e34b483a81516e4c37a3b2077210c.zip
graphics/gnash: link using ffmpeg0
- Link using ffmpeg0 Approved by: portmgr (bapt, implicit)
Diffstat (limited to 'graphics/gnash')
-rw-r--r--graphics/gnash/Makefile8
-rw-r--r--graphics/gnash/files/patch-configure115
2 files changed, 117 insertions, 6 deletions
diff --git a/graphics/gnash/Makefile b/graphics/gnash/Makefile
index e541a493c748..1698161afd74 100644
--- a/graphics/gnash/Makefile
+++ b/graphics/gnash/Makefile
@@ -30,7 +30,6 @@ USE_GCC= 4.2+ # triggers compiler error on gcc 3.4
WANT_GSTREAMER= yes
USE_GNOME= libxml2
USE_XORG= x11 xau xdmcp xext xi xinerama ice sm xv
-USE_AUTOTOOLS= libltdl
INSTALLS_ICONS= yes
# jemalloc leads to infinite recursion on FreeBSD
@@ -200,9 +199,12 @@ PLIST_SUB+= VAAPI="@comment "
# Media handler options processing
#
.if ${PORT_OPTIONS:MFFMPEG} && empty(PORT_OPTIONS:MGSTREAMER)
-LIB_DEPENDS+= avcodec:${PORTSDIR}/multimedia/ffmpeg
-CONFIGURE_ARGS+= --enable-media=ffmpeg
+LIB_DEPENDS+= libavcodec0.so:${PORTSDIR}/multimedia/ffmpeg0
+CONFIGURE_ARGS+= --enable-media=ffmpeg \
+ --with-ffmpeg-incl=${LOCALBASE}/include/ffmpeg0/libavcodec \
+ --with-ffmpeg-lib=${LOCALBASE}/lib/ffmpeg0
USE_SDL+= sdl
+MAKE_ARGS+= INCLUDES="-I${LOCALBASE}/include/ffmpeg0"
.elif empty(PORT_OPTIONS:MFFMPEG) && ${PORT_OPTIONS:MGSTREAMER}
USE_GSTREAMER= yes
CONFIGURE_ARGS+= --enable-media=gst
diff --git a/graphics/gnash/files/patch-configure b/graphics/gnash/files/patch-configure
index a0fdb4e1189a..f9e7a3601cfe 100644
--- a/graphics/gnash/files/patch-configure
+++ b/graphics/gnash/files/patch-configure
@@ -1,6 +1,106 @@
---- configure.orig 2012-01-19 20:19:29.000000000 +0100
-+++ configure 2012-06-18 07:47:13.000000000 +0200
-@@ -30836,6 +30836,11 @@
+--- configure.orig 2012-01-19 17:19:29.000000000 -0200
++++ configure 2013-10-09 15:07:40.051081546 -0300
+@@ -9336,7 +9336,7 @@
+ if test x${ffmpeg_top_incl} = x; then
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking location of avcodec.h" >&5
+ $as_echo_n "checking location of avcodec.h... " >&6; }
+- if test x"$PKG_CONFIG" != x; then if $PKG_CONFIG --exists libavcodec; then ffmpeg_pkg=`$PKG_CONFIG --cflags-only-I libavcodec`
++ if test x"$PKG_CONFIG" != x; then if $PKG_CONFIG --exists libavcodec0; then ffmpeg_pkg=`$PKG_CONFIG --cflags-only-I libavcodec0`
+ ffmpeg_top_incl=`echo ${ffmpeg_pkg} | sed -e 's:-I::'`
+ for i in "" ffmpeg libavcodec ffmpeg/libavcodec; do
+ if test -f ${ffmpeg_top_incl}/${i}/avcodec.h; then
+@@ -9568,16 +9568,16 @@
+ else
+
+ if test x"${with_ffmpeg_lib}" != x ; then
+- if test -f ${with_ffmpeg_lib}/libavcodec.a -o -f ${with_ffmpeg_lib}/libavcodec.${shlibext}; then
++ if test -f ${with_ffmpeg_lib}/libavcodec0.a -o -f ${with_ffmpeg_lib}/libavcodec0.${shlibext}; then
+ ac_cv_path_ffmpeg_lib="-L`(cd ${with_ffmpeg_lib}; pwd)`"
+- libavcodec="-lavcodec"
++ libavcodec="-lavcodec0"
+ LIBS="${ac_cv_path_ffmpeg_lib} $LIBS" top_lib_dir=${with_ffmpeg_lib}
+ else
+ as_fn_error "${with_ffmpeg_lib} directory doesn't contain libavcodec libraries." "$LINENO" 5
+ fi
+- if test -f ${with_ffmpeg_lib}/libavformat.a -o -f ${with_ffmpeg_lib}/libavformat.${shlibext}; then
++ if test -f ${with_ffmpeg_lib}/libavformat0.a -o -f ${with_ffmpeg_lib}/libavformat0.${shlibext}; then
+ ac_cv_path_ffmpeg_lib="-L`(cd ${with_ffmpeg_lib}; pwd)`"
+- libavformat="-lavformat"
++ libavformat="-lavformat0"
+ top_lib_dir=${with_ffmpeg_lib}
+ else
+ as_fn_error "${with_ffmpeg_lib} directory doesn't contain libavformat libraries." "$LINENO" 5
+@@ -9869,13 +9869,13 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libavutil library" >&5
+ $as_echo_n "checking for libavutil library... " >&6; }
+ if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then
+- $PKG_CONFIG --exists libavutil && libavutil=`$PKG_CONFIG --libs-only-l libavutil`
++ $PKG_CONFIG --exists libavutil0 && libavutil=`$PKG_CONFIG --libs-only-l libavutil0`
+ else
+ libavutil=""
+ fi
+ if test x"${libavutil}" = x; then
+- if test -f ${top_lib_dir}/libavutil.a -o -f ${top_lib_dir}/libavutil.${shlibext}; then
+- ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lavutil"
++ if test -f ${top_lib_dir}/libavutil0.a -o -f ${top_lib_dir}/libavutil0.${shlibext}; then
++ ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lavutil0"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${top_lib_dir}/libavutil" >&5
+ $as_echo "${top_lib_dir}/libavutil" >&6; }
+ else
+@@ -9888,7 +9888,7 @@
+ $as_echo_n "(cached) " >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lavutil $LIBS"
++LIBS="-lavutil0 $LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+@@ -9919,7 +9919,7 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avutil_av_log" >&5
+ $as_echo "$ac_cv_lib_avutil_av_log" >&6; }
+ if test "x$ac_cv_lib_avutil_av_log" = x""yes; then :
+- ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lavutil"
++ ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lavutil0"
+ fi
+
+ fi
+@@ -10126,13 +10126,13 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libswscale library" >&5
+ $as_echo_n "checking for libswscale library... " >&6; }
+ if test x"$PKG_CONFIG" != x -a x${cross_compiling} = xno; then
+- $PKG_CONFIG --exists libswscale && libsws=`$PKG_CONFIG --libs-only-l libswscale`
++ $PKG_CONFIG --exists libswscale0 && libsws=`$PKG_CONFIG --libs-only-l libswscale0`
+ else
+ libsws=""
+ fi
+ if test x"${libsws}" = x; then
+- if test -f ${top_lib_dir}/libswscale.a -o -f ${top_lib_dir}/libswscale.${shlibext}; then
+- ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lswscale"
++ if test -f ${top_lib_dir}/libswscale0.a -o -f ${top_lib_dir}/libswscale0.${shlibext}; then
++ ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lswscale0"
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
+ $as_echo "yes" >&6; }
+ else
+@@ -10145,7 +10145,7 @@
+ $as_echo_n "(cached) " >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+-LIBS="-lswscale $LIBS"
++LIBS="-lswscale0 $LIBS"
+ cat confdefs.h - <<_ACEOF >conftest.$ac_ext
+ /* end confdefs.h. */
+
+@@ -10176,7 +10176,7 @@
+ { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_swscale_sws_scale" >&5
+ $as_echo "$ac_cv_lib_swscale_sws_scale" >&6; }
+ if test "x$ac_cv_lib_swscale_sws_scale" = x""yes; then :
+- ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lswscale"
++ ac_cv_path_ffmpeg_lib="${ac_cv_path_ffmpeg_lib} -lswscale0"
+ fi
+
+ fi
+@@ -30836,12 +30836,17 @@
esac
fi
@@ -12,6 +112,15 @@
if test x"${with_kde4_plugindir}" != x ; then
KDE4_PLUGINDIR="${with_kde4_plugindir}"
else
+- if test -d ${KDE4_PREFIX}/lib64 -a -f /etc/redhat-release || \
+- test -d ${KDE4_PREFIX}/lib64 -a -f /usr/lib/rpm/suse_macros; then
+- KDE4_PLUGINDIR="${KDE4_PREFIX}/lib64/kde4"
++ if test -d ${KDE4_PREFIX}/lib -a -f /etc/redhat-release || \
++ test -d ${KDE4_PREFIX}/lib -a -f /usr/lib/rpm/suse_macros; then
++ KDE4_PLUGINDIR="${KDE4_PREFIX}/lib/kde4"
+ else
+ KDE4_PLUGINDIR="${KDE4_PREFIX}/lib/kde4"
+ fi
@@ -49394,7 +49399,7 @@
if test x$build_agg = xyes; then # {