46 lines
1.3 KiB
Bash
46 lines
1.3 KiB
Bash
# Template file for 'cogl'
|
|
pkgname=cogl
|
|
version=1.20.0
|
|
revision=1
|
|
build_style=gnu-configure
|
|
configure_args="--enable-cogl-gst=yes
|
|
--enable-gles1 --enable-gles2 --enable-kms-egl-platform
|
|
--enable-wayland-egl-platform --enable-wayland-egl-server
|
|
$(vopt_enable gir introspection)"
|
|
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 wayland-devel"
|
|
depends="gst-plugins-base1>=1:1.2.0"
|
|
short_desc="Library for using 3D graphics hardware for rendering"
|
|
maintainer="Juan RP <xtraeme@voidlinux.eu>"
|
|
homepage="http://www.clutter-project.org"
|
|
license="LGPL-2.1"
|
|
distfiles="${GNOME_SITE}/cogl/${version%.*}/cogl-${version}.tar.xz"
|
|
checksum=729e35495829e7d31fafa3358e47b743ba21a2b08ff9b6cd28fb74c0de91192b
|
|
|
|
# Package build options
|
|
build_options="gir"
|
|
|
|
# Disable gir for cross builds.
|
|
if [ -z "$CROSS_BUILD" ]; then
|
|
build_options_default="gir"
|
|
fi
|
|
|
|
pre_configure() {
|
|
autoreconf -fi
|
|
}
|
|
|
|
cogl-devel_package() {
|
|
depends="${makedepends} cogl>=${version}_${revision}"
|
|
short_desc+=" - development files"
|
|
pkg_install() {
|
|
vmove usr/include
|
|
vmove usr/lib/pkgconfig
|
|
vmove "usr/lib/*.so"
|
|
if [ "$build_option_gir" ]; then
|
|
vmove usr/share/gir-1.0
|
|
fi
|
|
}
|
|
}
|