attached are some patches and a new port. sorry, I could not break this up much because these are all intertwined.
faad (faad.diff): * update to faad2-2.6.1. * greatly simplified patches for type mismatch issues in libfaad. * libmp4v2 is no longer part of faad2 distribution. attached is a new port for a standalone libmp4v2. faac (faac.diff): * update to faac-1.26. * depends on libmp4v2 instead of faad. libmp4v2 (libmp4v2-1.5.0.1-port.tgz): This is the standalone version of the mp4v2 library. This library provides functions to read, create, and modify mp4 files. It is derived from the mpeg4ip source tree but for licensing reasons it has been adapted to this form. faad.ports.diff.gz: * simplified patches for type mismatches in libfaad for faad dependent ports. * ports using libmp4v2 now depend on libmp4v2 instead of faad. * faa{c,d} LIB_DEPENDS and PKGNAME bumps. * @bin markers and other "while here" changes. basic functionality can be tested with just faad and faac and a WAV file: $ faac -o <song>.m4a <song>.wav $ faad -w <song>.m4a | aucat -e s16le -i - please test (preferably on something other than i386 or amd64 as I have tested there) and let me know how it goes ... -- [EMAIL PROTECTED] SDF Public Access UNIX System - http://sdf.lonestar.org
Index: Makefile =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faad/Makefile,v retrieving revision 1.36 diff -u -r1.36 Makefile --- Makefile 14 Jan 2008 01:16:37 -0000 1.36 +++ Makefile 23 Jul 2008 13:19:26 -0000 @@ -1,15 +1,15 @@ # $OpenBSD: Makefile,v 1.36 2008/01/14 01:16:37 jakemsr Exp $ -COMMENT-main= MPEG2 and MPEG-4 AAC decoder +COMMENT-main= MPEG-2 and MPEG-4 AAC decoder COMMENT-xmms= XMMS input plugin for AAC files -DISTNAME= faad2-2.0 -PKGNAME-main= faad-2.0p6 -PKGNAME-xmms= faad-xmms-2.0p7 +V= 2.6.1 +DISTNAME= faad2-${V} +PKGNAME-main= faad-${V} +PKGNAME-xmms= faad-xmms-${V} CATEGORIES= audio -MASTER_SITES= http://mirrors.protection.cx/~jolan/ -SHARED_LIBS += faad 1.0 # .0.0 -SHARED_LIBS += mp4v2 1.0 # .0.0 -SHARED_LIBS += mp4ff 0.0 # .0.0 +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=faac/} +SHARED_LIBS += faad 2.0 # .0.0 +SHARED_LIBS += mp4ff 1.0 # .0.0 HOMEPAGE= http://www.audiocoding.com/ @@ -18,7 +18,7 @@ PERMIT_PACKAGE_FTP= Yes PERMIT_DISTFILES_CDROM= Patents PERMIT_DISTFILES_FTP= Yes -WANTLIB= m stdc++ +WANTLIB= m BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS} USE_GMAKE= Yes @@ -27,11 +27,12 @@ WRKDIST= ${WRKDIR}/faad2 CONFIGURE_STYLE= automake AUTOCONF_VERSION=2.59 +AUTOMAKE_VERSION=1.9 CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \ LDFLAGS="-L${LOCALBASE}/lib" \ LIBS="-lm" \ - AUTOCONF_VERSION=${AUTOCONF_VERSION} -CONFIGURE_ARGS+=--with-mp4v2 + AUTOCONF_VERSION=${AUTOCONF_VERSION} \ + AUTOMAKE_VERSION=${AUTOMAKE_VERSION} PSEUDO_FLAVORS= no_xmms FLAVOR?= @@ -47,7 +48,7 @@ .endif LIB_DEPENDS-xmms= xmms.>=3::audio/xmms \ - faad,mp4v2::audio/faad + faad,mp4ff::audio/faad RUN_DEPENDS-xmms= ::audio/xmms WANTLIB-xmms= ${WANTLIB} \ X11 Xau Xdmcp Xext Xi iconv intl glib \ @@ -59,9 +60,6 @@ @cd ${WRKSRC} && AUTOCONF_VERSION=${AUTOCONF_VERSION} \ AUTOMAKE_VERSION=${AUTOMAKE_VERSION} PATH=${PORTPATH} \ sh bootstrap - -pre-configure: - @perl -pi -e 's/--no-verify//g' ${WRKSRC}/configure post-configure: @cp ${WRKSRC}/config.h ${WRKSRC}/faadconfig.h Index: distinfo =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faad/distinfo,v retrieving revision 1.4 diff -u -r1.4 distinfo --- distinfo 5 Apr 2007 15:37:42 -0000 1.4 +++ distinfo 23 Jul 2008 13:19:26 -0000 @@ -1,5 +1,5 @@ -MD5 (faad2-2.0.tar.gz) = X3USrfTUUADYxgZw8n221g== -RMD160 (faad2-2.0.tar.gz) = tLVheImo8njNskX3dGZmTNDHiZA= -SHA1 (faad2-2.0.tar.gz) = s4RoRhXTN9nXhO4omMuQYhfnBjc= -SHA256 (faad2-2.0.tar.gz) = ARNKavrY1WEBZYA/cqbhaM1Vbd2A1gcFkN64aLTohcQ= -SIZE (faad2-2.0.tar.gz) = 771223 +MD5 (faad2-2.6.1.tar.gz) = dOkt9AwnDyFqgwX8h2A8ig== +RMD160 (faad2-2.6.1.tar.gz) = rVWZM9rWplV2qZR4GRkPBMs7HBY= +SHA1 (faad2-2.6.1.tar.gz) = tK0z08TfptvzARo9o0xjGSbKv60= +SHA256 (faad2-2.6.1.tar.gz) = itLC4MCbeHqUPi74McHIRTTjqHJswesavE2p6zA4KFw= +SIZE (faad2-2.6.1.tar.gz) = 839410 Index: patches/patch-Makefile_am =================================================================== RCS file: patches/patch-Makefile_am diff -N patches/patch-Makefile_am --- patches/patch-Makefile_am 28 Apr 2004 01:30:00 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-Makefile_am,v 1.1 2004/04/28 01:30:00 jolan Exp $ ---- Makefile.am.orig 2004-02-06 10:04:39.000000000 -0600 -+++ Makefile.am 2004-04-24 20:56:12.000000000 -0500 -@@ -1,8 +1,3 @@ - SUBDIRS = libfaad common frontend plugins - - EXTRA_DIST = faad2.spec -- --rpm: Makefile -- make dist -- $(RPMBUILD) -ta $(PACKAGE)-$(VERSION).tar.gz -- rm $(PACKAGE)-$(VERSION).tar.gz Index: patches/patch-common_mp4ff_Makefile_am =================================================================== RCS file: patches/patch-common_mp4ff_Makefile_am diff -N patches/patch-common_mp4ff_Makefile_am --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-common_mp4ff_Makefile_am 23 Jul 2008 13:19:26 -0000 @@ -0,0 +1,9 @@ +$OpenBSD$ +--- common/mp4ff/Makefile.am.orig Fri Jul 11 14:17:17 2008 ++++ common/mp4ff/Makefile.am Fri Jul 11 14:17:37 2008 +@@ -1,4 +1,4 @@ +-noinst_LTLIBRARIES = libmp4ff.la ++lib_LTLIBRARIES = libmp4ff.la + + libmp4ff_la_CFLAGS = -DUSE_TAGGING=1 + Index: patches/patch-common_mp4ff_mp4ff_int_types_h =================================================================== RCS file: patches/patch-common_mp4ff_mp4ff_int_types_h diff -N patches/patch-common_mp4ff_mp4ff_int_types_h --- patches/patch-common_mp4ff_mp4ff_int_types_h 28 Apr 2004 01:30:00 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,16 +0,0 @@ -$OpenBSD: patch-common_mp4ff_mp4ff_int_types_h,v 1.1 2004/04/28 01:30:00 jolan Exp $ ---- common/mp4ff/mp4ff_int_types.h.orig 2003-12-13 16:26:56.000000000 -0600 -+++ common/mp4ff/mp4ff_int_types.h 2004-04-24 20:58:29.000000000 -0500 -@@ -15,9 +15,9 @@ typedef unsigned __int64 uint64_t; - - #else - --#include <stdint.h> -+#include <inttypes.h> - - #endif - - --#endif -\ No newline at end of file -+#endif Index: patches/patch-common_mp4v2_systems_h =================================================================== RCS file: patches/patch-common_mp4v2_systems_h diff -N patches/patch-common_mp4v2_systems_h --- patches/patch-common_mp4v2_systems_h 13 Dec 2004 05:40:55 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-common_mp4v2_systems_h,v 1.1 2004/12/13 05:40:55 jcs Exp $ ---- common/mp4v2/systems.h.orig Sun Dec 12 23:00:22 2004 -+++ common/mp4v2/systems.h Sun Dec 12 23:00:28 2004 -@@ -31,7 +31,7 @@ - #else - #undef PACKAGE - #undef VERSION --#include <config.h> -+#include <faadconfig.h> - #endif - - Index: patches/patch-configure_in =================================================================== RCS file: patches/patch-configure_in diff -N patches/patch-configure_in --- patches/patch-configure_in 29 Jun 2007 06:01:42 -0000 1.4 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,15 +0,0 @@ -$OpenBSD: patch-configure_in,v 1.4 2007/06/29 06:01:42 jakemsr Exp $ ---- configure.in.orig Fri Feb 6 08:04:39 2004 -+++ configure.in Thu May 31 14:07:32 2007 -@@ -67,10 +67,7 @@ MY_CHECK_TYPEDEF_FROM_INCLUDE([fpos_t foo; foo.__pos = - [HAVE_FPOS_T_POS]) - - --external_mp4v2=yes --AC_CHECK_LIB(mp4v2, MP4Create, , external_mp4v2=no, -lstdc++) --AC_CHECK_LIB(mp4v2, MP4MetadataDelete, , external_mp4v2=no, -lstdc++) --AC_CHECK_HEADER(mp4.h, , external_mp4v2=no) -+external_mp4v2=no - - AM_CONDITIONAL(WITH_MP4V2, false) - Index: patches/patch-frontend_Makefile_am =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faad/patches/patch-frontend_Makefile_am,v retrieving revision 1.2 diff -u -r1.2 patch-frontend_Makefile_am --- patches/patch-frontend_Makefile_am 28 Apr 2004 01:30:00 -0000 1.2 +++ patches/patch-frontend_Makefile_am 23 Jul 2008 13:19:26 -0000 @@ -1,12 +1,10 @@ $OpenBSD: patch-frontend_Makefile_am,v 1.2 2004/04/28 01:30:00 jolan Exp $ ---- frontend/Makefile.am.orig 2003-11-06 05:04:13.000000000 -0600 -+++ frontend/Makefile.am 2004-04-24 20:51:42.000000000 -0500 -@@ -1,7 +1,6 @@ - bin_PROGRAMS = faad +--- frontend/Makefile.am.orig Sat Jun 28 22:34:28 2008 ++++ frontend/Makefile.am Sat Jun 28 22:34:57 2008 +@@ -7,5 +7,4 @@ faad_LDADD = $(top_builddir)/libfaad/libfaad.la \ + $(top_builddir)/common/mp4ff/libmp4ff.la --faad_SOURCES = main.c audio.c $(top_srcdir)/common/faad/getopt.c \ -- audio.h -+faad_SOURCES = main.c audio.c audio.h - - AM_CFLAGS = -O2 - INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/common/faad \ + faad_SOURCES = main.c \ +- audio.c audio.h \ +- $(top_srcdir)/common/faad/getopt.c ++ audio.c audio.h Index: patches/patch-frontend_main_c =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faad/patches/patch-frontend_main_c,v retrieving revision 1.5 diff -u -r1.5 patch-frontend_main_c --- patches/patch-frontend_main_c 29 Jun 2007 06:01:42 -0000 1.5 +++ patches/patch-frontend_main_c 23 Jul 2008 13:19:26 -0000 @@ -1,52 +1,16 @@ -$OpenBSD: patch-frontend_main_c,v 1.5 2007/06/29 06:01:42 jakemsr Exp $ ---- frontend/main.c.orig Tue Jan 6 03:59:47 2004 -+++ frontend/main.c Thu May 31 18:00:02 2007 -@@ -37,6 +37,7 @@ - #include <stdio.h> - #include <stdlib.h> - #include <getopt.h> -+#include <string.h> - - #include <faad.h> - #include <mp4ff.h> -@@ -52,10 +53,10 @@ - - /* FAAD file buffering routines */ - typedef struct { -- long bytes_into_buffer; -- long bytes_consumed; -- long file_offset; -- unsigned char *buffer; -+ uint32_t bytes_into_buffer; -+ uint32_t bytes_consumed; -+ uint32_t file_offset; -+ uint8_t *buffer; - int at_eof; - FILE *infile; - } aac_buffer; -@@ -377,8 +378,8 @@ int decodeAACfile(char *aacfile, char *sndfile, char * +$OpenBSD$ +--- frontend/main.c.orig Thu Nov 1 05:33:29 2007 ++++ frontend/main.c Wed Jul 16 01:00:45 2008 +@@ -399,7 +399,7 @@ int decodeAACfile(char *aacfile, char *sndfile, char * float *song_length) { int tagsize; - unsigned long samplerate; -- unsigned char channels; -+ uint32_t samplerate; -+ uint8_t channels; - void *sample_buffer; - - audio_file *aufile; -@@ -687,8 +688,8 @@ int decodeMP4file(char *mp4file, char *sndfile, char * - int infoOnly, int adts_out, float *song_length) - { - int track; -- unsigned long samplerate; -- unsigned char channels; -+ uint32_t samplerate; -+ uint8_t channels; ++ unsigned int samplerate; + unsigned char channels; void *sample_buffer; - mp4ff_t *infile; -@@ -1080,7 +1081,7 @@ int main(int argc, char *argv[]) +@@ -1085,7 +1085,7 @@ int main(int argc, char *argv[]) if (optarg) { char dr[10]; @@ -55,7 +19,7 @@ def_srate = 0; } else { def_srate = atoi(dr); -@@ -1091,7 +1092,7 @@ int main(int argc, char *argv[]) +@@ -1096,7 +1096,7 @@ int main(int argc, char *argv[]) if (optarg) { char dr[10]; @@ -64,7 +28,7 @@ { format = 1; } else { -@@ -1105,7 +1106,7 @@ int main(int argc, char *argv[]) +@@ -1110,7 +1110,7 @@ int main(int argc, char *argv[]) if (optarg) { char dr[10]; @@ -73,7 +37,7 @@ { outputFormat = FAAD_FMT_16BIT; /* just use default */ } else { -@@ -1119,7 +1120,7 @@ int main(int argc, char *argv[]) +@@ -1124,7 +1124,7 @@ int main(int argc, char *argv[]) if (optarg) { char dr[10]; Index: patches/patch-include_faad_h =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faad/patches/patch-include_faad_h,v retrieving revision 1.1 diff -u -r1.1 patch-include_faad_h --- patches/patch-include_faad_h 29 Jun 2007 06:01:42 -0000 1.1 +++ patches/patch-include_faad_h 23 Jul 2008 13:19:26 -0000 @@ -1,166 +1,12 @@ -$OpenBSD: patch-include_faad_h,v 1.1 2007/06/29 06:01:42 jakemsr Exp $ ---- include/faad.h.orig Fri Feb 6 02:23:28 2004 -+++ include/faad.h Thu May 31 15:17:35 2007 -@@ -43,6 +43,10 @@ extern "C" { - #endif - #endif +$OpenBSD$ +--- include/faad.h.orig Tue Jul 22 03:15:57 2008 ++++ include/faad.h Tue Jul 22 03:16:11 2008 +@@ -29,7 +29,7 @@ + **/ + + /* warn people for update */ +-#pragma message("please update faad2 include filename and function names!") ++// #pragma message("please update faad2 include filename and function names!") -+/* needed for standard integer types */ -+#define __STDC_LIMIT_MACROS -+#include <stdint.h> -+ - #define FAAD2_VERSION "2.0 " - - /* object types for AAC */ -@@ -112,99 +116,99 @@ typedef void *faacDecHandle; - typedef struct mp4AudioSpecificConfig - { - /* Audio Specific Info */ -- unsigned char objectTypeIndex; -- unsigned char samplingFrequencyIndex; -- unsigned long samplingFrequency; -- unsigned char channelsConfiguration; -+ uint8_t objectTypeIndex; -+ uint8_t samplingFrequencyIndex; -+ uint32_t samplingFrequency; -+ uint8_t channelsConfiguration; - - /* GA Specific Info */ -- unsigned char frameLengthFlag; -- unsigned char dependsOnCoreCoder; -- unsigned short coreCoderDelay; -- unsigned char extensionFlag; -- unsigned char aacSectionDataResilienceFlag; -- unsigned char aacScalefactorDataResilienceFlag; -- unsigned char aacSpectralDataResilienceFlag; -- unsigned char epConfig; -+ uint8_t frameLengthFlag; -+ uint8_t dependsOnCoreCoder; -+ uint16_t coreCoderDelay; -+ uint8_t extensionFlag; -+ uint8_t aacSectionDataResilienceFlag; -+ uint8_t aacScalefactorDataResilienceFlag; -+ uint8_t aacSpectralDataResilienceFlag; -+ uint8_t epConfig; - -- char sbr_present_flag; -- char forceUpSampling; -+ int8_t sbr_present_flag; -+ int8_t forceUpSampling; - } mp4AudioSpecificConfig; - - typedef struct faacDecConfiguration - { -- unsigned char defObjectType; -- unsigned long defSampleRate; -- unsigned char outputFormat; -- unsigned char downMatrix; -- unsigned char useOldADTSFormat; -- unsigned char dontUpSampleImplicitSBR; -+ uint8_t defObjectType; -+ uint32_t defSampleRate; -+ uint8_t outputFormat; -+ uint8_t downMatrix; -+ uint8_t useOldADTSFormat; -+ uint8_t dontUpSampleImplicitSBR; - } faacDecConfiguration, *faacDecConfigurationPtr; - - typedef struct faacDecFrameInfo - { -- unsigned long bytesconsumed; -- unsigned long samples; -- unsigned char channels; -- unsigned char error; -- unsigned long samplerate; -+ uint32_t bytesconsumed; -+ uint32_t samples; -+ uint8_t channels; -+ uint8_t error; -+ uint32_t samplerate; - - /* SBR: 0: off, 1: on; upsample, 2: on; downsampled, 3: off; upsampled */ -- unsigned char sbr; -+ uint8_t sbr; - - /* MPEG-4 ObjectType */ -- unsigned char object_type; -+ uint8_t object_type; - - /* AAC header type; MP4 will be signalled as RAW also */ -- unsigned char header_type; -+ uint8_t header_type; - - /* multichannel configuration */ -- unsigned char num_front_channels; -- unsigned char num_side_channels; -- unsigned char num_back_channels; -- unsigned char num_lfe_channels; -- unsigned char channel_position[64]; -+ uint8_t num_front_channels; -+ uint8_t num_side_channels; -+ uint8_t num_back_channels; -+ uint8_t num_lfe_channels; -+ uint8_t channel_position[64]; - } faacDecFrameInfo; - --char* FAADAPI faacDecGetErrorMessage(unsigned char errcode); -+int8_t* FAADAPI faacDecGetErrorMessage(uint8_t errcode); - --unsigned long FAADAPI faacDecGetCapabilities(void); -+uint32_t FAADAPI faacDecGetCapabilities(void); - - faacDecHandle FAADAPI faacDecOpen(void); - - faacDecConfigurationPtr FAADAPI faacDecGetCurrentConfiguration(faacDecHandle hDecoder); - --unsigned char FAADAPI faacDecSetConfiguration(faacDecHandle hDecoder, -+uint8_t FAADAPI faacDecSetConfiguration(faacDecHandle hDecoder, - faacDecConfigurationPtr config); - - /* Init the library based on info from the AAC file (ADTS/ADIF) */ --long FAADAPI faacDecInit(faacDecHandle hDecoder, -- unsigned char *buffer, -- unsigned long buffer_size, -- unsigned long *samplerate, -- unsigned char *channels); -+int32_t FAADAPI faacDecInit(faacDecHandle hDecoder, -+ uint8_t *buffer, -+ uint32_t buffer_size, -+ uint32_t *samplerate, -+ uint8_t *channels); - - /* Init the library using a DecoderSpecificInfo */ --char FAADAPI faacDecInit2(faacDecHandle hDecoder, unsigned char *pBuffer, -- unsigned long SizeOfDecoderSpecificInfo, -- unsigned long *samplerate, unsigned char *channels); -+int8_t FAADAPI faacDecInit2(faacDecHandle hDecoder, uint8_t *pBuffer, -+ uint32_t SizeOfDecoderSpecificInfo, -+ uint32_t *samplerate, uint8_t *channels); - - /* Init the library for DRM */ --char FAADAPI faacDecInitDRM(faacDecHandle hDecoder, unsigned long samplerate, -- unsigned char channels); -+int8_t FAADAPI faacDecInitDRM(faacDecHandle hDecoder, uint32_t samplerate, -+ uint8_t channels); - --void FAADAPI faacDecPostSeekReset(faacDecHandle hDecoder, long frame); -+void FAADAPI faacDecPostSeekReset(faacDecHandle hDecoder, int32_t frame); - - void FAADAPI faacDecClose(faacDecHandle hDecoder); - - void* FAADAPI faacDecDecode(faacDecHandle hDecoder, - faacDecFrameInfo *hInfo, -- unsigned char *buffer, -- unsigned long buffer_size); -+ uint8_t *buffer, -+ uint32_t buffer_size); - --char FAADAPI AudioSpecificConfig(unsigned char *pBuffer, -- unsigned long buffer_size, -- mp4AudioSpecificConfig *mp4ASC); -+int8_t FAADAPI AudioSpecificConfig(uint8_t *pBuffer, -+ uint32_t buffer_size, -+ mp4AudioSpecificConfig *mp4ASC); - - #ifdef _WIN32 - #pragma pack(pop) + /* Backwards compatible link */ + #include "neaacdec.h" Index: patches/patch-include_neaacdec_h =================================================================== RCS file: patches/patch-include_neaacdec_h diff -N patches/patch-include_neaacdec_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-include_neaacdec_h 23 Jul 2008 13:19:26 -0000 @@ -0,0 +1,70 @@ +$OpenBSD$ +--- include/neaacdec.h.orig Thu Nov 1 05:33:29 2007 ++++ include/neaacdec.h Tue Jul 15 23:59:41 2008 +@@ -141,7 +141,7 @@ typedef struct mp4AudioSpecificConfig + /* Audio Specific Info */ + unsigned char objectTypeIndex; + unsigned char samplingFrequencyIndex; +- unsigned long samplingFrequency; ++ unsigned int samplingFrequency; + unsigned char channelsConfiguration; + + /* GA Specific Info */ +@@ -162,7 +162,7 @@ typedef struct mp4AudioSpecificConfig + typedef struct NeAACDecConfiguration + { + unsigned char defObjectType; +- unsigned long defSampleRate; ++ unsigned int defSampleRate; + unsigned char outputFormat; + unsigned char downMatrix; + unsigned char useOldADTSFormat; +@@ -171,11 +171,11 @@ typedef struct NeAACDecConfiguration + + typedef struct NeAACDecFrameInfo + { +- unsigned long bytesconsumed; +- unsigned long samples; ++ unsigned int bytesconsumed; ++ unsigned int samples; + unsigned char channels; + unsigned char error; +- unsigned long samplerate; ++ unsigned int samplerate; + + /* SBR: 0: off, 1: on; upsample, 2: on; downsampled, 3: off; upsampled */ + unsigned char sbr; +@@ -199,7 +199,7 @@ typedef struct NeAACDecFrameInfo + + char* NEAACDECAPI NeAACDecGetErrorMessage(unsigned char errcode); + +-unsigned long NEAACDECAPI NeAACDecGetCapabilities(void); ++unsigned int NEAACDECAPI NeAACDecGetCapabilities(void); + + NeAACDecHandle NEAACDECAPI NeAACDecOpen(void); + +@@ -209,19 +209,19 @@ unsigned char NEAACDECAPI NeAACDecSetConfiguration(NeA + NeAACDecConfigurationPtr config); + + /* Init the library based on info from the AAC file (ADTS/ADIF) */ +-long NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder, ++int NEAACDECAPI NeAACDecInit(NeAACDecHandle hDecoder, + unsigned char *buffer, +- unsigned long buffer_size, +- unsigned long *samplerate, ++ unsigned int buffer_size, ++ unsigned int *samplerate, + unsigned char *channels); + + /* Init the library using a DecoderSpecificInfo */ + char NEAACDECAPI NeAACDecInit2(NeAACDecHandle hDecoder, unsigned char *pBuffer, + unsigned long SizeOfDecoderSpecificInfo, +- unsigned long *samplerate, unsigned char *channels); ++ unsigned int *samplerate, unsigned char *channels); + + /* Init the library for DRM */ +-char NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hDecoder, unsigned long samplerate, ++char NEAACDECAPI NeAACDecInitDRM(NeAACDecHandle *hDecoder, unsigned int samplerate, + unsigned char channels); + + void NEAACDECAPI NeAACDecPostSeekReset(NeAACDecHandle hDecoder, long frame); Index: patches/patch-libfaad_Makefile_am =================================================================== RCS file: patches/patch-libfaad_Makefile_am diff -N patches/patch-libfaad_Makefile_am --- patches/patch-libfaad_Makefile_am 29 Jun 2007 06:01:42 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,18 +0,0 @@ -$OpenBSD: patch-libfaad_Makefile_am,v 1.3 2007/06/29 06:01:42 jakemsr Exp $ ---- libfaad/Makefile.am.orig Fri Feb 6 05:12:28 2004 -+++ libfaad/Makefile.am Thu May 31 14:07:32 2007 -@@ -15,10 +15,10 @@ ms.h output.h pns.h pulse.h rvlc.h sine_win.h ssr.h ss - ssr_win.h specrec.h syntax.h structs.h tns.h \ - sbr_dct.h sbr_dec.h sbr_e_nf.h sbr_fbt.h sbr_hfadj.h sbr_hfgen.h \ - sbr_huff.h sbr_noise.h sbr_qmf.h sbr_syntax.h sbr_tf_grid.h \ --sbr_qmf_c.h codebook/hcb.h \ --codebook/hcb_1.h codebook/hcb_2.h codebook/hcb_3.h codebook/hcb_4.h \ --codebook/hcb_5.h codebook/hcb_6.h codebook/hcb_7.h codebook/hcb_8.h \ --codebook/hcb_9.h codebook/hcb_10.h codebook/hcb_11.h codebook/hcb_sf.h -+sbr_qmf_c.h hcb.h \ -+hcb_1.h hcb_2.h hcb_3.h hcb_4.h \ -+hcb_5.h hcb_6.h hcb_7.h hcb_8.h \ -+hcb_9.h hcb_10.h hcb_11.h hcb_sf.h - - LIBTOOL_DEPS = - LIBS = Index: patches/patch-libfaad_common_h =================================================================== RCS file: patches/patch-libfaad_common_h diff -N patches/patch-libfaad_common_h --- patches/patch-libfaad_common_h 21 Nov 2005 08:58:15 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,12 +0,0 @@ -$OpenBSD: patch-libfaad_common_h,v 1.1 2005/11/21 08:58:15 jolan Exp $ ---- libfaad/common.h.orig Fri Feb 6 06:55:24 2004 -+++ libfaad/common.h Mon Nov 21 02:50:20 2005 -@@ -307,7 +307,7 @@ char *strchr(), *strrchr(); - } - return i; - } -- #elif (defined(__i386__) && defined(__GNUC__)) -+ #elif (defined(__i386__) && defined(__GNUC__)) && !defined(__OpenBSD__) - #define HAS_LRINTF - // from http://www.stereopsis.com/FPU.html - static INLINE int lrintf(float f) Index: patches/patch-libfaad_structs_h =================================================================== RCS file: patches/patch-libfaad_structs_h diff -N patches/patch-libfaad_structs_h --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-libfaad_structs_h 23 Jul 2008 13:19:26 -0000 @@ -0,0 +1,36 @@ +$OpenBSD$ +--- libfaad/structs.h.orig Thu Nov 1 05:33:40 2007 ++++ libfaad/structs.h Tue Jul 15 23:47:02 2008 +@@ -317,7 +317,7 @@ typedef struct mp4AudioSpecificConfig + /* Audio Specific Info */ + /*uint8_t*/ unsigned char objectTypeIndex; + /*uint8_t*/ unsigned char samplingFrequencyIndex; +- /*uint32_t*/ unsigned long samplingFrequency; ++ /*uint32_t*/ unsigned int samplingFrequency; + /*uint8_t*/ unsigned char channelsConfiguration; + + /* GA Specific Info */ +@@ -338,7 +338,7 @@ typedef struct mp4AudioSpecificConfig + typedef struct NeAACDecConfiguration + { + /*uint8_t*/ unsigned char defObjectType; +- /*uint32_t*/ unsigned long defSampleRate; ++ /*uint32_t*/ unsigned int defSampleRate; + /*uint8_t*/ unsigned char outputFormat; + /*uint8_t*/ unsigned char downMatrix; + /*uint8_t*/ unsigned char useOldADTSFormat; +@@ -347,11 +347,11 @@ typedef struct NeAACDecConfiguration + + typedef struct NeAACDecFrameInfo + { +- /*uint32_t*/ unsigned long bytesconsumed; +- /*uint32_t*/ unsigned long samples; ++ /*uint32_t*/ unsigned int bytesconsumed; ++ /*uint32_t*/ unsigned int samples; + /*uint8_t*/ unsigned char channels; + /*uint8_t*/ unsigned char error; +- /*uint32_t*/ unsigned long samplerate; ++ /*uint32_t*/ unsigned int samplerate; + + /* SBR: 0: off, 1: on; normal, 2: on; downsampled */ + /*uint8_t*/ unsigned char sbr; Index: patches/patch-plugins_mpeg4ip_aa_file_cpp =================================================================== RCS file: patches/patch-plugins_mpeg4ip_aa_file_cpp diff -N patches/patch-plugins_mpeg4ip_aa_file_cpp --- patches/patch-plugins_mpeg4ip_aa_file_cpp 29 Jun 2007 06:01:42 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,14 +0,0 @@ -$OpenBSD: patch-plugins_mpeg4ip_aa_file_cpp,v 1.1 2007/06/29 06:01:42 jakemsr Exp $ ---- plugins/mpeg4ip/aa_file.cpp.orig Mon Jan 5 06:05:12 2004 -+++ plugins/mpeg4ip/aa_file.cpp Thu May 31 14:10:25 2007 -@@ -56,8 +56,8 @@ codec_data_t *aac_file_check (lib_message_func_t messa - aac->m_buffer_size_max, - aac->m_ifile); - -- unsigned long freq; -- unsigned char chans; -+ uint32_t freq; -+ uint8_t chans; - - faacDecInit(aac->m_info, (unsigned char *)aac->m_buffer, - aac->m_buffer_size, &freq, &chans); Index: patches/patch-plugins_mpeg4ip_faad2_cpp =================================================================== RCS file: patches/patch-plugins_mpeg4ip_faad2_cpp diff -N patches/patch-plugins_mpeg4ip_faad2_cpp --- patches/patch-plugins_mpeg4ip_faad2_cpp 29 Jun 2007 06:01:42 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,43 +0,0 @@ -$OpenBSD: patch-plugins_mpeg4ip_faad2_cpp,v 1.1 2007/06/29 06:01:42 jakemsr Exp $ ---- plugins/mpeg4ip/faad2.cpp.orig Mon Jan 5 06:05:12 2004 -+++ plugins/mpeg4ip/faad2.cpp Thu May 31 14:12:18 2007 -@@ -76,8 +76,8 @@ static codec_data_t *aac_codec_create (const char *com - } - - aac->m_info = faacDecOpen(); -- unsigned long srate; -- unsigned char chan; -+ uint32_t srate; -+ uint8_t chan; - if ((userdata == NULL && fmtp == NULL) || - (faacDecInit2(aac->m_info, - (uint8_t *)userdata, -@@ -156,7 +156,7 @@ static int aac_decode (codec_data_t *ptr, - void *userdata) - { - aac_codec_t *aac = (aac_codec_t *)ptr; -- unsigned long bytes_consummed; -+ uint32_t bytes_consummed; - int bits = -1; - // struct timezone tz; - -@@ -188,8 +188,8 @@ static int aac_decode (codec_data_t *ptr, - * If not initialized, do so. - */ - abort(); -- unsigned long freq; -- unsigned char chans; -+ uint32_t freq; -+ uint8_t chans; - - faacDecInit(aac->m_info, - (unsigned char *)buffer, -@@ -202,7 +202,7 @@ static int aac_decode (codec_data_t *ptr, - } - - uint8_t *buff; -- unsigned long samples; -+ uint32_t samples; - bytes_consummed = buflen; - //aa_message(LOG_DEBUG, aaclib, "decoding %d bits", buflen * 8); - faacDecFrameInfo frame_info; Index: patches/patch-plugins_xmms_src_Makefile_am =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faad/patches/patch-plugins_xmms_src_Makefile_am,v retrieving revision 1.2 diff -u -r1.2 patch-plugins_xmms_src_Makefile_am --- patches/patch-plugins_xmms_src_Makefile_am 11 Dec 2007 11:00:37 -0000 1.2 +++ patches/patch-plugins_xmms_src_Makefile_am 23 Jul 2008 13:19:26 -0000 @@ -1,19 +1,11 @@ $OpenBSD: patch-plugins_xmms_src_Makefile_am,v 1.2 2007/12/11 11:00:37 jakemsr Exp $ ---- plugins/xmms/src/Makefile.am.orig Fri Feb 6 08:05:07 2004 -+++ plugins/xmms/src/Makefile.am Sun Oct 21 02:19:37 2007 -@@ -1,7 +1,7 @@ - libdir = `$(XMMS_CONFIG) --input-plugin-dir` - lib_LTLIBRARIES = libmp4.la +--- plugins/xmms/src/Makefile.am.orig Sat Jun 28 22:56:19 2008 ++++ plugins/xmms/src/Makefile.am Sat Jun 28 22:57:03 2008 +@@ -9,6 +9,6 @@ libmp4_la_CFLAGS = $(local_CFLAGS) -Wall \ + libmp4_la_LIBADD = $(top_builddir)/libfaad/libfaad.la \ + $(top_builddir)/common/mp4ff/libmp4ff.la --libmp4_la_CFLAGS = `$(XMMS_CONFIG) --cflags` -Wall \ -+CFLAGS = `$(XMMS_CONFIG) --cflags` -Wall \ - `$(GTK_CONFIG) --cflags` -DHAVE_GLIB_H=1 \ - -I$(top_srcdir)/include -I$(top_srcdir)/common/mp4v2 +-libmp4_la_LDFLAGS = -module -avoid-version $(local_LDFLAGS) -lpthread ++libmp4_la_LDFLAGS = -module -avoid-version $(local_LDFLAGS) -@@ -9,5 +9,5 @@ libmp4_la_LIBADD = $(top_builddir)/libfaad/libfaad.la - $(top_builddir)/common/mp4v2/libmp4v2.la - - libmp4_la_LDFLAGS = -module -avoid-version `$(XMMS_CONFIG) --libs` \ -- `$(GTK_CONFIG) --libs` -lpthread -lstdc++ -+ `$(GTK_CONFIG) --libs` -lstdc++ libmp4_la_SOURCES = libmp4.c mp4_utils.c aac_utils.c Index: patches/patch-plugins_xmms_src_libmp4_c =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faad/patches/patch-plugins_xmms_src_libmp4_c,v retrieving revision 1.1 diff -u -r1.1 patch-plugins_xmms_src_libmp4_c --- patches/patch-plugins_xmms_src_libmp4_c 29 Jun 2007 06:01:42 -0000 1.1 +++ patches/patch-plugins_xmms_src_libmp4_c 23 Jul 2008 13:19:26 -0000 @@ -1,48 +1,32 @@ -$OpenBSD: patch-plugins_xmms_src_libmp4_c,v 1.1 2007/06/29 06:01:42 jakemsr Exp $ ---- plugins/xmms/src/libmp4.c.orig Wed Dec 3 10:37:56 2003 -+++ plugins/xmms/src/libmp4.c Thu May 31 14:42:02 2007 -@@ -22,6 +22,9 @@ - #define MP4_ABOUT "Written by ciberfred" - #define BUFFER_SIZE FAAD_MIN_STREAMSIZE*64 - -+extern void getMP4info(char* file); -+extern int getAACTrack(MP4FileHandle file); -+ - static void mp4_init(void); - static void mp4_about(void); - static void mp4_play(char *); -@@ -113,9 +116,9 @@ static int mp4_isFile(char *filename) - - extention = strrchr(filename, '.'); - if (extention && -- !strcasecmp(extention, ".mp4") || // official extention -- !strcasecmp(extention, ".m4a") || // Apple mp4 extention -- !strcasecmp(extention, ".aac") // old MPEG2/4-AAC extention -+ (!strcasecmp(extention, ".mp4") || // official extention -+ !strcasecmp(extention, ".m4a") || // Apple mp4 extention -+ !strcasecmp(extention, ".aac")) // old MPEG2/4-AAC extention - ){ - return (1); - } -@@ -202,8 +205,8 @@ static void *mp4Decode(void *args) - faacDecHandle decoder; +$OpenBSD$ +--- plugins/xmms/src/libmp4.c.orig Tue Jun 5 12:00:18 2007 ++++ plugins/xmms/src/libmp4.c Wed Jul 16 00:12:57 2008 +@@ -290,7 +290,7 @@ static void *mp4Decode(void *args) + NeAACDecHandle decoder; unsigned char *buffer = NULL; guint bufferSize = 0; - gulong samplerate; -- guchar channels; -+ guint32 samplerate; -+ guint8 channels; - guint avgBitrate; - MP4Duration duration; - gulong msDuration; -@@ -330,8 +333,8 @@ static void *mp4Decode(void *args) - faacDecHandle decoder = 0; ++ guint samplerate; + guchar channels; + //guint avgBitrate; + //MP4Duration duration; +@@ -339,7 +339,7 @@ static void *mp4Decode(void *args) + mp4_ip.output->open_audio(FMT_S16_NE, samplerate, channels); + mp4_ip.output->flush(0); + mp4_ip.set_info(xmmstitle, msDuration, -1, samplerate/1000, channels); +- g_print("MP4 - %d channels @ %ld Hz\n", channels, samplerate); ++ g_print("MP4 - %d channels @ %d Hz\n", channels, samplerate); + + while(bPlaying){ + void* sampleBuffer; +@@ -414,8 +414,8 @@ end: + FILE *file = NULL; + NeAACDecHandle decoder = 0; guchar *buffer = 0; - gulong bufferconsumed = 0; +- gulong bufferconsumed = 0; - gulong samplerate = 0; -- guchar channels; -+ guint32 samplerate = 0; -+ guint8 channels; ++ gint bufferconsumed = 0; ++ guint samplerate = 0; + guchar channels; gulong buffervalid = 0; TitleInput* input; - gchar *temp = g_strdup(args); Index: pkg/PFRAG.shared-main =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faad/pkg/PFRAG.shared-main,v retrieving revision 1.1 diff -u -r1.1 PFRAG.shared-main --- pkg/PFRAG.shared-main 25 Nov 2006 17:04:32 -0000 1.1 +++ pkg/PFRAG.shared-main 23 Jul 2008 13:19:26 -0000 @@ -1,4 +1,3 @@ @comment $OpenBSD: PFRAG.shared-main,v 1.1 2006/11/25 17:04:32 espie Exp $ @lib lib/libfaad.so.${LIBfaad_VERSION} @lib lib/libmp4ff.so.${LIBmp4ff_VERSION} [EMAIL PROTECTED] lib/libmp4v2.so.${LIBmp4v2_VERSION} Index: pkg/PLIST-main =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faad/pkg/PLIST-main,v retrieving revision 1.1 diff -u -r1.1 PLIST-main --- pkg/PLIST-main 25 Nov 2006 17:04:32 -0000 1.1 +++ pkg/PLIST-main 23 Jul 2008 13:19:26 -0000 @@ -2,17 +2,12 @@ @conflict playfair-* @pkgpath audio/faad @pkgpath audio/faad,no_xmms -bin/faad +%%SHARED%% [EMAIL PROTECTED] bin/faad include/faad.h include/faadconfig.h -include/mp4.h -include/mp4ff.h -include/mpeg4ip.h -include/systems.h +include/neaacdec.h lib/libfaad.a lib/libfaad.la lib/libmp4ff.a lib/libmp4ff.la -lib/libmp4v2.a -lib/libmp4v2.la -%%SHARED%%
Index: Makefile =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faac/Makefile,v retrieving revision 1.4 diff -u -r1.4 Makefile --- Makefile 15 Sep 2007 21:26:01 -0000 1.4 +++ Makefile 23 Jul 2008 13:19:34 -0000 @@ -1,10 +1,10 @@ # $OpenBSD: Makefile,v 1.4 2007/09/15 21:26:01 simon Exp $ COMMENT= MPEG-2 and MPEG-4 AAC encoder -DISTNAME= faac-1.24 +DISTNAME= faac-1.26 CATEGORIES= audio MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=faac/} -SHARED_LIBS += faac 0.0 # .0.0 +SHARED_LIBS += faac 1.0 # .0.0 HOMEPAGE= http://www.audiocoding.com/ @@ -16,8 +16,10 @@ WANTLIB= c m stdc++ BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS} -LIB_DEPENDS= mp4v2.>=1::audio/faad USE_LIBTOOL= Yes +USE_GMAKE= Yes + +LIB_DEPENDS= mp4v2::audio/libmp4v2 WRKDIST= ${WRKDIR}/faac CONFIGURE_STYLE= automake Index: distinfo =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faac/distinfo,v retrieving revision 1.2 diff -u -r1.2 distinfo --- distinfo 5 Apr 2007 15:37:42 -0000 1.2 +++ distinfo 23 Jul 2008 13:19:34 -0000 @@ -1,5 +1,5 @@ -MD5 (faac-1.24.tar.gz) = 5y3HTbF7QrBhVWE0iQd61w== -RMD160 (faac-1.24.tar.gz) = fb2O7E8mh16mQbMxnYuXDmjYimA= -SHA1 (faac-1.24.tar.gz) = /XlxWoAPizlHDVsxL12EOiYp3Uk= -SHA256 (faac-1.24.tar.gz) = pYRP87zg18iFr3H0HaATldMlPc/DOGMwagJ6eKfPrZ4= -SIZE (faac-1.24.tar.gz) = 282585 +MD5 (faac-1.26.tar.gz) = HXwBm9LbtPMQG4k368Wc9g== +RMD160 (faac-1.26.tar.gz) = QGVrexp8IHNz16G6AWfyINkHPs0= +SHA1 (faac-1.26.tar.gz) = Wq1tWmAQel1r95ZUlwFo9JiWGyE= +SHA256 (faac-1.26.tar.gz) = S0ji4iJn6SYDZce+5FE78T0mK4sTz3+VBOn6YStqqVE= +SIZE (faac-1.26.tar.gz) = 400915 Index: patches/patch-bootstrap =================================================================== RCS file: patches/patch-bootstrap diff -N patches/patch-bootstrap --- patches/patch-bootstrap 13 Jul 2006 16:18:40 -0000 1.1.1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,10 +0,0 @@ -$OpenBSD: patch-bootstrap,v 1.1.1.1 2006/07/13 16:18:40 ckuethe Exp $ ---- bootstrap.orig Sun Jul 9 14:35:15 2006 -+++ bootstrap Sun Jul 9 14:35:31 2006 -@@ -3,5 +3,5 @@ - aclocal -I . - autoheader - libtoolize --automake --automake --add-missing -+automake --add-missing --include-deps - autoconf Index: patches/patch-common_Makefile_am =================================================================== RCS file: patches/patch-common_Makefile_am diff -N patches/patch-common_Makefile_am --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-common_Makefile_am 23 Jul 2008 13:19:34 -0000 @@ -0,0 +1,10 @@ +$OpenBSD$ +--- common/Makefile.am.orig Thu Jul 10 23:57:28 2008 ++++ common/Makefile.am Thu Jul 10 23:57:53 2008 +@@ -1,5 +1,5 @@ + if WITH_MP4V2 +-SUBDIRS = mp4v2 ++SUBDIRS = + else + SUBDIRS = + endif Index: patches/patch-configure_in =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faac/patches/patch-configure_in,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 patch-configure_in --- patches/patch-configure_in 13 Jul 2006 16:18:40 -0000 1.1.1.1 +++ patches/patch-configure_in 23 Jul 2008 13:19:34 -0000 @@ -1,27 +1,41 @@ ---- configure.in.orig Fri Apr 16 03:49:09 2004 -+++ configure.in Thu Jul 13 09:06:22 2006 -@@ -6,8 +6,6 @@ AM_CONFIG_HEADER(config.h) +--- configure.in.orig Mon Aug 20 11:03:22 2007 ++++ configure.in Thu Jul 10 23:55:40 2008 +@@ -10,8 +10,6 @@ AC_ARG_ENABLE( drm, [ --enable-drm Digita AC_DEFUN(MY_DEFINE, [ AC_DEFINE($1, 1, [define if needed]) ]) -CFLAGS=${CFLAGS:-"-O2 -Wall"} - AC_PROG_CC + AC_PROG_CXX AM_PROG_LIBTOOL +@@ -31,7 +29,7 @@ AM_CONDITIONAL(WITH_MP4V2, false) -@@ -21,12 +19,14 @@ AC_CHECK_TYPES(int16_t) - AC_CHECK_DECL(strcasecmp, MY_DEFINE(HAVE_STRCASECMP)) + AC_CHECK_DECLS([MP4Create, MP4MetadataDelete], + AC_CHECK_LIB(mp4v2, MP4MetadataDelete, external_mp4v2=yes, +- external_mp4v2=no, -lstdc++), ++ external_mp4v2=no, -lstdc++ -lm), + external_mp4v2=no, [#include <mp4.h>]) - AC_CHECK_LIB(gnugetopt, getopt_long) -+AC_LANG_PUSH(C++) - AC_CHECK_LIB(mp4v2, MP4MetadataDelete, - [AC_MSG_NOTICE([*** Building with MP4 support ***]) - MY_DEFINE([HAVE_LIBMP4V2]) - LIBS="$LIBS -lstdc++ -lmp4v2"], - [AC_MSG_NOTICE([*** Building without MP4 support ***])], -- -lstdc++) -+ -lm) -+AC_LANG_POP(C++) - AC_C_BIGENDIAN + if test x$external_mp4v2 = xyes; then +@@ -39,12 +37,17 @@ if test x$external_mp4v2 = xyes; then + else + if test x$WITHMP4V2 = xyes; then + AC_MSG_NOTICE([*** Building with internal mp4v2 ***]) +- AM_CONDITIONAL(WITH_MP4V2, true) +- AC_CONFIG_LINKS(common/mp4v2/mpeg4ip_config.h:config.h) +- MY_DEFINE(HAVE_LIBMP4V2) + else + AC_MSG_NOTICE([*** Building WITHOUT mp4v2 ***]) + fi ++fi ++ ++if test x$external_mp4v2 = xyes -o x$WITHMP4V2 = xyes; then ++ AM_CONDITIONAL(WITH_MP4V2, true) ++ if test x$external_mp4v2 != xyes; then ++ AC_CONFIG_LINKS(common/mp4v2/mpeg4ip_config.h:config.h) ++ fi ++ MY_DEFINE(HAVE_LIBMP4V2) + fi - dnl Checks for header files required for mp4.h + dnl Check for DRM mode Index: patches/patch-frontend_Makefile_am =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faac/patches/patch-frontend_Makefile_am,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 patch-frontend_Makefile_am --- patches/patch-frontend_Makefile_am 13 Jul 2006 16:18:40 -0000 1.1.1.1 +++ patches/patch-frontend_Makefile_am 23 Jul 2008 13:19:34 -0000 @@ -1,10 +1,16 @@ ---- frontend/Makefile.am.orig Wed Mar 24 04:00:40 2004 -+++ frontend/Makefile.am Thu Jul 13 08:34:13 2006 -@@ -1,6 +1,6 @@ +--- frontend/Makefile.am.orig Wed Jul 28 01:18:21 2004 ++++ frontend/Makefile.am Fri Jul 11 00:00:32 2008 +@@ -1,10 +1,10 @@ bin_PROGRAMS = faac -faac_SOURCES = main.c input.c +faac_SOURCES = main.c input.c dummy.cc + if WITH_MP4V2 +-INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/common/mp4v2 +-LDADD = $(top_builddir)/libfaac/libfaac.la $(top_srcdir)/common/mp4v2/libmp4v2.la -lm -lstdc++ ++INCLUDES = -I$(top_srcdir)/include ++LDADD = $(top_builddir)/libfaac/libfaac.la -lmp4v2 -lm -lstdc++ + else INCLUDES = -I$(top_srcdir)/include LDADD = $(top_builddir)/libfaac/libfaac.la -lm Index: patches/patch-include_faac_h =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faac/patches/patch-include_faac_h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 patch-include_faac_h --- patches/patch-include_faac_h 13 Jul 2006 16:18:40 -0000 1.1.1.1 +++ patches/patch-include_faac_h 23 Jul 2008 13:19:34 -0000 @@ -1,6 +1,6 @@ $OpenBSD: patch-include_faac_h,v 1.1.1.1 2006/07/13 16:18:40 ckuethe Exp $ ---- include/faac.h.orig Sun Jul 9 15:39:41 2006 -+++ include/faac.h Sun Jul 9 15:40:49 2006 +--- include/faac.h.orig Sun Jul 4 05:12:05 2004 ++++ include/faac.h Sun Jun 1 13:23:41 2008 @@ -36,8 +36,6 @@ extern "C" { # endif #endif @@ -10,7 +10,7 @@ typedef struct { void *ptr; char *name; -@@ -84,9 +82,6 @@ int FAACAPI faacEncEncode(faacEncHandle +@@ -88,9 +86,6 @@ int FAACAPI faacEncEncode(faacEncHandle hEncoder, int3 int FAACAPI faacEncClose(faacEncHandle hEncoder); Index: patches/patch-libfaac_Makefile_am =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faac/patches/patch-libfaac_Makefile_am,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 patch-libfaac_Makefile_am --- patches/patch-libfaac_Makefile_am 13 Jul 2006 16:18:40 -0000 1.1.1.1 +++ patches/patch-libfaac_Makefile_am 23 Jul 2008 13:19:34 -0000 @@ -1,7 +1,7 @@ ---- libfaac/Makefile.am.orig Fri Oct 17 10:41:05 2003 -+++ libfaac/Makefile.am Thu Jul 13 09:06:22 2006 -@@ -4,5 +4,5 @@ libfaac_la_SOURCES = aacquant.c bitstrea - libfaac_la_INCLUDES = aacquant.h channels.h filtbank.h hufftab.h psych.h backpred.h coder.h frame.h midside.h tns.h bitstream.h fft.h huffman.h ltp.h util.h +--- libfaac/Makefile.am.orig Mon Aug 20 11:03:23 2007 ++++ libfaac/Makefile.am Sun Jun 1 13:23:41 2008 +@@ -9,5 +9,5 @@ libfaac_la_INCLUDES = aacquant.h channels.h filtbank.h + libfaac_la_LIBADD = -lm INCLUDES = -I$(top_srcdir)/include - Index: patches/patch-libfaac_frame_h =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faac/patches/patch-libfaac_frame_h,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 patch-libfaac_frame_h --- patches/patch-libfaac_frame_h 13 Jul 2006 16:18:40 -0000 1.1.1.1 +++ patches/patch-libfaac_frame_h 23 Jul 2008 13:19:34 -0000 @@ -1,6 +1,6 @@ $OpenBSD: patch-libfaac_frame_h,v 1.1.1.1 2006/07/13 16:18:40 ckuethe Exp $ ---- libfaac/frame.h.orig Sun Jul 9 15:34:25 2006 -+++ libfaac/frame.h Sun Jul 9 15:35:37 2006 +--- libfaac/frame.h.orig Mon Nov 24 10:09:38 2003 ++++ libfaac/frame.h Sun Jun 1 13:23:41 2008 @@ -60,8 +60,6 @@ extern "C" { #endif #endif @@ -10,7 +10,7 @@ typedef struct { psymodel_t *model; char *name; -@@ -149,9 +147,6 @@ int FAACAPI faacEncEncode(faacEncHandle +@@ -149,9 +147,6 @@ int FAACAPI faacEncEncode(faacEncHandle hEncoder, ); int FAACAPI faacEncClose(faacEncHandle hEncoder); Index: pkg/PLIST =================================================================== RCS file: /home/cvs/OpenBSD/ports/audio/faac/pkg/PLIST,v retrieving revision 1.1.1.1 diff -u -r1.1.1.1 PLIST --- pkg/PLIST 13 Jul 2006 16:18:40 -0000 1.1.1.1 +++ pkg/PLIST 23 Jul 2008 13:19:34 -0000 @@ -1,6 +1,6 @@ @comment $OpenBSD: PLIST,v 1.1.1.1 2006/07/13 16:18:40 ckuethe Exp $ %%SHARED%% -bin/faac [EMAIL PROTECTED] bin/faac include/faac.h include/faaccfg.h lib/libfaac.a
libmp4v2-1.5.0.1-port.tgz
Description: application/tar-gz
faad.ports.diff.gz
Description: application/gunzip