From 86d945e616671e5ed177ea6f53168b5cb35bc1f1 Mon Sep 17 00:00:00 2001 From: Michael Olbrich Date: Mon, 28 Dec 2015 00:36:17 +0100 Subject: gobject-introspection: new package Signed-off-by: Michael Olbrich --- rules/gobject-introspection.make | 82 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 82 insertions(+) create mode 100644 rules/gobject-introspection.make (limited to 'rules/gobject-introspection.make') diff --git a/rules/gobject-introspection.make b/rules/gobject-introspection.make new file mode 100644 index 000000000..e47fb0842 --- /dev/null +++ b/rules/gobject-introspection.make @@ -0,0 +1,82 @@ +# -*-makefile-*- +# +# Copyright (C) 2015 by Michael Olbrich +# +# See CREDITS for details about who has contributed to this project. +# +# For further information about the PTXdist project and license conditions +# see the README file. +# + +# +# We provide this package +# +PACKAGES-$(PTXCONF_GOBJECT_INTROSPECTION) += gobject-introspection + +# +# Paths and names +# +GOBJECT_INTROSPECTION_VERSION := 1.46.0 +GOBJECT_INTROSPECTION_MD5 := adb40a31c7c80b65b0f4c8fd71b493dc +GOBJECT_INTROSPECTION := gobject-introspection-$(GOBJECT_INTROSPECTION_VERSION) +GOBJECT_INTROSPECTION_SUFFIX := tar.xz +GOBJECT_INTROSPECTION_URL := http://ftp.gnome.org/pub/GNOME/sources/gobject-introspection/$(basename $(GOBJECT_INTROSPECTION_VERSION))/$(GOBJECT_INTROSPECTION).$(GOBJECT_INTROSPECTION_SUFFIX) +GOBJECT_INTROSPECTION_SOURCE := $(SRCDIR)/$(GOBJECT_INTROSPECTION).$(GOBJECT_INTROSPECTION_SUFFIX) +GOBJECT_INTROSPECTION_DIR := $(BUILDDIR)/$(GOBJECT_INTROSPECTION) +GOBJECT_INTROSPECTION_LICENSE := LGPL-2.1+ AND GPL-2.0+ + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +# +# autoconf +# +GOBJECT_INTROSPECTION_CONF_TOOL := autoconf +GOBJECT_INTROSPECTION_CONF_OPT := \ + $(CROSS_AUTOCONF_USR) \ + --disable-gtk-doc \ + --disable-gtk-doc-html \ + --disable-gtk-doc-pdf \ + --disable-doctool \ + --enable-host-gi \ + --enable-gi-cross-wrapper=$(PTXDIST_SYSROOT_CROSS)/bin/qemu-cross \ + --without-cairo + +# needed so g-ir-compiler runs in qemu +GOBJECT_INTROSPECTION_LDFLAGS := -Wl,-rpath,$(GOBJECT_INTROSPECTION_DIR)/.libs + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gobject-introspection.install.post: + @$(call targetinfo) + @$(call world/install.post, GOBJECT_INTROSPECTION) + @sed -i 's;bindir=.*;bindir=$(PTXDIST_SYSROOT_CROSS)/bin;' \ + $(SYSROOT)/usr/lib/pkgconfig/gobject-introspection-1.0.pc + @$(call touch) + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/gobject-introspection.targetinstall: + @$(call targetinfo) + + @$(call install_init, gobject-introspection) + @$(call install_fixup, gobject-introspection,PRIORITY,optional) + @$(call install_fixup, gobject-introspection,SECTION,base) + @$(call install_fixup, gobject-introspection,AUTHOR,"Michael Olbrich ") + @$(call install_fixup, gobject-introspection,DESCRIPTION,missing) + + @$(call install_lib, gobject-introspection, 0, 0, 0644, \ + libgirepository-1.0) + @$(call install_tree, gobject-introspection, 0, 0, -, \ + /usr/lib/girepository-1.0) + + @$(call install_finish, gobject-introspection) + + @$(call touch) + +# vim: syntax=make -- cgit v1.2.3