mplayer-common: fix arch and install
[openembedded.git] / recipes / flac / flac.inc
blobb90abd3278183652c5cd499c63308b1a6a23bf19
1 DESCRIPTION = "FLAC is a Free Lossless Audio Codec."
2 HOMEPAGE = "http://flac.sourceforge.net"
3 LICENSE = "BSD GPL"
4 SECTION = "libs"
5 DEPENDS = "libogg"
7 SRC_URI = "${SOURCEFORGE_MIRROR}/flac/flac-${PV}.tar.gz \
8            file://xmms.m4"
10 inherit autotools
12 EXTRA_OECONF = "--disable-oggtest --disable-id3libtest \
13                 --with-ogg-libraries=${STAGING_LIBDIR} \
14                 --with-ogg-includes=${STAGING_INCDIR} \
15                 --disable-xmms-plugin \
16                 --without-xmms-prefix \
17                 --without-xmms-exec-prefix \
18                 --without-libiconv-prefix \
19                 --without-id3lib"
21 do_configure () {
22         install -d ${S}/m4
23         install -m 0644 ${WORKDIR}/xmms.m4 ${S}/m4/
24         autotools_do_configure
25         # removes '-read-only-relocs' which is enabled for PowerPC builds.
26         # It makes the build fail, other archs are not affected. Fixes #1775.
27         sed -i 's/-Wl,-read_only_relocs,warning//g' src/libFLAC/Makefile
30 PACKAGES += "libflac libflac++ liboggflac liboggflac++"
31 FILES_${PN} = "${bindir}/*"
32 FILES_libflac = "${libdir}/libFLAC.so.*"
33 FILES_libflac++ = "${libdir}/libFLAC++.so.*"
34 FILES_liboggflac = "${libdir}/libOggFLAC.so.*"
35 FILES_liboggflac++ = "${libdir}/libOggFLAC++.so.*"