cogl: added gir build option; try to resolve ARM build issues.
This commit is contained in:
parent
bd78544044
commit
127c69841b
1 changed files with 27 additions and 8 deletions
|
@ -1,13 +1,14 @@
|
|||
# Template file for 'cogl'
|
||||
pkgname=cogl
|
||||
version=1.18.2
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
configure_args="--enable-introspection --enable-cogl-gst=yes
|
||||
configure_args="--enable-cogl-gst=yes
|
||||
--enable-gles1 --enable-gles2 --enable-kms-egl-platform
|
||||
--enable-wayland-egl-platform --enable-wayland-egl-server"
|
||||
hostmakedepends="pkg-config intltool gobject-introspection"
|
||||
makedepends="libXcomposite-devel libXrandr-devel libXdamage-devel pango-devel
|
||||
hostmakedepends="automake libtool gettext-devel pkg-config intltool
|
||||
glib-devel gobject-introspection"
|
||||
makedepends="libXcomposite-devel libXrandr-devel MesaLib-devel pango-devel
|
||||
gdk-pixbuf-devel gst-plugins-base1-devel>=1:1.2.0 wayland-devel"
|
||||
depends="gst-plugins-base1>=1:1.2.0"
|
||||
short_desc="Library for using 3D graphics hardware for rendering"
|
||||
|
@ -17,15 +18,33 @@ license="LGPL-2.1"
|
|||
distfiles="${GNOME_SITE}/cogl/${version%.*}/cogl-${version}.tar.xz"
|
||||
checksum=9278e519d5480eb0379efd48db024e8fdbf93f01dff48a7e756b85b508a863aa
|
||||
|
||||
# Package build options
|
||||
build_options="gir"
|
||||
|
||||
# Disable gir for cross builds.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default="gir"
|
||||
fi
|
||||
|
||||
if [ "$build_option_gir" ]; then
|
||||
configure_args+=" --enable-introspection"
|
||||
else
|
||||
configure_args+=" --disable-introspection"
|
||||
fi
|
||||
|
||||
pre_configure() {
|
||||
autoreconf -fi
|
||||
}
|
||||
|
||||
cogl-devel_package() {
|
||||
depends="libdrm-devel libXcomposite-devel libXdamage-devel
|
||||
libXrandr-devel gdk-pixbuf-devel glib-devel wayland-devel
|
||||
cogl>=${version}_${revision}"
|
||||
depends="${makedepends} cogl>=${version}_${revision}"
|
||||
short_desc+=" - development files"
|
||||
pkg_install() {
|
||||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove "usr/lib/*.so"
|
||||
vmove usr/share/gir-1.0
|
||||
if [ "$build_option_gir" ]; then
|
||||
vmove usr/share/gir-1.0
|
||||
fi
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue