kumquat-buildroot/package/shared-mime-info/shared-mime-info.mk
Thomas Petazzoni 565c6533ea shared-mime-info: need autoreconf
0001-Remove-incorrect-dependency-from-install-data-hook.patch is
patching Makefile.am, so we need to autoreconf. If we don't do this,
we get build failures such as:

configure.ac:3: error: version mismatch.  This is Automake 1.15.1,
configure.ac:3: but the definition used by this AM_INIT_AUTOMAKE
configure.ac:3: comes from Automake 1.15.  You should recreate
configure.ac:3: aclocal.m4 with aclocal and run automake again.
WARNING: 'automake-1.15' is probably too old.
         You should only need it if you modified 'Makefile.am' or
         'configure.ac' or m4 files included by 'configure.ac'.

Fixes:

  http://autobuild.buildroot.net/results/440c9edd34d56d9207b9f1ee326a14a1c757b27d/

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
2017-10-18 22:23:56 +02:00

37 lines
1.3 KiB
Makefile

################################################################################
#
# shared-mime-info
#
################################################################################
SHARED_MIME_INFO_VERSION = 1.8
SHARED_MIME_INFO_SOURCE = shared-mime-info-$(SHARED_MIME_INFO_VERSION).tar.xz
SHARED_MIME_INFO_SITE = https://people.freedesktop.org/~hadess
SHARED_MIME_INFO_INSTALL_STAGING = YES
# 0001-Remove-incorrect-dependency-from-install-data-hook.patch
SHARED_MIME_INFO_AUTORECONF = YES
SHARED_MIME_INFO_CONF_ENV = XMLLINT=$(HOST_DIR)/bin/xmllint
SHARED_MIME_INFO_DEPENDENCIES = host-shared-mime-info libxml2 libglib2
SHARED_MIME_INFO_CONF_OPTS = \
--disable-update-mimedb \
--disable-default-make-check
HOST_SHARED_MIME_INFO_CONF_OPTS = \
--disable-update-mimedb \
--disable-default-make-check
SHARED_MIME_INFO_LICENSE = GPL-2.0
SHARED_MIME_INFO_LICENSE_FILES = COPYING
HOST_SHARED_MIME_INFO_DEPENDENCIES = \
host-pkgconf host-intltool host-libxml2 host-libglib2
define SHARED_MIME_INFO_INSTALL_TARGET_CMDS
$(HOST_MAKE_ENV) $(SHARED_MIME_INFO_HOST_BINARY) $(STAGING_DIR)/usr/share/mime
$(INSTALL) -D $(STAGING_DIR)/usr/share/mime/mime.cache $(TARGET_DIR)/usr/share/mime/mime.cache
endef
$(eval $(autotools-package))
$(eval $(host-autotools-package))
# shared-mime-info for the host
SHARED_MIME_INFO_HOST_BINARY = $(HOST_DIR)/bin/update-mime-database