desktop-file-utils: update to 0.28
[oi-userland.git] / components / desktop / lightdm-gtk-greeter / Makefile
blob37f1c33661f88cbf567005a0f3d6a51b6859e387
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
5 # 1.0 of the CDDL.
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2016 Alexander Pyhalov
14 # Copyright 2020 Michal Nowak
17 BUILD_BITS= 64
18 include ../../../make-rules/shared-macros.mk
20 COMPONENT_NAME= lightdm-gtk-greeter
21 COMPONENT_MJR_VERSION= 2.0
22 COMPONENT_VERSION= $(COMPONENT_MJR_VERSION).7
23 COMPONENT_REVISION= 2
24 COMPONENT_SUMMARY= LightDM GTK+ Greeter
25 COMPONENT_PROJECT_URL= https://launchpad.net/lightdm-gtk-greeter
26 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
27 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
28 COMPONENT_ARCHIVE_HASH= sha256:bae293f21286e93113ee7965a3a8734bbee6b94f3c74d8723dcae13dda60fcbc
29 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/$(COMPONENT_MJR_VERSION)/$(COMPONENT_VERSION)/+download/$(COMPONENT_ARCHIVE)
30 COMPONENT_FMRI= system/display-manager/lightdm/gtk-greeter
31 COMPONENT_CLASSIFICATION= Desktop (GNOME)/Sessions
32 COMPONENT_LICENSE= GPLv3
33 COMPONENT_LICENSE_FILE= COPYING
35 EXO_COMMIT=accb025add4338618ea66f5dab67f51965e216f0
36 COMPONENT_ARCHIVE_1= exo-csource.c
37 COMPONENT_ARCHIVE_URL_1= https://github.com/xfce-mirror/exo/raw/$(EXO_COMMIT)/exo-csource/main.c
38 COMPONENT_ARCHIVE_HASH_1= sha256:1942f5c2e649c83ad5739af7bb0de90bd9b874e9c5f300ff4551f9e8628a74aa
40 TEST_TARGET= $(NO_TESTS)
41 include $(WS_MAKE_RULES)/common.mk
43 # We need exo-csource to regenerate headers from glade file,
44 # but we do not want to build all exo XFCE dependencies,
45 # so download and build local copy.
46 EXO_CSOURCE_CFLAGS += -DHAVE_LOCALE_H -DHAVE_LIBINTL_H -DHAVE_STDLIB_H -DHAVE_LOCALE_H -DGETTEXT_PACKAGE=\"exo-csource\"
47 EXO_CSOURCE_CFLAGS += -DPACKAGE_LOCALE_DIR=\"/usr/share/locale/\" -DPACKAGE_VERSION=\"0.10.7\"
48 EXO_CSOURCE_CFLAGS += -D PACKAGE_TARNAME=\"unspecified\" -DPACKAGE_BUGREPORT=\"no\"
49 EXO_CSOURCE_CFLAGS += $(CC_BITS) $(shell pkg-config --cflags glib-2.0)
50 EXO_CSOURCE_LDFLAGS += $(CC_BITS) $(shell pkg-config --libs glib-2.0)
52 PATH= $(PATH.gnu):$(BUILD_DIR)/exo-csource
54 $(BUILD_DIR)/exo-csource/exo-csource: $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE_1)
55 $(MKDIR) $(@D)
56 $(CC) $(EXO_CSOURCE_CFLAGS) $(EXO_CSOURCE_LDFLAGS) $(USERLAND_ARCHIVES)$(COMPONENT_ARCHIVE_1) -o $@
58 $(SOURCE_DIR)/.prep: $(BUILD_DIR)/exo-csource/exo-csource
60 COMPONENT_PREP_ACTION = (cd $(@D) && PATH="$(PATH)" autoreconf -fi)
62 CONFIGURE_OPTIONS += --sysconfdir=/etc
63 CONFIGURE_OPTIONS += --localstatedir=/var
64 CONFIGURE_OPTIONS += --libexecdir=$(USRLIBEXECDIR)
65 CONFIGURE_OPTIONS += --disable-indicator-services-command
66 CONFIGURE_OPTIONS += --disable-at-spi-command
67 CONFIGURE_OPTIONS += --enable-maintainer-mode
69 CONFIGURE_ENV += XGETTEXT=/usr/gnu/bin/xgettext
71 # gobject-introspection
72 COMPONENT_BUILD_ENV += CC="$(CC)"
73 COMPONENT_BUILD_ENV += CFLAGS="$(CFLAGS)"
75 # Auto-generated dependencies
76 REQUIRED_PACKAGES += library/desktop/cairo
77 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
78 REQUIRED_PACKAGES += library/desktop/gtk3
79 REQUIRED_PACKAGES += library/glib2
80 REQUIRED_PACKAGES += system/display-manager/lightdm
81 REQUIRED_PACKAGES += system/library
82 REQUIRED_PACKAGES += system/library/math
83 REQUIRED_PACKAGES += x11/library/libx11