brasero: fix gcc6 build

This commit is contained in:
Juergen Buchmueller 2016-09-17 11:16:11 +02:00
parent 70632e137e
commit da654b1285

View File

@ -1,7 +1,7 @@
# Template file for 'brasero'
pkgname=brasero
version=3.12.1
revision=2
revision=3
build_style=gnu-configure
configure_args="--disable-schemas-compile --disable-caches $(vopt_if gir introspection)"
hostmakedepends="pkg-config intltool cdrtools gnome-doc-utils itstool
@ -25,6 +25,12 @@ if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }')
if [ "${_gccver%%.*}" -gt 5 ]; then
CFLAGS="-Wno-error=format-nonliteral -Wno-error=format-y2k"
CXXFLAGS="-Wno-error=format-nonliteral -Wno-error=format-y2k"
fi
brasero-devel_package() {
depends="gtk+3-devel brasero>=${version}_${revision}"
short_desc+=" - development files"