buildroot/package/gcr/gcr.mk
Fabrice Fontaine a905ccf8c0 package/gcr: gobject-introspection needs xsltproc
Build of gcr with gobject-introspection needs host-libxslt otherwise
build will fail on:

  XSLTPROC Gcr-3.gir
/bin/bash: xsltproc: command not found
Makefile:6878: recipe for target 'Gcr-3.gir' failed

Fixes:
 - http://autobuild.buildroot.org/results/c08efff174d4773074e6cf3374228b48e057917b

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020-04-28 07:43:32 +02:00

42 lines
1.1 KiB
Makefile

################################################################################
#
# gcr
#
################################################################################
GCR_VERSION_MAJOR = 3.34
GCR_VERSION = $(GCR_VERSION_MAJOR).0
GCR_SITE = http://ftp.acc.umu.se/pub/gnome/sources/gcr/$(GCR_VERSION_MAJOR)
GCR_SOURCE = gcr-$(GCR_VERSION).tar.xz
GCR_DEPENDENCIES = \
host-pkgconf \
libgcrypt \
libglib2 \
p11-kit \
$(TARGET_NLS_DEPENDENCIES)
GCR_INSTALL_STAGING = YES
GCR_CONF_ENV = ac_cv_path_GNUPG=/usr/bin/gpg2
GCR_CONF_OPTS = \
--disable-gtk-doc \
--with-libgcrypt-prefix=$(STAGING_DIR)/usr
# Even though COPYING is v2 the code states v2.1+
GCR_LICENSE = LGPL-2.1+
GCR_LICENSE_FILES = COPYING
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
GCR_DEPENDENCIES += gobject-introspection host-libxslt
GCR_CONF_OPTS += --with-introspection
else
GCR_CONF_OPTS += --without-introspection
endif
# Only the X11 backend is supported for the simple GUI
ifeq ($(BR2_PACKAGE_LIBGTK3_X11),y)
GCR_DEPENDENCIES += libgtk3
GCR_CONF_OPTS += --with-gtk
else
GCR_CONF_OPTS += --without-gtk
endif
$(eval $(autotools-package))