the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: faad
Version: 2.0.0
Revision: 1013
###
Depends: libfaad1-shlibs (>= %v-%r), libmp4v21-shlibs (>= %v-%r)
BuildDepends: id3lib4-dev (>= 3.8.3-1014), libtool14, xmms, libiconv-dev, gettext-dev, gtk+, glib, automake1.9, libtool14
###
Source: mirror:sourceforge:faac/faad2-2.0.tar.gz
Source-MD5: 1a6f79365f2934a4888b210ef47a3a07
SourceDirectory: faad2
###
# Only libmp4v21-{dev,shlibs} has C++ symbols
GCC: 4.0
###
PatchScript: <<
# upgrade quoting tor stricter syntax rules in newer automake
perl -pi -e 's/(AC_DEFUN\()(\S+)(,)/\1\[\2]\3/' configure.in
echo "SUBDIRS = libfaad common frontend plugins" > Makefile.am
sh bootstrap
### Force external mp4v2 off
perl -pi -e 's,\#define HAVE_LIBMP4V2 1,\#undef HAVE_LIBMP4V2,g' configure
perl -pi -e 's,external_mp4v2=yes,external_mp4v2=no,g' configure
perl -pi -e 's,-lmp4v2,-lmp4v2dontusethisone,g' configure
### Fix xmms plugin compile, need to include source includes first
perl -pi -e 's,-I. -I\$\(srcdir\) -I\$\(top_builddir\),-I. -I\$\(srcdir\) -I\$\(top_builddir\) -I\$\(top_srcdir\)/include,g' plugins/xmms/src/Makefile.in
<<
Patch: %n.patch
###
ConfigureParams: --with-xmms --with-drm --with-mp4v2 --with-pic --enable-shared --enable-static --mandir=%i/share/man --infodir=%p/share/info --libexecdir=%p/lib --disable-dependency-tracking
###
DocFiles: AUTHORS COPYING NEWS README* TODO
###
InstallScript: <<
make install DESTDIR=%d
<<
###
SplitOff: <<
Package: libfaad1-shlibs
Files: <<
lib/libfaad.*.dylib
lib/libmp4ff.*.dylib
<<
Shlibs: <<
%p/lib/libfaad.0.dylib 1.0.0 %n (>= 2.0-rc1-1)
%p/lib/libmp4ff.0.dylib 1.0.0 %n (>= 2.0.0-10)
<<
DocFiles: AUTHORS COPYING NEWS README* TODO
<<
###
SplitOff4: <<
Package: libfaad1-dev
Depends: libfaad1-shlibs (= %v-%r)
BuildDependsOnly: true
Files: <<
lib/libfaad.a
lib/libfaad.la
lib/libfaad.dylib
lib/libmp4ff.a
lib/libmp4ff.la
lib/libmp4ff.dylib
include
<<
DocFiles: AUTHORS COPYING NEWS README* TODO
<<
###
SplitOff3: <<
Package: libmp4v21-shlibs
Files: <<
lib/libmp4v2.*.dylib
<<
Shlibs: <<
%p/lib/libmp4v2.0.dylib 1.0.0 %n (>= 2.0-rc1-1)
<<
DocFiles: common/mp4v2/API_CHANGES common/mp4v2/COPYING common/mp4v2/INTERNALS common/mp4v2/TODO
<<
###
SplitOff2: <<
Package: libmp4v21-dev
Depends: libmp4v21-shlibs (= %v-%r)
BuildDependsOnly: true
Files: <<
lib/libmp4v2.a
lib/libmp4v2.la
lib/libmp4v2.dylib
include/mp4.h
include/mpeg4ip.h
include/systems.h
<<
DocFiles: common/mp4v2/API_CHANGES common/mp4v2/COPYING common/mp4v2/INTERNALS common/mp4v2/TODO
<<
###
SplitOff5: <<
Package: xmms-aac
Depends: x11, libiconv, gtk+-shlibs, glib-shlibs, xmms-shlibs, gettext, libfaad1-shlibs, libmp4v21-shlibs
Files: <<
lib/xmms
<<
DocFiles: plugins/xmms/AUTHORS plugins/xmms/ChangeLog plugins/xmms/INSTALL plugins/xmms/NEWS plugins/xmms/README plugins/xmms/TODO
<<
###
Description: FAAC audio library
DescDetail: <<
FAAC is an Advanced Audio Coder (MPEG2-AAC, MPEG4-AAC). The goal of FAAC is
to explore the possibilities of AAC and exceed the quality of the currentlyi
best MP3 encoders.
<<
###
License: GPL
Maintainer: Justin F. Hallett
Homepage: http://www.audiocoding.com/
diff -ru faad2.orig/common/mp4ff/mp4ff.c faad2/common/mp4ff/mp4ff.c
--- faad2.orig/common/mp4ff/mp4ff.c 2004-01-11 10:52:18.000000000 -0500
+++ faad2/common/mp4ff/mp4ff.c 2006-03-23 21:38:27.000000000 -0500
@@ -87,7 +87,7 @@
if (ff) free(ff);
}
-static void mp4ff_track_add(mp4ff_t *f)
+void mp4ff_track_add(mp4ff_t *f)
{
f->total_tracks++;
diff -ru faad2.orig/common/mp4v2/mp4property.h faad2/common/mp4v2/mp4property.h
--- faad2.orig/common/mp4v2/mp4property.h 2003-06-29 17:41:00.000000000 -0400
+++ faad2/common/mp4v2/mp4property.h 2006-03-23 21:30:38.000000000 -0500
@@ -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);
diff -ru faad2.orig/common/mp4v2/rtphint.h faad2/common/mp4v2/rtphint.h
--- faad2.orig/common/mp4v2/rtphint.h 2003-06-29 17:41:00.000000000 -0400
+++ faad2/common/mp4v2/rtphint.h 2006-03-23 21:31:01.000000000 -0500
@@ -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 -ru faad2.orig/libfaad/common.h faad2/libfaad/common.h
--- faad2.orig/libfaad/common.h 2004-02-06 07:55:24.000000000 -0500
+++ faad2/libfaad/common.h 2006-03-23 21:27:29.000000000 -0500
@@ -307,6 +307,8 @@
}
return i;
}
+ #elif (defined(__i386__) && defined(__APPLE_CC__))
+ #define HAS_LRINTF
#elif (defined(__i386__) && defined(__GNUC__))
#define HAS_LRINTF
// from http://www.stereopsis.com/FPU.html
Package: faad
Version: 2.0.0
Revision: 1013
###
Depends: libfaad1-shlibs (>= %v-%r), libmp4v21-shlibs (>= %v-%r)
BuildDepends: id3lib4-dev (>= 3.8.3-1014), libtool14, xmms, libiconv-dev, gettext-dev, gtk+, glib, automake1.9, libtool14
###
Source: mirror:sourceforge:faac/faad2-2.0.tar.gz
Source-MD5: 1a6f79365f2934a4888b210ef47a3a07
SourceDirectory: faad2
###
# Only libmp4v21-{dev,shlibs} has C++ symbols
GCC: 4.0
###
PatchScript: <<
# upgrade quoting tor stricter syntax rules in newer automake
perl -pi -e 's/(AC_DEFUN\()(\S+)(,)/\1\[\2]\3/' configure.in
echo "SUBDIRS = libfaad common frontend plugins" > Makefile.am
sh bootstrap
### Force external mp4v2 off
perl -pi -e 's,\#define HAVE_LIBMP4V2 1,\#undef HAVE_LIBMP4V2,g' configure
perl -pi -e 's,external_mp4v2=yes,external_mp4v2=no,g' configure
perl -pi -e 's,-lmp4v2,-lmp4v2dontusethisone,g' configure
### Fix xmms plugin compile, need to include source includes first
perl -pi -e 's,-I. -I\$\(srcdir\) -I\$\(top_builddir\),-I. -I\$\(srcdir\) -I\$\(top_builddir\) -I\$\(top_srcdir\)/include,g' plugins/xmms/src/Makefile.in
<<
Patch: %n.patch
###
ConfigureParams: --with-xmms --with-drm --with-mp4v2 --with-pic --enable-shared --enable-static --mandir=%i/share/man --infodir=%p/share/info --libexecdir=%p/lib --disable-dependency-tracking
###
DocFiles: AUTHORS COPYING NEWS README* TODO
###
InstallScript: <<
make install DESTDIR=%d
<<
###
SplitOff: <<
Package: libfaad1-shlibs
Files: <<
lib/libfaad.*.dylib
lib/libmp4ff.*.dylib
<<
Shlibs: <<
%p/lib/libfaad.0.dylib 1.0.0 %n (>= 2.0-rc1-1)
%p/lib/libmp4ff.0.dylib 1.0.0 %n (>= 2.0.0-10)
<<
DocFiles: AUTHORS COPYING NEWS README* TODO
<<
###
SplitOff4: <<
Package: libfaad1-dev
Depends: libfaad1-shlibs (= %v-%r)
BuildDependsOnly: true
Files: <<
lib/libfaad.a
lib/libfaad.la
lib/libfaad.dylib
lib/libmp4ff.a
lib/libmp4ff.la
lib/libmp4ff.dylib
include
<<
DocFiles: AUTHORS COPYING NEWS README* TODO
<<
###
SplitOff3: <<
Package: libmp4v21-shlibs
Files: <<
lib/libmp4v2.*.dylib
<<
Shlibs: <<
%p/lib/libmp4v2.0.dylib 1.0.0 %n (>= 2.0-rc1-1)
<<
DocFiles: common/mp4v2/API_CHANGES common/mp4v2/COPYING common/mp4v2/INTERNALS common/mp4v2/TODO
<<
###
SplitOff2: <<
Package: libmp4v21-dev
Depends: libmp4v21-shlibs (= %v-%r)
BuildDependsOnly: true
Files: <<
lib/libmp4v2.a
lib/libmp4v2.la
lib/libmp4v2.dylib
include/mp4.h
include/mpeg4ip.h
include/systems.h
<<
DocFiles: common/mp4v2/API_CHANGES common/mp4v2/COPYING common/mp4v2/INTERNALS common/mp4v2/TODO
<<
###
SplitOff5: <<
Package: xmms-aac
Depends: x11, libiconv, gtk+-shlibs, glib-shlibs, xmms-shlibs, gettext, libfaad1-shlibs, libmp4v21-shlibs
Files: <<
lib/xmms
<<
DocFiles: plugins/xmms/AUTHORS plugins/xmms/ChangeLog plugins/xmms/INSTALL plugins/xmms/NEWS plugins/xmms/README plugins/xmms/TODO
<<
###
Description: FAAC audio library
DescDetail: <<
FAAC is an Advanced Audio Coder (MPEG2-AAC, MPEG4-AAC). The goal of FAAC is
to explore the possibilities of AAC and exceed the quality of the currentlyi
best MP3 encoders.
<<
###
License: GPL
Maintainer: Justin F. Hallett
Homepage: http://www.audiocoding.com/
diff -ru faad2.orig/common/mp4ff/mp4ff.c faad2/common/mp4ff/mp4ff.c
--- faad2.orig/common/mp4ff/mp4ff.c 2004-01-11 10:52:18.000000000 -0500
+++ faad2/common/mp4ff/mp4ff.c 2006-03-23 21:38:27.000000000 -0500
@@ -87,7 +87,7 @@
if (ff) free(ff);
}
-static void mp4ff_track_add(mp4ff_t *f)
+void mp4ff_track_add(mp4ff_t *f)
{
f->total_tracks++;
diff -ru faad2.orig/common/mp4v2/mp4property.h faad2/common/mp4v2/mp4property.h
--- faad2.orig/common/mp4v2/mp4property.h 2003-06-29 17:41:00.000000000 -0400
+++ faad2/common/mp4v2/mp4property.h 2006-03-23 21:30:38.000000000 -0500
@@ -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);
diff -ru faad2.orig/common/mp4v2/rtphint.h faad2/common/mp4v2/rtphint.h
--- faad2.orig/common/mp4v2/rtphint.h 2003-06-29 17:41:00.000000000 -0400
+++ faad2/common/mp4v2/rtphint.h 2006-03-23 21:31:01.000000000 -0500
@@ -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 -ru faad2.orig/libfaad/common.h faad2/libfaad/common.h
--- faad2.orig/libfaad/common.h 2004-02-06 07:55:24.000000000 -0500
+++ faad2/libfaad/common.h 2006-03-23 21:27:29.000000000 -0500
@@ -307,6 +307,8 @@
}
return i;
}
+ #elif (defined(__i386__) && defined(__APPLE_CC__))
+ #define HAS_LRINTF
#elif (defined(__i386__) && defined(__GNUC__))
#define HAS_LRINTF
// from http://www.stereopsis.com/FPU.html