importing FAAC, a freeware encoder for MPEG-2 and MPEG-4 AAC.

ok naddy
This commit is contained in:
ckuethe 2006-07-13 16:18:40 +00:00
parent 32ff4c7d54
commit 97e2bebf0e
14 changed files with 201 additions and 0 deletions

38
audio/faac/Makefile Normal file
View File

@ -0,0 +1,38 @@
# $OpenBSD: Makefile,v 1.1.1.1 2006/07/13 16:18:40 ckuethe Exp $
COMMENT= "MPEG-2 and MPEG-4 AAC encoder"
DISTNAME= faac-1.24
CATEGORIES= audio
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=faac/}
SHARED_LIBS= faac 0.0
HOMEPAGE= http://www.audiocoding.com/
# GPL
PERMIT_PACKAGE_CDROM= "Patents"
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= "Patents"
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c m stdc++
BUILD_DEPENDS+= ${MODGNU_AUTOCONF_DEPENDS}
LIB_DEPENDS= mp4v2.1::audio/faad
USE_LIBTOOL= Yes
WRKDIST= ${WRKDIR}/faac
CONFIGURE_STYLE= automake
AUTOCONF_VERSION=2.59
AUTOMAKE_VERSION=1.4
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS+= ${CONFIGURE_SHARED} \
--without-mp4v2
post-patch:
@touch ${WRKSRC}/frontend/dummy.cc
@cd ${WRKSRC} && AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} PATH=${PORTPATH} \
sh bootstrap
.include <bsd.port.mk>

4
audio/faac/distinfo Normal file
View File

@ -0,0 +1,4 @@
MD5 (faac-1.24.tar.gz) = e72dc74db17b42b06155613489077ad7
RMD160 (faac-1.24.tar.gz) = 7dbd8eec4f26875ea641b3319d8b970e68d88a60
SHA1 (faac-1.24.tar.gz) = fd79715a800f8b39470d5b312f5d843a2629dd49
SIZE (faac-1.24.tar.gz) = 282585

View File

@ -0,0 +1,10 @@
$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

View File

@ -0,0 +1,27 @@
--- 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)
AC_DEFUN(MY_DEFINE, [ AC_DEFINE($1, 1, [define if needed]) ])
-CFLAGS=${CFLAGS:-"-O2 -Wall"}
-
AC_PROG_CC
AM_PROG_LIBTOOL
@@ -21,12 +19,14 @@ AC_CHECK_TYPES(int16_t)
AC_CHECK_DECL(strcasecmp, MY_DEFINE(HAVE_STRCASECMP))
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
dnl Checks for header files required for mp4.h

View File

@ -0,0 +1,10 @@
--- 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 @@
bin_PROGRAMS = faac
-faac_SOURCES = main.c input.c
+faac_SOURCES = main.c input.c dummy.cc
INCLUDES = -I$(top_srcdir)/include
LDADD = $(top_builddir)/libfaac/libfaac.la -lm

View File

@ -0,0 +1,22 @@
$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
@@ -36,8 +36,6 @@ extern "C" {
# endif
#endif
-#pragma pack(push, 1)
-
typedef struct {
void *ptr;
char *name;
@@ -84,9 +82,6 @@ int FAACAPI faacEncEncode(faacEncHandle
int FAACAPI faacEncClose(faacEncHandle hEncoder);
-
-
-#pragma pack(pop)
#ifdef __cplusplus
}

View File

@ -0,0 +1,19 @@
$OpenBSD: patch-include_faaccfg_h,v 1.1.1.1 2006/07/13 16:18:40 ckuethe Exp $
--- include/faaccfg.h.orig Sun Jul 9 15:39:53 2006
+++ include/faaccfg.h Sun Jul 9 15:40:34 2006
@@ -45,7 +45,6 @@
#define SHORTCTL_NOSHORT 1
#define SHORTCTL_NOLONG 2
-#pragma pack(push, 1)
typedef struct faacEncConfiguration
{
/* config version */
@@ -116,7 +115,5 @@ typedef struct faacEncConfiguration
int channel_map[64];
} faacEncConfiguration, *faacEncConfigurationPtr;
-
-#pragma pack(pop)
#endif /* _FAACCFG_H_ */

View File

@ -0,0 +1,9 @@
--- 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
INCLUDES = -I$(top_srcdir)/include
-
+LIBS =

View File

@ -0,0 +1,18 @@
$OpenBSD: patch-libfaac_aacquant_h,v 1.1.1.1 2006/07/13 16:18:40 ckuethe Exp $
--- libfaac/aacquant.h.orig Sun Jul 9 15:41:20 2006
+++ libfaac/aacquant.h Sun Jul 9 15:41:33 2006
@@ -37,14 +37,12 @@ extern "C" {
#define POW20(x) pow(2.0,((double)x)*.25)
#define IPOW20(x) pow(2.0,-((double)x)*.1875)
-#pragma pack(push, 1)
typedef struct
{
double *pow43;
double *adj43;
double quality;
} AACQuantCfg;
-#pragma pack(pop)
void AACQuantizeInit(CoderInfo *coderInfo, unsigned int numChannels,
AACQuantCfg *aacquantCfg);

View File

@ -0,0 +1,22 @@
$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
@@ -60,8 +60,6 @@ extern "C" {
#endif
#endif
-#pragma pack(push, 1)
-
typedef struct {
psymodel_t *model;
char *name;
@@ -149,9 +147,6 @@ int FAACAPI faacEncEncode(faacEncHandle
);
int FAACAPI faacEncClose(faacEncHandle hEncoder);
-
-
-#pragma pack(pop)
#ifdef __cplusplus
}

View File

@ -0,0 +1,10 @@
$OpenBSD: patch-libfaac_psych_h,v 1.1.1.1 2006/07/13 16:18:40 ckuethe Exp $
--- libfaac/psych.h.orig Sun Jul 9 15:42:32 2006
+++ libfaac/psych.h Sun Jul 9 15:42:45 2006
@@ -82,4 +82,4 @@ extern psymodel_t psymodel2;
}
#endif /* __cplusplus */
-#endif /* PSYCH_H */
\ No newline at end of file
+#endif /* PSYCH_H */

3
audio/faac/pkg/DESCR Normal file
View File

@ -0,0 +1,3 @@
FAAC is the "Freeware Advanced Audio Coder". It supports MPEG-2 and MPEG-4 AAC.
The supported AAC profiles are HE, Main, LC, LTP and LD. It also supports all
these profiles in their ER (Error Resilient) equivalent.

View File

@ -0,0 +1,2 @@
@comment $OpenBSD: PFRAG.shared,v 1.1.1.1 2006/07/13 16:18:40 ckuethe Exp $
@lib lib/libfaac.so.${LIBfaac_VERSION}

7
audio/faac/pkg/PLIST Normal file
View File

@ -0,0 +1,7 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2006/07/13 16:18:40 ckuethe Exp $
%%SHARED%%
bin/faac
include/faac.h
include/faaccfg.h
lib/libfaac.a
lib/libfaac.la