From 219a6dab8995aad9ac4860cc1a84d6f3509a03a4 Mon Sep 17 00:00:00 2001 From: wbx Date: Sun, 17 May 2009 14:41:34 +0200 Subject: Initial import --- package/flac/Config.in | 14 ++++++++++ package/flac/Makefile | 30 ++++++++++++++++++++++ package/flac/ipkg/libflac.control | 4 +++ package/flac/patches/patch-configure | 12 +++++++++ package/flac/patches/patch-src_libFLAC_Makefile_in | 12 +++++++++ package/flac/patches/patch-src_libFLAC_lpc_c | 13 ++++++++++ 6 files changed, 85 insertions(+) create mode 100644 package/flac/Config.in create mode 100644 package/flac/Makefile create mode 100644 package/flac/ipkg/libflac.control create mode 100644 package/flac/patches/patch-configure create mode 100644 package/flac/patches/patch-src_libFLAC_Makefile_in create mode 100644 package/flac/patches/patch-src_libFLAC_lpc_c (limited to 'package/flac') 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 +-#endif + + #ifndef FLAC__INTEGER_ONLY_LIBRARY + -- cgit v1.2.3