gdl: added gir build option and cross build support.
This commit is contained in:
parent
649f9f15b8
commit
e383aa28a5
|
@ -1,9 +1,9 @@
|
|||
# Template file for 'gdl'
|
||||
pkgname=gdl
|
||||
version=3.12.0
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=gnu-configure
|
||||
hostmakedepends="pkg-config intltool gobject-introspection"
|
||||
hostmakedepends="pkg-config intltool glib-devel"
|
||||
makedepends="libxml2-devel gtk+3-devel"
|
||||
short_desc="GNOME Docking Library"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
|
@ -12,11 +12,33 @@ homepage="https://developer.gnome.org/gdl/"
|
|||
distfiles="${GNOME_SITE}/${pkgname}/${version%.*}/${pkgname}-${version}.tar.xz"
|
||||
checksum=4770f959f31ed5e616fe623c284e8dd6136e49902d19b6e37938d34be4f6b88d
|
||||
|
||||
# Package build options
|
||||
build_options="gir"
|
||||
desc_option_gir="Enable support for building gobject introspection data"
|
||||
|
||||
# Disable gir for cross builds.
|
||||
if [ -z "$CROSS_BUILD" ]; then
|
||||
build_options_default="gir"
|
||||
fi
|
||||
|
||||
if [ "$build_option_gir" ]; then
|
||||
configure_args+=" --enable-introspection"
|
||||
makedepends+=" gobject-introspection"
|
||||
else
|
||||
configure_args+=" --disable-introspection"
|
||||
fi
|
||||
|
||||
pre_build() {
|
||||
sed 's,-I$(includedir),,g' -i gdl/Makefile
|
||||
}
|
||||
|
||||
gdl-devel_package() {
|
||||
short_desc+=" - development files"
|
||||
depends="gdl>=${version}"
|
||||
pkg_install() {
|
||||
vmove usr/share/gir-1.0
|
||||
if [ "$build_option_gir" ]; then
|
||||
vmove usr/share/gir-1.0
|
||||
fi
|
||||
vmove usr/include
|
||||
vmove usr/lib/pkgconfig
|
||||
vmove "usr/lib/*.so"
|
||||
|
|
Loading…
Reference in New Issue