xref: /OK3568_Linux_fs/buildroot/package/libostree/libostree.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun################################################################################
2*4882a593Smuzhiyun#
3*4882a593Smuzhiyun# libostree
4*4882a593Smuzhiyun#
5*4882a593Smuzhiyun################################################################################
6*4882a593Smuzhiyun
7*4882a593SmuzhiyunLIBOSTREE_VERSION = 2021.5
8*4882a593SmuzhiyunLIBOSTREE_SOURCE = libostree-$(LIBOSTREE_VERSION).tar.xz
9*4882a593SmuzhiyunLIBOSTREE_SITE = https://github.com/ostreedev/ostree/releases/download/v$(LIBOSTREE_VERSION)
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunLIBOSTREE_LICENSE = LGPL-2.0+
12*4882a593SmuzhiyunLIBOSTREE_LICENSE_FILES = COPYING
13*4882a593SmuzhiyunLIBOSTREE_DEPENDENCIES = e2fsprogs host-bison host-pkgconf libglib2 libgpg-error libgpgme xz
14*4882a593SmuzhiyunLIBOSTREE_INSTALL_STAGING = YES
15*4882a593Smuzhiyun
16*4882a593SmuzhiyunLIBOSTREE_CONF_ENV = \
17*4882a593Smuzhiyun	GPG_ERROR_CONFIG=$(STAGING_DIR)/usr/bin/gpg-error-config
18*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += \
19*4882a593Smuzhiyun	--with-gpgme-prefix=$(STAGING_DIR)/usr \
20*4882a593Smuzhiyun	--disable-gtk-doc \
21*4882a593Smuzhiyun	--disable-gtk-doc-html \
22*4882a593Smuzhiyun	--disable-gtk-doc-pdf \
23*4882a593Smuzhiyun	--disable-man
24*4882a593Smuzhiyun
25*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_GOBJECT_INTROSPECTION),y)
26*4882a593SmuzhiyunLIBOSTREE_DEPENDENCIES += gobject-introspection
27*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --enable-introspection
28*4882a593SmuzhiyunLIBOSTREE_MAKE_OPTS = INTROSPECTION_SCANNER_ENV=
29*4882a593Smuzhiyunelse
30*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --disable-introspection
31*4882a593Smuzhiyunendif
32*4882a593Smuzhiyun
33*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_OPENSSL),y)
34*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --with-openssl
35*4882a593SmuzhiyunLIBOSTREE_DEPENDENCIES += openssl
36*4882a593Smuzhiyunelse
37*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --without-openssl
38*4882a593Smuzhiyunendif
39*4882a593Smuzhiyun
40*4882a593Smuzhiyun# Avahi support needs libavahi-client, which is built by avahi if avahi-daemon
41*4882a593Smuzhiyun# and dbus is selected. Since there is no BR2_PACKAGE_LIBAVAHI_CLIENT config
42*4882a593Smuzhiyun# option yet, use the avahi-daemon and dbus config symbols to check for
43*4882a593Smuzhiyun# libavahi-client.
44*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yy)
45*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --with-avahi
46*4882a593SmuzhiyunLIBOSTREE_DEPENDENCIES += avahi
47*4882a593Smuzhiyunelse
48*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --without-avahi
49*4882a593Smuzhiyunendif
50*4882a593Smuzhiyun
51*4882a593Smuzhiyun#cURL support depends on libsoup
52*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBSOUP),y)
53*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --with-soup
54*4882a593SmuzhiyunLIBOSTREE_DEPENDENCIES += libsoup
55*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBCURL),y)
56*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --with-curl
57*4882a593SmuzhiyunLIBOSTREE_DEPENDENCIES += libcurl
58*4882a593Smuzhiyunelse
59*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --without-curl
60*4882a593Smuzhiyunendif
61*4882a593Smuzhiyunelse
62*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --without-soup --without-curl
63*4882a593Smuzhiyunendif
64*4882a593Smuzhiyun
65*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
66*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --with-libarchive
67*4882a593SmuzhiyunLIBOSTREE_DEPENDENCIES += libarchive
68*4882a593Smuzhiyunelse
69*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --without-libarchive
70*4882a593Smuzhiyunendif
71*4882a593Smuzhiyun
72*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBFUSE),y)
73*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --enable-rofiles-fuse
74*4882a593SmuzhiyunLIBOSTREE_DEPENDENCIES += libfuse
75*4882a593Smuzhiyunelse
76*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --disable-rofiles-fuse
77*4882a593Smuzhiyunendif
78*4882a593Smuzhiyun
79*4882a593Smuzhiyunifeq ($(BR2_PACKAGE_LIBSELINUX),y)
80*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --with-selinux
81*4882a593SmuzhiyunLIBOSTREE_DEPENDENCIES += libselinux
82*4882a593Smuzhiyunelse
83*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --without-selinux
84*4882a593Smuzhiyunendif
85*4882a593Smuzhiyun
86*4882a593Smuzhiyunifeq ($(BR2_INIT_SYSTEMD),y)
87*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += \
88*4882a593Smuzhiyun	--with-libsystemd \
89*4882a593Smuzhiyun	--with-systemdsystemunitdir=/usr/lib/systemd/system
90*4882a593SmuzhiyunLIBOSTREE_DEPENDENCIES += systemd
91*4882a593Smuzhiyunelse
92*4882a593SmuzhiyunLIBOSTREE_CONF_OPTS += --without-libsystemd
93*4882a593Smuzhiyunendif
94*4882a593Smuzhiyun
95*4882a593Smuzhiyun$(eval $(autotools-package))
96