aboutsummaryrefslogtreecommitdiffstats
path: root/audio/faad/files
diff options
context:
space:
mode:
authorahze <ahze@FreeBSD.org>2006-08-25 07:33:51 +0800
committerahze <ahze@FreeBSD.org>2006-08-25 07:33:51 +0800
commite9bf9ea73c729c6b05e757ac27853bb76dd9c30a (patch)
tree8d5f83aac92279c96a013a3d50187facbad0651f /audio/faad/files
parent8b9047a191d228a5594d1e79003421999df19a15 (diff)
downloadfreebsd-ports-gnome-e9bf9ea73c729c6b05e757ac27853bb76dd9c30a.tar.gz
freebsd-ports-gnome-e9bf9ea73c729c6b05e757ac27853bb76dd9c30a.tar.zst
freebsd-ports-gnome-e9bf9ea73c729c6b05e757ac27853bb76dd9c30a.zip
- Update to 2.5
Diffstat (limited to 'audio/faad/files')
-rw-r--r--audio/faad/files/patch-amd64-gcc3447
-rw-r--r--audio/faad/files/patch-configure.in56
-rw-r--r--audio/faad/files/patch-libfaad_common.h20
-rw-r--r--audio/faad/files/patch-structs.h94
4 files changed, 24 insertions, 193 deletions
diff --git a/audio/faad/files/patch-amd64-gcc34 b/audio/faad/files/patch-amd64-gcc34
deleted file mode 100644
index e1e3ad111364..000000000000
--- a/audio/faad/files/patch-amd64-gcc34
+++ /dev/null
@@ -1,47 +0,0 @@
---- common/mp4v2/mp4property.h.orig Sun Jun 29 17:41:00 2003
-+++ common/mp4v2/mp4property.h Wed Oct 20 19:41:16 2004
-@@ -58,7 +58,7 @@
- return m_name;
- }
-
-- virtual MP4PropertyType GetType() = NULL;
-+ virtual MP4PropertyType GetType() = 0;
-
- bool IsReadOnly() {
- return m_readOnly;
-@@ -74,17 +74,17 @@
- m_implicit = value;
- }
-
-- virtual u_int32_t GetCount() = NULL;
-- virtual void SetCount(u_int32_t count) = NULL;
-+ virtual u_int32_t GetCount() = 0;
-+ virtual void SetCount(u_int32_t count) = 0;
-
- virtual void Generate() { /* default is a no-op */ };
-
-- virtual void Read(MP4File* pFile, u_int32_t index = 0) = NULL;
-+ virtual void Read(MP4File* pFile, u_int32_t index = 0) = 0;
-
-- virtual void Write(MP4File* pFile, u_int32_t index = 0) = NULL;
-+ virtual void Write(MP4File* pFile, u_int32_t index = 0) = 0;
-
- virtual void Dump(FILE* pFile, u_int8_t indent,
-- bool dumpImplicits, u_int32_t index = 0) = NULL;
-+ bool dumpImplicits, u_int32_t index = 0) = 0;
-
- virtual bool FindProperty(const char* name,
- MP4Property** ppProperty, u_int32_t* pIndex = NULL);
---- common/mp4v2/rtphint.h.orig Sun Jun 29 17:41:00 2003
-+++ common/mp4v2/rtphint.h Wed Oct 20 19:41:16 2004
-@@ -35,8 +35,8 @@
- return m_pPacket;
- }
-
-- virtual u_int16_t GetDataSize() = NULL;
-- virtual void GetData(u_int8_t* pDest) = NULL;
-+ virtual u_int16_t GetDataSize() = 0;
-+ virtual void GetData(u_int8_t* pDest) = 0;
-
- MP4Track* FindTrackFromRefIndex(u_int8_t refIndex);
-
diff --git a/audio/faad/files/patch-configure.in b/audio/faad/files/patch-configure.in
index 700ac59cedce..be425fb8f261 100644
--- a/audio/faad/files/patch-configure.in
+++ b/audio/faad/files/patch-configure.in
@@ -1,43 +1,13 @@
---- configure.in.orig Fri Feb 6 17:04:39 2004
-+++ configure.in Wed Jan 19 01:44:24 2005
-@@ -49,6 +49,43 @@
- fi
- ])
-
-+dnl @synopsis AC_C99_FUNC_LRINTF
-+dnl
-+dnl Check whether C99's lrintf function is available.
-+dnl @version 1.3 Feb 12 2002
-+dnl @author Erik de Castro Lopo <erikd AT mega-nerd DOT com>
-+dnl
-+dnl Permission to use, copy, modify, distribute, and sell this file for any
-+dnl purpose is hereby granted without fee, provided that the above copyright
-+dnl and this permission notice appear in all copies. No representations are
-+dnl made about the suitability of this software for any purpose. It is
-+dnl provided "as is" without express or implied warranty.
-+dnl
-+AC_DEFUN([AC_C99_FUNC_LRINTF],
-+[AC_CACHE_CHECK(for lrintf,
-+ ac_cv_c99_lrintf,
-+[
-+lrintf_save_CFLAGS=$CFLAGS
-+CFLAGS="-O -lm"
-+AC_TRY_LINK([
-+#define _ISOC9X_SOURCE 1
-+#define _ISOC99_SOURCE 1
-+#define __USE_ISOC99 1
-+#define __USE_ISOC9X 1
-+
-+#include <math.h>
-+], if (!lrintf(3.14159)) lrintf(2.7183);, ac_cv_c99_lrintf=yes, ac_cv_c99_lrintf=no)
-+
-+CFLAGS=$lrintf_save_CFLAGS
-+
-+])
-+
-+if test "$ac_cv_c99_lrintf" = yes; then
-+ AC_DEFINE(HAVE_LRINTF, 1,
-+ [Define if you have C99's lrintf function.])
-+fi
-+])# AC_C99_FUNC_LRINTF
-+AC_C99_FUNC_LRINTF
+--- configure.in.orig Thu Aug 24 08:55:38 2006
++++ configure.in Thu Aug 24 08:55:58 2006
+@@ -128,10 +128,6 @@
+ AC_CONFIG_FILES(libfaad/Makefile)
+ AC_CONFIG_FILES(common/Makefile)
+ AC_CONFIG_FILES(common/mp4ff/Makefile)
+-AC_CONFIG_FILES(plugins/Makefile)
+-AC_CONFIG_FILES(plugins/xmms/Makefile)
+-AC_CONFIG_FILES(plugins/xmms/src/Makefile)
+-AC_CONFIG_FILES(plugins/mpeg4ip/Makefile)
+ AC_CONFIG_FILES(faad2.spec)
+ AC_CONFIG_FILES(frontend/Makefile)
+ AC_CONFIG_FILES(Makefile)
diff --git a/audio/faad/files/patch-libfaad_common.h b/audio/faad/files/patch-libfaad_common.h
index dfb9a90768c5..8217004ca78b 100644
--- a/audio/faad/files/patch-libfaad_common.h
+++ b/audio/faad/files/patch-libfaad_common.h
@@ -1,16 +1,18 @@
---- libfaad/common.h.orig Fri Feb 6 13:55:24 2004
-+++ libfaad/common.h Wed Jan 19 01:52:32 2005
-@@ -308,6 +308,7 @@
- return i;
- }
- #elif (defined(__i386__) && defined(__GNUC__))
-+ #ifndef HAVE_LRINTF
+--- libfaad/common.h.orig Thu Aug 24 16:50:30 2006
++++ libfaad/common.h Thu Aug 24 16:51:20 2006
+@@ -310,6 +310,7 @@
+
+
+ #if defined(_WIN32) && !defined(__MINGW32__)
++ #ifndef HAVE_LRINTF
#define HAS_LRINTF
- // from http://www.stereopsis.com/FPU.html
static INLINE int lrintf(float f)
-@@ -320,6 +321,7 @@
+ {
+@@ -335,6 +336,7 @@
: "m" (f));
return i;
}
+ #endif /* HAVE_LRINTF */
#endif
+
+
diff --git a/audio/faad/files/patch-structs.h b/audio/faad/files/patch-structs.h
deleted file mode 100644
index 3a0363d9325a..000000000000
--- a/audio/faad/files/patch-structs.h
+++ /dev/null
@@ -1,94 +0,0 @@
---- libfaad/structs.h.orig Thu Jan 29 12:31:11 2004
-+++ libfaad/structs.h Sun May 23 10:52:13 2004
-@@ -307,58 +307,58 @@
- typedef struct mp4AudioSpecificConfig
- {
- /* Audio Specific Info */
-- uint8_t objectTypeIndex;
-- uint8_t samplingFrequencyIndex;
-- uint32_t samplingFrequency;
-- uint8_t channelsConfiguration;
-+ unsigned char objectTypeIndex;
-+ unsigned char samplingFrequencyIndex;
-+ unsigned long samplingFrequency;
-+ unsigned char channelsConfiguration;
-
- /* GA Specific Info */
-- uint8_t frameLengthFlag;
-- uint8_t dependsOnCoreCoder;
-- uint16_t coreCoderDelay;
-- uint8_t extensionFlag;
-- uint8_t aacSectionDataResilienceFlag;
-- uint8_t aacScalefactorDataResilienceFlag;
-- uint8_t aacSpectralDataResilienceFlag;
-- uint8_t epConfig;
-+ unsigned char frameLengthFlag;
-+ unsigned char dependsOnCoreCoder;
-+ unsigned short coreCoderDelay;
-+ unsigned char extensionFlag;
-+ unsigned char aacSectionDataResilienceFlag;
-+ unsigned char aacScalefactorDataResilienceFlag;
-+ unsigned char aacSpectralDataResilienceFlag;
-+ unsigned char epConfig;
-
-- int8_t sbr_present_flag;
-- int8_t forceUpSampling;
-+ char sbr_present_flag;
-+ char forceUpSampling;
- } mp4AudioSpecificConfig;
-
- typedef struct faacDecConfiguration
- {
-- uint8_t defObjectType;
-- uint32_t defSampleRate;
-- uint8_t outputFormat;
-- uint8_t downMatrix;
-- uint8_t useOldADTSFormat;
-- uint8_t dontUpSampleImplicitSBR;
-+ unsigned char defObjectType;
-+ unsigned long defSampleRate;
-+ unsigned char outputFormat;
-+ unsigned char downMatrix;
-+ unsigned char useOldADTSFormat;
-+ unsigned char dontUpSampleImplicitSBR;
- } faacDecConfiguration, *faacDecConfigurationPtr;
-
- typedef struct faacDecFrameInfo
- {
-- uint32_t bytesconsumed;
-- uint32_t samples;
-- uint8_t channels;
-- uint8_t error;
-- uint32_t samplerate;
-+ unsigned long bytesconsumed;
-+ unsigned long samples;
-+ unsigned char channels;
-+ unsigned char error;
-+ unsigned long samplerate;
-
- /* SBR: 0: off, 1: on; normal, 2: on; downsampled */
-- uint8_t sbr;
-+ unsigned char sbr;
-
- /* MPEG-4 ObjectType */
-- uint8_t object_type;
-+ unsigned char object_type;
-
- /* AAC header type; MP4 will be signalled as RAW also */
-- uint8_t header_type;
-+ unsigned char header_type;
-
- /* multichannel configuration */
-- uint8_t num_front_channels;
-- uint8_t num_side_channels;
-- uint8_t num_back_channels;
-- uint8_t num_lfe_channels;
-- uint8_t channel_position[MAX_CHANNELS];
-+ unsigned char num_front_channels;
-+ unsigned char num_side_channels;
-+ unsigned char num_back_channels;
-+ unsigned char num_lfe_channels;
-+ unsigned char channel_position[MAX_CHANNELS];
- } faacDecFrameInfo;
-
- typedef struct