diff --git a/srcpkgs/anjuta/template b/srcpkgs/anjuta/template index 46ff490559..02099c4aea 100644 --- a/srcpkgs/anjuta/template +++ b/srcpkgs/anjuta/template @@ -1,7 +1,7 @@ # Template file for 'anjuta' pkgname=anjuta version=3.22.0 -revision=1 +revision=2 build_style=gnu-configure build_options="gir" configure_args="$(vopt_enable gir introspection)" @@ -26,6 +26,14 @@ if [ -z "$CROSS_BUILD" ]; then build_options_default="gir" fi +CFLAGS="-O2 -Wno-deprecated-declarations" + +_gccver=$(gcc --version | awk '/^gcc \(GCC\)/ { print $3 }') +if [ "${_gccver%%.*}" -gt 5 ]; then + CFLAGS+=" -Wno-error=format-nonliteral -Wno-error=format-y2k" +fi +CXXFLAGS="${CFLAGS}" + anjuta-devel_package() { replaces="anjuta-docs>=0" short_desc+=" - development files"