summaryrefslogtreecommitdiff
path: root/package/faad2
diff options
context:
space:
mode:
authorwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
committerwbx <wbx@hydrogenium.(none)>2009-05-17 14:41:34 +0200
commit219a6dab8995aad9ac4860cc1a84d6f3509a03a4 (patch)
treeb9c0f3c43aebba2fcfef777592d0add39f2072f4 /package/faad2
Initial import
Diffstat (limited to 'package/faad2')
-rw-r--r--package/faad2/Config.in16
-rw-r--r--package/faad2/Makefile35
-rw-r--r--package/faad2/ipkg/libfaad2.control4
-rw-r--r--package/faad2/patches/patch-common_mp4ff_Makefile_am16
-rw-r--r--package/faad2/patches/patch-common_mp4ff_mp4ff_h12
-rw-r--r--package/faad2/patches/patch-configure_in11
-rw-r--r--package/faad2/patches/patch-frontend_Makefile_am12
7 files changed, 106 insertions, 0 deletions
diff --git a/package/faad2/Config.in b/package/faad2/Config.in
new file mode 100644
index 000000000..21d3194c3
--- /dev/null
+++ b/package/faad2/Config.in
@@ -0,0 +1,16 @@
+config ADK_COMPILE_FAAD2
+ tristate
+ default n
+ depends ADK_PACKAGE_LIBFAAD2
+
+config ADK_PACKAGE_LIBFAAD2
+ prompt "libfaad2.......................... MP4 decoding library"
+ tristate
+ select ADK_COMPILE_FAAD2
+ default n
+ help
+ FAAD2 is the fastest ISO AAC audio decoder available.
+ FAAD2 correctly decodes all MPEG-4 and MPEG-2 MAIN,
+ LOW, LTP, LD and ER object type AAC files.
+ http://www.audiocoding.com/faad2.html
+
diff --git a/package/faad2/Makefile b/package/faad2/Makefile
new file mode 100644
index 000000000..bedaaf8e9
--- /dev/null
+++ b/package/faad2/Makefile
@@ -0,0 +1,35 @@
+# $Id$
+#-
+# This file is part of the OpenADK project. OpenADK is copyrighted
+# material, please see the LICENCE file in the top-level directory.
+
+include ${TOPDIR}/rules.mk
+
+PKG_NAME:= faad2
+PKG_VERSION:= 2.6.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 74e92df40c270f216a8305fc87603c8a
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=faac/}
+WRKDIST= ${WRKDIR}/faad2
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBFAAD2,libfaad2,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= autotool gnu
+CONFIGURE_ARGS+= --without-mpeg4ip \
+ --without-xmms
+BUILD_STYLE= auto
+INSTALL_STYLE= auto
+
+pre-install:
+ ${INSTALL_DIR} ${WRKINST}/usr/lib
+ ${INSTALL_DIR} ${WRKINST}/usr/include
+ ${CP} ${WRKBUILD}/common/mp4ff/libmp4ff.a ${WRKINST}/usr/lib
+ ${CP} ${WRKBUILD}/common/mp4ff/mp4ff.h ${WRKINST}/usr/include
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_LIBFAAD2}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libfaad.so.* ${IDIR_LIBFAAD2}/usr/lib/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/faad2/ipkg/libfaad2.control b/package/faad2/ipkg/libfaad2.control
new file mode 100644
index 000000000..81fa375f0
--- /dev/null
+++ b/package/faad2/ipkg/libfaad2.control
@@ -0,0 +1,4 @@
+Package: libfaad2
+Priority: optional
+Section: libs
+Description: A mp4 decoding library
diff --git a/package/faad2/patches/patch-common_mp4ff_Makefile_am b/package/faad2/patches/patch-common_mp4ff_Makefile_am
new file mode 100644
index 000000000..3e471d6de
--- /dev/null
+++ b/package/faad2/patches/patch-common_mp4ff_Makefile_am
@@ -0,0 +1,16 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- faad2.orig/common/mp4ff/Makefile.am 2006-05-07 20:09:00.000000000 +0200
++++ faad2/common/mp4ff/Makefile.am 2009-01-11 17:15:38.138931843 +0100
+@@ -1,8 +1,9 @@
+-noinst_LTLIBRARIES = libmp4ff.la
++lib_LIBRARIES = libmp4ff.a
++include_HEADERS = mp4ff.h mp4ffint.h
+
+-libmp4ff_la_CFLAGS = -DUSE_TAGGING=1
++libmp4ff_a_CFLAGS = -DUSE_TAGGING=1
+
+-libmp4ff_la_SOURCES = mp4ff.c mp4atom.c mp4meta.c mp4sample.c mp4util.c \
++libmp4ff_a_SOURCES = mp4ff.c mp4atom.c mp4meta.c mp4sample.c mp4util.c \
+ mp4tagupdate.c mp4ff.h mp4ffint.h mp4ff_int_types.h \
+ drms.h drms.c drmstables.h
+
diff --git a/package/faad2/patches/patch-common_mp4ff_mp4ff_h b/package/faad2/patches/patch-common_mp4ff_mp4ff_h
new file mode 100644
index 000000000..cfca4f560
--- /dev/null
+++ b/package/faad2/patches/patch-common_mp4ff_mp4ff_h
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- faad2.orig/common/mp4ff/mp4ff.h 2007-11-01 13:33:29.000000000 +0100
++++ faad2/common/mp4ff/mp4ff.h 2009-01-11 16:52:07.174753204 +0100
+@@ -35,7 +35,7 @@
+ extern "C" {
+ #endif /* __cplusplus */
+
+-#include "mp4ff_int_types.h"
++#include <stdint.h>
+
+ /* file callback structure */
+ typedef struct
diff --git a/package/faad2/patches/patch-configure_in b/package/faad2/patches/patch-configure_in
new file mode 100644
index 000000000..be4b20530
--- /dev/null
+++ b/package/faad2/patches/patch-configure_in
@@ -0,0 +1,11 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- faad2.orig/configure.in 2006-09-25 21:52:53.000000000 +0200
++++ faad2/configure.in 2009-01-08 16:50:34.056700106 +0100
+@@ -16,6 +16,7 @@ AC_SUBST(LIBTOOL_DEPS)
+
+ dnl Checks for programs.
+ AC_PROG_CC
++AC_PROG_CXX
+ AC_PROG_CPP
+ dnl disable for mpeg4ip plugin
+ dnl AC_PROG_CXX
diff --git a/package/faad2/patches/patch-frontend_Makefile_am b/package/faad2/patches/patch-frontend_Makefile_am
new file mode 100644
index 000000000..e0efa1aca
--- /dev/null
+++ b/package/faad2/patches/patch-frontend_Makefile_am
@@ -0,0 +1,12 @@
+$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
+--- faad2.orig/frontend/Makefile.am 2006-05-07 20:09:00.000000000 +0200
++++ faad2/frontend/Makefile.am 2009-01-11 17:16:19.901544559 +0100
+@@ -4,7 +4,7 @@ INCLUDES = -I$(top_srcdir)/include -I$(t
+ -I$(top_srcdir)/common/mp4ff
+
+ faad_LDADD = $(top_builddir)/libfaad/libfaad.la \
+- $(top_builddir)/common/mp4ff/libmp4ff.la
++ $(top_builddir)/common/mp4ff/libmp4ff.a
+
+ faad_SOURCES = main.c \
+ audio.c audio.h \