2009-04-29 09:21:02 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# shared-mime-info
|
|
|
|
#
|
|
|
|
#############################################################
|
|
|
|
SHARED_MIME_INFO_VERSION = 0.60
|
|
|
|
SHARED_MIME_INFO_SOURCE = shared-mime-info-$(SHARED_MIME_INFO_VERSION).tar.bz2
|
|
|
|
SHARED_MIME_INFO_SITE = http://freedesktop.org/~hadess
|
|
|
|
|
|
|
|
SHARED_MIME_INFO_INSTALL_STAGING = YES
|
|
|
|
SHARED_MIME_INFO_INSTALL_TARGET = NO
|
|
|
|
|
|
|
|
SHARED_MIME_INFO_AUTORECONF = NO
|
|
|
|
SHARED_MIME_INFO_CONF_ENV = XMLLINT=$(HOST_DIR)/usr/bin/xmllint
|
2010-02-21 15:38:02 +01:00
|
|
|
SHARED_MIME_INFO_DEPENDENCIES = host-pkg-config host-libglib2 host-libxml2 host-shared-mime-info libxml2 libglib2
|
2009-04-29 09:21:02 +02:00
|
|
|
|
|
|
|
SHARED_MIME_INFO_CONF_OPT = --disable-update-mimedb
|
|
|
|
|
2009-11-03 00:10:41 +01:00
|
|
|
HOST_SHARED_MIME_INFO_DEPENDENCIES = host-pkg-config
|
|
|
|
|
|
|
|
HOST_SHARED_MIME_INFO_CONF_OPT = \
|
|
|
|
--disable-update-mimedb
|
2009-04-29 09:21:02 +02:00
|
|
|
|
2009-11-03 00:10:41 +01:00
|
|
|
$(eval $(call AUTOTARGETS,package,shared-mime-info))
|
|
|
|
$(eval $(call AUTOTARGETS,package,shared-mime-info,host))
|
2009-04-29 09:21:02 +02:00
|
|
|
|
|
|
|
# shared-mime-info for the host
|
|
|
|
SHARED_MIME_INFO_HOST_BINARY:=$(HOST_DIR)/usr/bin/update-mime-database
|
|
|
|
|
|
|
|
# update the shared-mime-info database in the target
|
2010-02-21 15:38:02 +01:00
|
|
|
$(SHARED_MIME_INFO_HOOK_POST_INSTALL):
|
2010-02-21 13:22:42 +01:00
|
|
|
$(HOST_MAKE_ENV) $(SHARED_MIME_INFO_HOST_BINARY) $(STAGING_DIR)/usr/share/mime
|
2009-04-29 09:21:02 +02:00
|
|
|
$(INSTALL) -D $(STAGING_DIR)/usr/share/mime/mime.cache $(TARGET_DIR)/usr/share/mime/mime.cache
|
2009-10-03 22:45:38 +02:00
|
|
|
touch $@
|