diff options
author | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
---|---|---|
committer | Tudor Florea <tudor.florea@enea.com> | 2015-10-09 22:59:03 +0200 |
commit | 972dcfcdbfe75dcfeb777150c136576cf1a71e99 (patch) | |
tree | 97a61cd7e293d7ae9d56ef7ed0f81253365bb026 /meta/recipes-multimedia/flac | |
download | poky-972dcfcdbfe75dcfeb777150c136576cf1a71e99.tar.gz |
initial commit for Enea Linux 5.0 arm
Signed-off-by: Tudor Florea <tudor.florea@enea.com>
Diffstat (limited to 'meta/recipes-multimedia/flac')
-rw-r--r-- | meta/recipes-multimedia/flac/flac-1.3.0/0001-Fix-Makefile.am-altivec-logic.patch | 35 | ||||
-rw-r--r-- | meta/recipes-multimedia/flac/flac_1.3.0.bb | 44 |
2 files changed, 79 insertions, 0 deletions
diff --git a/meta/recipes-multimedia/flac/flac-1.3.0/0001-Fix-Makefile.am-altivec-logic.patch b/meta/recipes-multimedia/flac/flac-1.3.0/0001-Fix-Makefile.am-altivec-logic.patch new file mode 100644 index 0000000000..d086cc910f --- /dev/null +++ b/meta/recipes-multimedia/flac/flac-1.3.0/0001-Fix-Makefile.am-altivec-logic.patch | |||
@@ -0,0 +1,35 @@ | |||
1 | From 1b3597cdc7b5e604ea37db29b2a65aab91e263e6 Mon Sep 17 00:00:00 2001 | ||
2 | From: Gustavo Zacarias <gustavo@zacarias.com.ar> | ||
3 | Date: Wed, 4 Dec 2013 13:31:28 -0300 | ||
4 | Subject: [PATCH] Fix Makefile.am altivec logic | ||
5 | |||
6 | Upstream-Status: Backport | ||
7 | |||
8 | Besides SPE (FSL e500v? cores) there are other powerpc processors | ||
9 | that don't support altivec instructions so only enable them when it's | ||
10 | 100% sure that the target has it. | ||
11 | |||
12 | Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> | ||
13 | Signed-off-by: Erik de Castro Lopo <erikd@mega-nerd.com> | ||
14 | Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> | ||
15 | --- | ||
16 | src/libFLAC/Makefile.am | 3 +-- | ||
17 | 1 file changed, 1 insertion(+), 2 deletions(-) | ||
18 | |||
19 | diff --git a/src/libFLAC/Makefile.am b/src/libFLAC/Makefile.am | ||
20 | index 247e33c..258de40 100644 | ||
21 | --- a/src/libFLAC/Makefile.am | ||
22 | +++ b/src/libFLAC/Makefile.am | ||
23 | @@ -47,8 +47,7 @@ CPUCFLAGS = -faltivec -force_cpusubtype_ALL -DFLAC__NO_ASM | ||
24 | else | ||
25 | # Linux-gcc for PPC does not have -force_cpusubtype_ALL, it is Darwin-specific | ||
26 | CPUCFLAGS = | ||
27 | -if FLaC__CPU_PPC_SPE | ||
28 | -else | ||
29 | +if FLaC__USE_ALTIVEC | ||
30 | CPUCFLAGS += -maltivec -mabi=altivec | ||
31 | endif | ||
32 | #@@@ PPC optimizations temporarily disabled | ||
33 | -- | ||
34 | 1.8.3.2 | ||
35 | |||
diff --git a/meta/recipes-multimedia/flac/flac_1.3.0.bb b/meta/recipes-multimedia/flac/flac_1.3.0.bb new file mode 100644 index 0000000000..fdf38e9ea9 --- /dev/null +++ b/meta/recipes-multimedia/flac/flac_1.3.0.bb | |||
@@ -0,0 +1,44 @@ | |||
1 | SUMMARY = "Free Lossless Audio Codec" | ||
2 | DESCRIPTION = "FLAC stands for Free Lossless Audio Codec, a lossless audio compression format." | ||
3 | HOMEPAGE = "https://xiph.org/flac/" | ||
4 | BUGTRACKER = "http://sourceforge.net/p/flac/bugs/" | ||
5 | SECTION = "libs" | ||
6 | LICENSE = "GFDL-1.2 & GPLv2+ & LGPLv2.1+ & BSD" | ||
7 | LIC_FILES_CHKSUM = "file://COPYING.FDL;md5=ad1419ecc56e060eccf8184a87c4285f \ | ||
8 | file://src/Makefile.am;beginline=1;endline=17;md5=59575c1aa8f5f70d9361b776c2e2bdb5 \ | ||
9 | file://COPYING.GPL;md5=b234ee4d69f5fce4486a80fdaf4a4263 \ | ||
10 | file://src/flac/main.c;beginline=1;endline=18;md5=d36a16abc38d5ffd346ac4ba1be1932b \ | ||
11 | file://COPYING.LGPL;md5=fbc093901857fcd118f065f900982c24 \ | ||
12 | file://src/plugin_common/all.h;beginline=1;endline=18;md5=e33e281151e7f40db2d3d170d9b0c1bb \ | ||
13 | file://COPYING.Xiph;md5=755582d124a03e3001afea59fc02b61b \ | ||
14 | file://include/FLAC/all.h;beginline=65;endline=70;md5=64474f2b22e9e77b28d8b8b25c983a48" | ||
15 | DEPENDS = "libogg" | ||
16 | |||
17 | SRC_URI = "http://downloads.xiph.org/releases/flac/${BP}.tar.xz \ | ||
18 | file://0001-Fix-Makefile.am-altivec-logic.patch \ | ||
19 | " | ||
20 | |||
21 | SRC_URI[md5sum] = "13b5c214cee8373464d3d65dee362cdd" | ||
22 | SRC_URI[sha256sum] = "fa2d64aac1f77e31dfbb270aeb08f5b32e27036a52ad15e69a77e309528010dc" | ||
23 | |||
24 | inherit autotools-brokensep gettext | ||
25 | |||
26 | EXTRA_OECONF = "--disable-oggtest \ | ||
27 | --with-ogg-libraries=${STAGING_LIBDIR} \ | ||
28 | --with-ogg-includes=${STAGING_INCDIR} \ | ||
29 | --disable-xmms-plugin \ | ||
30 | --without-libiconv-prefix \ | ||
31 | ac_cv_prog_NASM="" \ | ||
32 | " | ||
33 | |||
34 | EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "altivec", " --enable-altivec", " --disable-altivec", d)}" | ||
35 | EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "core2", " --enable-sse", "", d)}" | ||
36 | EXTRA_OECONF += "${@bb.utils.contains("TUNE_FEATURES", "corei7", " --enable-sse", "", d)}" | ||
37 | |||
38 | PACKAGES += "libflac libflac++ liboggflac liboggflac++" | ||
39 | FILES_${PN} = "${bindir}/*" | ||
40 | FILES_libflac = "${libdir}/libFLAC.so.*" | ||
41 | FILES_libflac++ = "${libdir}/libFLAC++.so.*" | ||
42 | FILES_liboggflac = "${libdir}/libOggFLAC.so.*" | ||
43 | FILES_liboggflac++ = "${libdir}/libOggFLAC++.so.*" | ||
44 | |||