2006-09-01 18:01:05 +00:00
|
|
|
DESCRIPTION = "FLAC is a Free Lossless Audio Codec."
|
|
|
|
LICENSE = "BSD GPL"
|
|
|
|
SECTION = "libs"
|
|
|
|
DEPENDS = "libogg"
|
2010-06-26 09:46:31 +00:00
|
|
|
PR = "r0"
|
2006-09-01 18:01:05 +00:00
|
|
|
|
|
|
|
SRC_URI = "${SOURCEFORGE_MIRROR}/flac/flac-${PV}.tar.gz \
|
|
|
|
file://disable-xmms-plugin.patch;patch=1 \
|
2010-06-26 09:46:31 +00:00
|
|
|
file://flac-gcc43-fixes.patch;patch=1 \
|
2006-09-01 18:01:05 +00:00
|
|
|
file://xmms.m4"
|
2008-01-30 21:20:59 +00:00
|
|
|
|
2006-09-01 18:01:05 +00:00
|
|
|
S = "${WORKDIR}/flac-${PV}"
|
|
|
|
|
2010-04-26 16:41:05 +00:00
|
|
|
inherit autotools
|
2006-09-01 18:01:05 +00:00
|
|
|
|
|
|
|
EXTRA_OECONF = "--disable-oggtest --disable-id3libtest \
|
|
|
|
--with-ogg-libraries=${STAGING_LIBDIR} \
|
|
|
|
--with-ogg-includes=${STAGING_INCDIR} \
|
|
|
|
--without-xmms-prefix \
|
|
|
|
--without-xmms-exec-prefix \
|
|
|
|
--without-libiconv-prefix \
|
|
|
|
--without-id3lib"
|
|
|
|
|
|
|
|
PACKAGES += "libflac libflac++ liboggflac liboggflac++"
|
2006-10-28 19:33:04 +00:00
|
|
|
FILES_${PN} = "${bindir}/*"
|
2006-09-01 18:01:05 +00:00
|
|
|
FILES_libflac = "${libdir}/libFLAC.so.*"
|
|
|
|
FILES_libflac++ = "${libdir}/libFLAC++.so.*"
|
|
|
|
FILES_liboggflac = "${libdir}/libOggFLAC.so.*"
|
|
|
|
FILES_liboggflac++ = "${libdir}/libOggFLAC++.so.*"
|
|
|
|
|
|
|
|
do_configure () {
|
|
|
|
install -d ${S}/m4
|
|
|
|
install -m 0644 ${WORKDIR}/xmms.m4 ${S}/m4/
|
|
|
|
autotools_do_configure
|
2008-01-30 21:20:59 +00:00
|
|
|
# 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
|
2006-09-01 18:01:05 +00:00
|
|
|
}
|
|
|
|
|