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 2014 Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
13 # Copyright 2019 Nona Hansel
16 BUILD_STYLE
= justmake
17 # To run tests we need real files, not symlinks
18 CLONEY_ARGS
= CLONEY_MODE
="hardlink"
20 include ..
/..
/..
/make-rules
/shared-macros.mk
22 COMPONENT_NAME
= sloccount
23 COMPONENT_VERSION
= 2.26
25 COMPONENT_PROJECT_URL
= http
://www.dwheeler.com
/sloccount
/
26 COMPONENT_FMRI
= text
/sloccount
27 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
28 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.gz
29 COMPONENT_ARCHIVE_HASH
= \
30 sha256
:fa7fa2bbf2f627dd2d0fdb958bd8ec4527231254c120a8b4322405d8a4e3d12b
31 COMPONENT_ARCHIVE_URL
= http
://www.dwheeler.com
/sloccount
/$(COMPONENT_ARCHIVE
)
32 COMPONENT_LICENSE
= GPL-2.0
-only
33 COMPONENT_LICENSE_FILE
= COPYING
34 COMPONENT_SUMMARY
= SLOCCount a set of tools for counting physical Source Lines of Code
(SLOC
)
35 COMPONENT_CLASSIFICATION
=System
/Text Tools
37 include $(WS_MAKE_RULES
)/common.mk
39 COMPONENT_BUILD_ENV
+= CC
=$(CC
)
41 COMPONENT_INSTALL_ENV
+= INSTALL
=$(INSTALL
)
42 COMPONENT_INSTALL_ENV
+= PREFIX
=$(PROTO_DIR
)/usr
44 COMPONENT_TEST_TARGETS
= test
45 COMPONENT_TEST_ENV
+= HOME
=$(@D
)
46 COMPONENT_TEST_TRANSFORMS
+= '-e "/^make\[/d"' # delete make logs
48 # Auto-generated dependencies
49 REQUIRED_PACKAGES
+= runtime
/perl
50 REQUIRED_PACKAGES
+= shell/ksh93
51 REQUIRED_PACKAGES
+= system
/library