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)"
32 GIT_REPO
= https
://github.com
/OpenIndiana
/openindiana-welcome
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
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
68 touch config.rpath src
/config.h.in
&&\
69 PATH
="$(PATH)" libtoolize
--force &&\
71 intltoolize
--copy
--force --automake
&&\
72 automake
--add-missing
-f
-i
&&\
74 touch
$(SOURCE_DIR
)/.prep
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