shared-macros.mk: simplify java settings
[oi-userland.git] / components / sysutils / chezmoi / Makefile
blob79f273cc048307a5f02050c7f1ff9672e2ada96e
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 2021 Benjamin S. Osenbach
15 BUILD_STYLE= justmake
16 include ../../../make-rules/shared-macros.mk
18 COMPONENT_NAME= chezmoi
19 COMPONENT_VERSION= 2.34.2
20 COMPONENT_SUMMARY= Manage your dotfiles across multiple diverse machines, securely.
21 COMPONENT_PROJECT_URL= https://github.com/twpayne/chezmoi
22 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
23 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
24 COMPONENT_ARCHIVE_URL= $(COMPONENT_PROJECT_URL)/archive/refs/tags/v$(COMPONENT_VERSION).tar.gz
25 COMPONENT_ARCHIVE_HASH= sha256:fc47d6e4cbe1b8f4762c204be28e30d9e9f3bcfa8c51ac276cbd1864804b2dc8
26 COMPONENT_FMRI= application/$(COMPONENT_NAME)
27 COMPONENT_CLASSIFICATION= Applications/System Utilities
28 COMPONENT_LICENSE= MIT
29 COMPONENT_LICENSE_FILE= LICENSE
31 TEST_TARGET= $(NO_TESTS)
32 include $(WS_MAKE_RULES)/common.mk
34 DATE=$(shell date -u +%Y-%m-%d-T%TZ)
36 COMPONENT_BUILD_ENV += GOOS="illumos"
37 COMPONENT_BUILD_ENV += GOPATH="$(SOURCE_DIR)/gopath"
38 COMPONENT_BUILD_ENV += PREFIX=/usr
39 COMPONENT_BUILD_ENV += VERSION="v$(COMPONENT_VERSION)"
40 COMPONENT_BUILD_ENV += DATE="'$(DATE)'"
41 COMPONENT_BUILD_ENV += BUILT_BY="oi-userland"
43 COMPONENT_INSTALL_ENV += GOOS="illumos"
44 COMPONENT_INSTALL_ENV += GOPATH="$(SOURCE_DIR)/gopath"
45 COMPONENT_INSTALL_ENV += PREFIX=/usr
46 COMPONENT_INSTALL_ENV += VERSION="v$(COMPONENT_VERSION)"
47 COMPONENT_INSTALL_ENV += DATE="'$(DATE)'"
48 COMPONENT_INSTALL_ENV += BUILT_BY="oi-userland"
50 # Go doesn't like symbolic links, so copy the source directory
51 COMPONENT_COPY_ACTION= ( cp -rL $(SOURCE_DIR)/* $(@D) )
53 # Upstream Makefile doesn't create PROTO_DIR
54 COMPONENT_PRE_BUILD_ACTION= ( install -d "$(PROTO_DIR)/usr/bin" )
56 # Build dependencies
57 REQUIRED_PACKAGES+=developer/golang
58 REQUIRED_PACKAGES+=developer/versioning/git
60 # Auto-generated dependencies
61 REQUIRED_PACKAGES += system/library