aboutsummaryrefslogtreecommitdiff
path: root/package/flac
diff options
context:
space:
mode:
authorGravatar Jérôme Pouiller <jezz@sysmic.org>2013-08-30 11:05:57 +0200
committerGravatar Peter Korsgaard <jacmet@sunsite.dk>2013-09-08 21:41:39 +0200
commitadf6511013b8921d6856f5dc0e053cdd27891244 (patch)
tree14f1ba25f8ae138743e3f3954b85883c636714d8 /package/flac
parentbafa8fcc6ce90553843b5c24e68de57c40f94abe (diff)
downloadbuildroot-adf6511013b8921d6856f5dc0e053cdd27891244.tar.gz
buildroot-adf6511013b8921d6856f5dc0e053cdd27891244.tar.bz2
Remove multimedia subdirectory
Unless it was a group of sub-packages, packages was never regrouped by category. multimedia/ was an exception to this rule. This patch move packages/multimedia/ sub-directories to packages/. It keeps two subdirectories for gstream 0.10 and gstreamer 1.X. Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
Diffstat (limited to 'package/flac')
-rw-r--r--package/flac/Config.in6
-rw-r--r--package/flac/flac-no-altivec.patch28
-rw-r--r--package/flac/flac.mk23
3 files changed, 57 insertions, 0 deletions
diff --git a/package/flac/Config.in b/package/flac/Config.in
new file mode 100644
index 0000000000..357e24f728
--- /dev/null
+++ b/package/flac/Config.in
@@ -0,0 +1,6 @@
+config BR2_PACKAGE_FLAC
+ bool "flac"
+ help
+ FLAC is an Open Source lossless audio codec.
+
+ http://flac.sourceforge.net/
diff --git a/package/flac/flac-no-altivec.patch b/package/flac/flac-no-altivec.patch
new file mode 100644
index 0000000000..c6a535b000
--- /dev/null
+++ b/package/flac/flac-no-altivec.patch
@@ -0,0 +1,28 @@
+FLAC assumes every powerpc around has altivec ABI which is wrong.
+
+Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
+
+diff -Nura flac-1.2.1/src/libFLAC/Makefile.am flac-1.2.1-noaltivec/src/libFLAC/Makefile.am
+--- flac-1.2.1/src/libFLAC/Makefile.am 2007-09-14 18:06:17.000000000 -0300
++++ flac-1.2.1-noaltivec/src/libFLAC/Makefile.am 2011-01-06 15:14:36.384242614 -0300
+@@ -41,7 +41,7 @@
+ else
+ # Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific
+ #@@@ PPC optimizations temporarily disabled
+-CPUCFLAGS = -maltivec -mabi=altivec -DFLAC__NO_ASM
++CPUCFLAGS = -DFLAC__NO_ASM
+ endif
+ endif
+
+diff -Nura flac-1.2.1/src/libFLAC/Makefile.in flac-1.2.1-noaltivec/src/libFLAC/Makefile.in
+--- flac-1.2.1/src/libFLAC/Makefile.in 2007-09-16 17:05:12.000000000 -0300
++++ flac-1.2.1-noaltivec/src/libFLAC/Makefile.in 2011-01-06 15:14:50.997545602 -0300
+@@ -240,7 +240,7 @@
+ @FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_TRUE@CPUCFLAGS = -faltivec -force_cpusubtype_ALL -DFLAC__NO_ASM
+ # Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific
+ #@@@ PPC optimizations temporarily disabled
+-@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_FALSE@CPUCFLAGS = -maltivec -mabi=altivec -DFLAC__NO_ASM
++@FLaC__CPU_PPC_TRUE@@FLaC__SYS_DARWIN_FALSE@CPUCFLAGS = -DFLAC__NO_ASM
+
+ AM_CFLAGS = $(DEBUGCFLAGS) $(CPUCFLAGS) @OGG_CFLAGS@
+ @FLaC__CPU_PPC_TRUE@@FLaC__NO_ASM_FALSE@ARCH_SUBDIRS = ppc
diff --git a/package/flac/flac.mk b/package/flac/flac.mk
new file mode 100644
index 0000000000..cace0d9c74
--- /dev/null
+++ b/package/flac/flac.mk
@@ -0,0 +1,23 @@
+################################################################################
+#
+# flac
+#
+################################################################################
+
+FLAC_VERSION = 1.2.1
+FLAC_SOURCE = flac-$(FLAC_VERSION).tar.gz
+FLAC_SITE = http://downloads.sourceforge.net/project/flac/flac-src/flac-$(FLAC_VERSION)-src
+FLAC_INSTALL_STAGING = YES
+
+FLAC_CONF_OPT = \
+ --disable-cpplibs \
+ --disable-xmms-plugin
+
+ifeq ($(BR2_PACKAGE_LIBOGG),y)
+FLAC_CONF_OPT += --with-ogg=$(STAGING_DIR)/usr
+FLAC_DEPENDENCIES = libogg
+else
+FLAC_CONF_OPT += --disable-ogg
+endif
+
+$(eval $(autotools-package))