2017-11-12 22:06:09 +01:00
|
|
|
################################################################################
|
|
|
|
#
|
|
|
|
# libostree
|
|
|
|
#
|
|
|
|
################################################################################
|
|
|
|
|
2021-07-20 09:17:57 +02:00
|
|
|
LIBOSTREE_VERSION = 2021.3
|
2017-11-12 22:06:09 +01:00
|
|
|
LIBOSTREE_SOURCE = libostree-$(LIBOSTREE_VERSION).tar.xz
|
2020-03-23 14:28:09 +01:00
|
|
|
LIBOSTREE_SITE = https://github.com/ostreedev/ostree/releases/download/v$(LIBOSTREE_VERSION)
|
2017-11-12 22:06:09 +01:00
|
|
|
|
2017-12-07 13:03:13 +01:00
|
|
|
LIBOSTREE_LICENSE = LGPL-2.0+
|
2017-11-12 22:06:09 +01:00
|
|
|
LIBOSTREE_LICENSE_FILES = COPYING
|
2021-02-09 21:07:57 +01:00
|
|
|
LIBOSTREE_DEPENDENCIES = e2fsprogs host-bison host-pkgconf libglib2 libgpg-error libgpgme xz
|
2017-12-07 13:03:42 +01:00
|
|
|
LIBOSTREE_INSTALL_STAGING = YES
|
2017-11-12 22:06:09 +01:00
|
|
|
|
2018-07-27 21:40:32 +02:00
|
|
|
LIBOSTREE_CONF_ENV = \
|
|
|
|
GPG_ERROR_CONFIG=$(STAGING_DIR)/usr/bin/gpg-error-config
|
2017-12-02 08:58:49 +01:00
|
|
|
LIBOSTREE_CONF_OPTS += \
|
|
|
|
--with-gpgme-prefix=$(STAGING_DIR)/usr \
|
|
|
|
--disable-gtk-doc \
|
|
|
|
--disable-gtk-doc-html \
|
|
|
|
--disable-gtk-doc-pdf \
|
|
|
|
--disable-man
|
2017-11-12 22:06:09 +01:00
|
|
|
|
2020-03-22 10:28:54 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
|
|
|
|
LIBOSTREE_DEPENDENCIES += gobject-introspection
|
|
|
|
LIBOSTREE_CONF_OPTS += --enable-introspection
|
|
|
|
LIBOSTREE_MAKE_OPTS = INTROSPECTION_SCANNER_ENV=
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --disable-introspection
|
|
|
|
endif
|
|
|
|
|
2017-11-12 22:06:09 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
|
|
LIBOSTREE_CONF_OPTS += --with-openssl
|
|
|
|
LIBOSTREE_DEPENDENCIES += openssl
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-openssl
|
|
|
|
endif
|
|
|
|
|
2017-12-22 00:19:32 +01:00
|
|
|
# Avahi support needs libavahi-client, which is built by avahi if avahi-daemon
|
|
|
|
# and dbus is selected. Since there is no BR2_PACKAGE_LIBAVAHI_CLIENT config
|
|
|
|
# option yet, use the avahi-daemon and dbus config symbols to check for
|
|
|
|
# libavahi-client.
|
|
|
|
ifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
|
2017-11-12 22:06:09 +01:00
|
|
|
LIBOSTREE_CONF_OPTS += --with-avahi
|
|
|
|
LIBOSTREE_DEPENDENCIES += avahi
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-avahi
|
|
|
|
endif
|
|
|
|
|
|
|
|
#cURL support depends on libsoup
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSOUP),y)
|
2018-06-29 10:13:00 +02:00
|
|
|
LIBOSTREE_CONF_OPTS += --with-soup
|
2017-11-12 22:06:09 +01:00
|
|
|
LIBOSTREE_DEPENDENCIES += libsoup
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBCURL),y)
|
|
|
|
LIBOSTREE_CONF_OPTS += --with-curl
|
|
|
|
LIBOSTREE_DEPENDENCIES += libcurl
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-curl
|
|
|
|
endif
|
|
|
|
else
|
2018-06-29 10:13:00 +02:00
|
|
|
LIBOSTREE_CONF_OPTS += --without-soup --without-curl
|
2017-11-12 22:06:09 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
|
|
|
|
LIBOSTREE_CONF_OPTS += --with-libarchive
|
|
|
|
LIBOSTREE_DEPENDENCIES += libarchive
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-libarchive
|
|
|
|
endif
|
|
|
|
|
2021-02-09 21:07:57 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBFUSE),y)
|
|
|
|
LIBOSTREE_CONF_OPTS += --enable-rofiles-fuse
|
|
|
|
LIBOSTREE_DEPENDENCIES += libfuse
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --disable-rofiles-fuse
|
|
|
|
endif
|
|
|
|
|
2017-11-12 22:06:09 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSELINUX),y)
|
|
|
|
LIBOSTREE_CONF_OPTS += --with-selinux
|
|
|
|
LIBOSTREE_DEPENDENCIES += libselinux
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-selinux
|
|
|
|
endif
|
|
|
|
|
2018-11-20 22:48:23 +01:00
|
|
|
ifeq ($(BR2_INIT_SYSTEMD),y)
|
|
|
|
LIBOSTREE_CONF_OPTS += \
|
|
|
|
--with-libsystemd \
|
|
|
|
--with-systemdsystemunitdir=/usr/lib/systemd/system
|
|
|
|
LIBOSTREE_DEPENDENCIES += systemd
|
|
|
|
else
|
|
|
|
LIBOSTREE_CONF_OPTS += --without-libsystemd
|
|
|
|
endif
|
|
|
|
|
2017-11-12 22:06:09 +01:00
|
|
|
$(eval $(autotools-package))
|