fastfetch: update to 2.30.1
[oi-userland.git] / components / openindiana / openindiana-welcome / Makefile
blob8aee6bef32069f7126414b1eaa492eba3e682bf8
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL)". You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2013 Adam Stevko. All rights reserved.
13 # Copyright 2016 Alexander Pyhalov
14 # Copyright 2018 Michal Nowak
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= openindiana-welcome
20 COMPONENT_SRC= $(COMPONENT_NAME)
21 COMPONENT_VERSION= 1.0
22 COMPONENT_REVISION= $(shell cd $(COMPONENT_SRC); git rev-list HEAD --count)
23 COMPONENT_LICENSE= GPLv2
24 COMPONENT_LICENSE_FILE= COPYING
25 COMPONENT_SUMMARY= OpenIndiana Welcome Document
26 COMPONENT_FMRI= release/os-welcome
27 COMPONENT_CLASSIFICATION= System/Text Tools
29 PKG_MACROS+= GIT_REPO="$(GIT_REPO)"
31 GIT= git
32 GIT_REPO= https://github.com/OpenIndiana/openindiana-welcome
33 GIT_BRANCH= master
34 GIT_CHANGESET= HEAD
36 PATH=$(PATH.gnu)
38 COMPONENT_PREP_GIT=no
39 include $(WS_TOP)/make-rules/prep.mk
40 include $(WS_TOP)/make-rules/configure.mk
42 CONFIGURE_ENV += PYTHON=$(PYTHON)
44 # The ugly hack with update-publish target is necessary to update
45 # source from git repository on each "gmake publish".
46 # publish: target should appear before inclusion of ips.mk
47 publish: update-publish
49 include $(WS_TOP)/make-rules/ips.mk
51 $(SOURCE_DIR)/.downloaded: $(ARCHIVES:%=$(USERLAND_ARCHIVES)%)
52 @[ -d $(SOURCE_DIR) ] || \
53 $(GIT) clone -b $(GIT_BRANCH) $(GIT_REPO) $(SOURCE_DIR)
54 @cd $(SOURCE_DIR) ; $(GIT) checkout $(GIT_BRANCH) ; $(GIT) pull \
55 $(GIT_REPO) ; $(GIT) log -1 --format=%H > .downloaded
57 update-publish:
58 @[ -d $(SOURCE_DIR) ] || \
59 $(GIT) clone -b $(GIT_BRANCH) $(GIT_REPO) $(SOURCE_DIR)
60 cd $(SOURCE_DIR) ; $(GIT) pull $(GIT_REPO) ; \
61 [ "$$($(GIT) log -1 --format=%H)" == "$$(cat .downloaded)" ] || \
62 ( $(GIT) log -1 --format=%H > .downloaded && $(MAKE) -C $$OLDPWD publish )
64 COMPONENT_BUILD_TARGETS = all
66 $(SOURCE_DIR)/.prep: $(SOURCE_DIR)/.downloaded Makefile
67 cd $(@D) &&\
68 touch config.rpath src/config.h.in&&\
69 PATH="$(PATH)" libtoolize --force &&\
70 aclocal -Im4 &&\
71 intltoolize --copy --force --automake &&\
72 automake --add-missing -f -i &&\
73 autoconf -f
74 touch $(SOURCE_DIR)/.prep
76 build: $(BUILD_64)
78 install: $(INSTALL_64)
80 download:: $(SOURCE_DIR)/.downloaded
82 # Auto-generated dependencies
83 PYTHON_REQUIRED_PACKAGES += library/python/pygobject-3
84 PYTHON_REQUIRED_PACKAGES += runtime/python