blob: 6ba2d45859f0598eda3140c1fd6f80b1390b18c8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
DESCRIPTION = "FLAC is a Free Lossless Audio Codec."
HOMEPAGE = "http://flac.sourceforge.net"
LICENSE = "BSD GPL"
SECTION = "libs"
DEPENDS = "libogg"
SRC_URI = "${SOURCEFORGE_MIRROR}/flac/flac-${PV}.tar.gz \
file://xmms.m4"
INC_PR = "r3"
inherit autotools gettext
EXTRA_OECONF = "--disable-oggtest --disable-id3libtest \
--with-ogg-libraries=${STAGING_LIBDIR} \
--with-ogg-includes=${STAGING_INCDIR} \
--disable-xmms-plugin \
--without-xmms-prefix \
--without-xmms-exec-prefix \
--without-libiconv-prefix \
--without-id3lib \
"
# Not supported by this platform but defaults to be on for PowerPC
EXTRA_OECONF_append_ppce300c3 = " --disable-altivec"
do_configure () {
install -d ${S}/m4
install -m 0644 ${WORKDIR}/xmms.m4 ${S}/m4/
autotools_do_configure
# removes '-read-only-relocs' which is enabled for PowerPC builds.
# It makes the build fail, other archs are not affected. Fixes #1775.
sed -i 's/-Wl,-read_only_relocs,warning//g' src/libFLAC/Makefile
# use same fix as libiconv
sed -i -e s/^hardcode_libdir_flag_spec/#hardcode_libdir_flag_spec/ \
-e s/^runpath_var/#runpath_var/ ${S}/*-libtool
}
PACKAGES += "libflac libflac++ liboggflac liboggflac++"
FILES_${PN} = "${bindir}/*"
FILES_libflac = "${libdir}/libFLAC.so.*"
FILES_libflac++ = "${libdir}/libFLAC++.so.*"
FILES_liboggflac = "${libdir}/libOggFLAC.so.*"
FILES_liboggflac++ = "${libdir}/libOggFLAC++.so.*"
|