summaryrefslogtreecommitdiff
path: root/package/flac
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/flac
Initial import
Diffstat (limited to 'package/flac')
-rw-r--r--package/flac/Config.in14
-rw-r--r--package/flac/Makefile30
-rw-r--r--package/flac/ipkg/libflac.control4
-rw-r--r--package/flac/patches/patch-configure12
-rw-r--r--package/flac/patches/patch-src_libFLAC_Makefile_in12
-rw-r--r--package/flac/patches/patch-src_libFLAC_lpc_c13
6 files changed, 85 insertions, 0 deletions
diff --git a/package/flac/Config.in b/package/flac/Config.in
new file mode 100644
index 000000000..bef5c0876
--- /dev/null
+++ b/package/flac/Config.in
@@ -0,0 +1,14 @@
+config ADK_COMPILE_FLAC
+ tristate
+ default n
+ depends ADK_PACKAGE_LIBFLAC
+
+config ADK_PACKAGE_LIBFLAC
+ prompt "libflac........................... Free Lossless Audio Codec library"
+ tristate
+ default n
+ select ADK_COMPILE_FLAC
+ help
+ Free Lossless Audio Codec library
+
+ http://flac.sourceforge.net/
diff --git a/package/flac/Makefile b/package/flac/Makefile
new file mode 100644
index 000000000..3f3d001cc
--- /dev/null
+++ b/package/flac/Makefile
@@ -0,0 +1,30 @@
+# $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:= flac
+PKG_VERSION:= 1.2.1
+PKG_RELEASE:= 1
+PKG_MD5SUM:= 153c8b15a54da428d1f0fadc756c22c7
+MASTER_SITES:= ${MASTER_SITE_SOURCEFORGE:=flac/}
+
+include ${TOPDIR}/mk/package.mk
+
+$(eval $(call PKG_template,LIBFLAC,libflac,${PKG_VERSION}-${PKG_RELEASE},${ARCH}))
+
+CONFIGURE_STYLE= gnu
+CONFIGURE_ARGS+= --disable-asm-optimizations \
+ --disable-xmms-plugin \
+ --disable-cpplibs \
+ --disable-ogg
+BUILD_STYLE= auto
+INSTALL_STYLE= auto confprog
+
+post-install:
+ ${INSTALL_DIR} ${IDIR_LIBFLAC}/usr/lib
+ ${CP} ${WRKINST}/usr/lib/libFLAC.so* ${IDIR_LIBFLAC}/usr/lib/
+
+include ${TOPDIR}/mk/pkg-bottom.mk
diff --git a/package/flac/ipkg/libflac.control b/package/flac/ipkg/libflac.control
new file mode 100644
index 000000000..ea5079525
--- /dev/null
+++ b/package/flac/ipkg/libflac.control
@@ -0,0 +1,4 @@
+Package: libflac
+Priority: optional
+Section: libs
+Description: Free Lossless Audio Codec library
diff --git a/package/flac/patches/patch-configure b/package/flac/patches/patch-configure
new file mode 100644
index 000000000..830c77407
--- /dev/null
+++ b/package/flac/patches/patch-configure
@@ -0,0 +1,12 @@
+$Id$
+--- flac-1.2.1.orig/configure 2007-09-16 22:05:33.000000000 +0200
++++ flac-1.2.1/configure 2008-08-21 14:57:46.000000000 +0200
+@@ -23490,7 +23490,7 @@ else
+ CPPFLAGS="-DNDEBUG $CPPFLAGS"
+ if test "x$GCC" = xyes; then
+ CPPFLAGS="-DFLaC__INLINE=__inline__ $CPPFLAGS"
+- CFLAGS="-O3 -funroll-loops -finline-functions -Wall -W -Winline $CFLAGS"
++ CFLAGS="-finline-functions -Wall -W -Winline $CFLAGS"
+ fi
+ fi
+
diff --git a/package/flac/patches/patch-src_libFLAC_Makefile_in b/package/flac/patches/patch-src_libFLAC_Makefile_in
new file mode 100644
index 000000000..83c1eeacc
--- /dev/null
+++ b/package/flac/patches/patch-src_libFLAC_Makefile_in
@@ -0,0 +1,12 @@
+$Id$
+--- flac-1.2.1.orig/src/libFLAC/Makefile.in 2007-09-16 22:05:12.000000000 +0200
++++ flac-1.2.1/src/libFLAC/Makefile.in 2008-08-21 14:54:37.000000000 +0200
+@@ -295,8 +295,6 @@ libFLAC_la_SOURCES = \
+ metadata_iterators.c \
+ metadata_object.c \
+ stream_decoder.c \
+- stream_encoder.c \
+- stream_encoder_framing.c \
+ window.c \
+ $(extra_ogg_sources)
+
diff --git a/package/flac/patches/patch-src_libFLAC_lpc_c b/package/flac/patches/patch-src_libFLAC_lpc_c
new file mode 100644
index 000000000..3bacabaa3
--- /dev/null
+++ b/package/flac/patches/patch-src_libFLAC_lpc_c
@@ -0,0 +1,13 @@
+$Id$
+--- flac-1.2.1.orig/src/libFLAC/lpc.c 2007-09-04 20:15:03.000000000 +0200
++++ flac-1.2.1/src/libFLAC/lpc.c 2008-08-20 15:45:13.000000000 +0200
+@@ -38,9 +38,7 @@
+ #include "FLAC/format.h"
+ #include "private/bitmath.h"
+ #include "private/lpc.h"
+-#if defined DEBUG || defined FLAC__OVERFLOW_DETECT || defined FLAC__OVERFLOW_DETECT_VERBOSE
+ #include <stdio.h>
+-#endif
+
+ #ifndef FLAC__INTEGER_ONLY_LIBRARY
+