Obsolete golang-120
[oi-userland.git] / components / developer / uncrustify / Makefile
blob886f56b0c192560fc73293fa318fe558a442386f
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 2018 Jason Martin
13 # Copyright 2023 Niklas Poslovski
16 BUILD_STYLE= cmake
17 include ../../../make-rules/shared-macros.mk
19 COMPONENT_NAME= uncrustify
20 COMPONENT_VERSION= 0.77.1
21 COMPONENT_REVISION= 1
22 COMPONENT_SUMMARY= source code beautifier
23 COMPONENT_PROJECT_URL= https://uncrustify.sourceforge.net/
24 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
25 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz
26 COMPONENT_ARCHIVE_URL= https://sourceforge.net/projects/$(COMPONENT_NAME)/files/uncrustify-077.1/$(COMPONENT_ARCHIVE)/download
27 COMPONENT_ARCHIVE_HASH= sha256:939d50c8206a5e016a09947d51bb64b8a4275d89181efc484f44d5e5c3e66666
28 COMPONENT_FMRI= developer/$(COMPONENT_NAME)
29 COMPONENT_CLASSIFICATION=Development/Source Code Management
30 COMPONENT_LICENSE= GPLv2
31 COMPONENT_LICENSE_FILE= COPYING
33 include $(WS_MAKE_RULES)/common.mk
35 PATH= $(PATH.gnu)
37 COMPONENT_POST_INSTALL_ACTION= $(MKDIR) -p $(PROTO_DIR)/usr/share/doc/uncrustify && \
38 $(CP) -r $(SOURCE_DIR)/documentation/htdocs $(PROTO_DIR)/usr/share/doc/uncrustify
40 COMPONENT_TEST_ENV += CC=$(CC)
41 COMPONENT_TEST_TRANSFORMS += \
42 '-ne "/tests passed,/p" '
44 # Auto-generated dependencies
45 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
46 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
47 REQUIRED_PACKAGES += system/library