void-packages/srcpkgs/mutter/template
2017-10-14 01:21:52 -06:00

52 lines
1.8 KiB
Bash

# Template file for 'mutter'
pkgname=mutter
version=3.26.1
revision=1
build_style=gnu-configure
configure_args="--disable-schemas-compile --disable-static --enable-egl-device"
hostmakedepends="pkg-config zenity glib-devel gobject-introspection"
makedepends="json-glib-devel upower-devel gnome-desktop-devel libinput-devel
glib-devel libcanberra-devel startup-notification-devel libSM-devel libXtst-devel
elogind-devel libdrm-devel libinput-devel libgudev-devel"
depends="zenity desktop-file-utils"
short_desc="Lightweight GTK+3 window manager"
maintainer="Enno Boland <gottox@voidlinux.eu>"
homepage="http://www.gnome.org"
license="GPL-2"
distfiles="${GNOME_SITE}/$pkgname/${version%.*}/$pkgname-$version.tar.xz"
checksum=16faf617aae9be06dc5f9e104f4cd20dfdd4d6ec0bc10053752262e9f79a04c2
shlib_provides="libmutter-clutter-1.so libmutter-cogl-path-1.so libmutter-cogl-1.so libmutter-cogl-pango-1.so"
nocross="https://build.voidlinux.eu/builders/armv7l_builder/builds/1295/steps/shell_3/logs/stdio"
CFLAGS+=' -Wno-error=sign-compare -Wno-error=format'
# Package build options
build_options="gir"
# Disable gir for cross builds.
if [ -z "$CROSS_BUILD" ]; then
build_options_default="gir"
fi
pre_configure() {
local _arch=x86
for i in /usr/src/kernel-headers-*/include; do
CFLAGS+=" -I$i -I$i/uapi -I$i/../arch/$_arch/include"
done
#sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool
#sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' cogl/libtool
#sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' clutter/libtool
}
mutter-devel_package() {
depends="gsettings-desktop-schemas>=3.16 gtk+3-devel>=3.16
clutter-devel>=1.22 libX11-devel mutter>=${version}_${revision}"
short_desc+=" - development files"
pkg_install() {
vmove usr/include
vmove usr/lib/pkgconfig
if [ "$build_option_gir" ]; then
vmove "usr/lib/mutter/*.gir"
fi
vmove "usr/lib/*.so"
}
}