aboutsummaryrefslogtreecommitdiff
path: root/multimedia/gstreamer-plugins-bad/files
diff options
context:
space:
mode:
authorMichael Johnson <ahze@FreeBSD.org>2006-09-13 12:16:58 +0000
committerMichael Johnson <ahze@FreeBSD.org>2006-09-13 12:16:58 +0000
commitbca0c695eee48480763c77c12ff634f7a05c1774 (patch)
treececaab369a5ca51b5c3609c149c60b546fff2deb /multimedia/gstreamer-plugins-bad/files
parent45d85c7807cce3b65e004033695ccf6cf448d3ef (diff)
downloadports-bca0c695eee48480763c77c12ff634f7a05c1774.tar.gz
ports-bca0c695eee48480763c77c12ff634f7a05c1774.zip
Notes
Diffstat (limited to 'multimedia/gstreamer-plugins-bad/files')
-rw-r--r--multimedia/gstreamer-plugins-bad/files/patch-configure55
-rw-r--r--multimedia/gstreamer-plugins-bad/files/patch-ext_faad_gstfaad.c23
2 files changed, 78 insertions, 0 deletions
diff --git a/multimedia/gstreamer-plugins-bad/files/patch-configure b/multimedia/gstreamer-plugins-bad/files/patch-configure
new file mode 100644
index 000000000000..4ea746f00336
--- /dev/null
+++ b/multimedia/gstreamer-plugins-bad/files/patch-configure
@@ -0,0 +1,55 @@
+--- configure.orig Wed Sep 13 08:11:45 2006
++++ configure Wed Sep 13 08:12:32 2006
+@@ -30382,9 +30382,9 @@
+
+ HAVE_FAAD="yes"
+
+- echo "$as_me:$LINENO: checking for faacDecOpen in -lfaad" >&5
+-echo $ECHO_N "checking for faacDecOpen in -lfaad... $ECHO_C" >&6
+-if test "${ac_cv_lib_faad_faacDecOpen+set}" = set; then
++ echo "$as_me:$LINENO: checking for NeAACDecOpen in -lfaad" >&5
++echo $ECHO_N "checking for NeAACDecOpen in -lfaad... $ECHO_C" >&6
++if test "${ac_cv_lib_faad_NeAACDecOpen+set}" = set; then
+ echo $ECHO_N "(cached) $ECHO_C" >&6
+ else
+ ac_check_lib_save_LIBS=$LIBS
+@@ -30402,11 +30402,11 @@
+ #endif
+ /* We use char because int might match the return type of a gcc2
+ builtin and then its argument prototype would still apply. */
+-char faacDecOpen ();
++char NeAACDecOpen ();
+ int
+ main ()
+ {
+-faacDecOpen ();
++NeAACDecOpen ();
+ ;
+ return 0;
+ }
+@@ -30432,20 +30432,20 @@
+ ac_status=$?
+ echo "$as_me:$LINENO: \$? = $ac_status" >&5
+ (exit $ac_status); }; }; then
+- ac_cv_lib_faad_faacDecOpen=yes
++ ac_cv_lib_faad_NeAACDecOpen=yes
+ else
+ echo "$as_me: failed program was:" >&5
+ sed 's/^/| /' conftest.$ac_ext >&5
+
+-ac_cv_lib_faad_faacDecOpen=no
++ac_cv_lib_faad_NeAACDecOpen=no
+ fi
+ rm -f conftest.err conftest.$ac_objext \
+ conftest$ac_exeext conftest.$ac_ext
+ LIBS=$ac_check_lib_save_LIBS
+ fi
+-echo "$as_me:$LINENO: result: $ac_cv_lib_faad_faacDecOpen" >&5
+-echo "${ECHO_T}$ac_cv_lib_faad_faacDecOpen" >&6
+-if test $ac_cv_lib_faad_faacDecOpen = yes; then
++echo "$as_me:$LINENO: result: $ac_cv_lib_faad_NeAACDecOpen" >&5
++echo "${ECHO_T}$ac_cv_lib_faad_NeAACDecOpen" >&6
++if test $ac_cv_lib_faad_NeAACDecOpen = yes; then
+ HAVE_FAAD=yes
+ else
+ HAVE_FAAD=no
diff --git a/multimedia/gstreamer-plugins-bad/files/patch-ext_faad_gstfaad.c b/multimedia/gstreamer-plugins-bad/files/patch-ext_faad_gstfaad.c
new file mode 100644
index 000000000000..beed61fe590f
--- /dev/null
+++ b/multimedia/gstreamer-plugins-bad/files/patch-ext_faad_gstfaad.c
@@ -0,0 +1,23 @@
+--- ext/faad/gstfaad.c.orig Tue Sep 12 22:48:28 2006
++++ ext/faad/gstfaad.c Wed Sep 13 06:32:15 2006
+@@ -38,15 +38,19 @@
+ * but not all, hence this Truly Evil Hack. This hack will need updating if
+ * upstream ever releases something with the new API.
+ */
++#include <neaacdec.h>
++#include "gstfaad.h"
++
++#if 0
+ #define faacDecInit faacDecInit_no_definition
+ #define faacDecInit2 faacDecInit2_no_definition
+-#include "gstfaad.h"
+ #undef faacDecInit
+ #undef faacDecInit2
+
+ extern long faacDecInit (faacDecHandle, guint8 *, guint32, guint32 *, guint8 *);
+ extern int8_t faacDecInit2 (faacDecHandle, guint8 *, guint32,
+ guint32 *, guint8 *);
++#endif
+
+ GST_DEBUG_CATEGORY_STATIC (faad_debug);
+ #define GST_CAT_DEFAULT faad_debug