avahi-discover: make this build with gtk+3>=3.10.

This commit is contained in:
Juan RP 2013-10-09 23:07:38 +02:00
parent 975159429a
commit 32af62b5cc
1 changed files with 9 additions and 0 deletions

View File

@ -32,6 +32,15 @@ if [ "$CROSS_BUILD" ]; then
msg_error "$pkgver: this package is not cross buildable currently.\n"
fi
pre_configure() {
# Disable GTK deprecations and -Werror to let this build with gtk+>=3.10.
sed -e 's,-DG_DISABLE_DEPRECATED=1,,' \
-e 's,-DGDK_DISABLE_DEPRECATED=1,,' \
-e 's,-DGTK_DISABLE_DEPRECATED=1,,' \
-i avahi-ui/Makefile.in
sed -e 's,-Werror,,g' -i configure
}
avahi-python-utils_package() {
noarch=yes
depends="avahi-python>=$version"