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
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= uncrustify
20 COMPONENT_VERSION
= 0.67
22 COMPONENT_SUMMARY
= source code beautifier
23 COMPONENT_PROJECT_URL
= http
://uncrustify.sourceforge.net
/
24 COMPONENT_FMRI
= developer
/$(COMPONENT_NAME
)
25 COMPONENT_CLASSIFICATION
=Development
/Source Code Management
26 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
27 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
28 COMPONENT_ARCHIVE_URL
= https
://downloads.sourceforge.net
/project
/$(COMPONENT_NAME
)/$(COMPONENT_NAME
)/$(COMPONENT_SRC
)/$(COMPONENT_ARCHIVE
)
29 COMPONENT_ARCHIVE_HASH
= \
30 sha256
:54f15c8ebddef120522db21f38fac1dd3b0a285fbf60a8b71f9e333e96cf6ddc
31 COMPONENT_LICENSE
= GPLv2
33 include $(WS_MAKE_RULES
)/common.mk
37 UNPACK_ARGS
+=-r
$(COMPONENT_SRC
)
39 COMPONENT_POST_INSTALL_ACTION
= $(MKDIR
) -p
$(PROTO_DIR
)/usr
/share
/doc
/uncrustify
&& \
40 $(CP
) -r
$(SOURCE_DIR
)/documentation
/htdocs
$(PROTO_DIR
)/usr
/share
/doc
/uncrustify
42 COMPONENT_TEST_ENV
+= CC
=$(CC
)
43 COMPONENT_TEST_TRANSFORMS
+= \
44 '-ne "/tests passed,/p" '
46 # Auto-generated dependencies
47 REQUIRED_PACKAGES
+= $(GCC_RUNTIME_PKG
)
48 REQUIRED_PACKAGES
+= $(GXX_RUNTIME_PKG
)
49 REQUIRED_PACKAGES
+= system
/library