2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"), version 1.0.
4 # You may only use this file in accordance with the terms of version
7 # A full copy of the text of the CDDL should have accompanied this
8 # source. A copy of the CDDL is also available via the Internet at
9 # http://www.illumos.org/license/CDDL.
13 # Copyright 2024 Marcel Telka
17 include ..
/..
/..
/make-rules
/shared-macros.mk
19 COMPONENT_NAME
= unifdef
20 COMPONENT_VERSION
= 2.12
21 COMPONENT_SUMMARY
= Remove preprocessor conditionals from code
22 COMPONENT_PROJECT_URL
= https
://dotat.at
/prog
/unifdef
/
23 COMPONENT_FMRI
= developer
/unifdef
24 COMPONENT_CLASSIFICATION
= Development
/C
25 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
26 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.xz
27 COMPONENT_ARCHIVE_URL
= $(COMPONENT_PROJECT_URL
)$(COMPONENT_SRC
).
tar.xz
28 COMPONENT_ARCHIVE_HASH
= sha256
:43ce0f02ecdcdc723b2475575563ddb192e988c886d368260bc0a63aee3ac400
29 COMPONENT_LICENSE
= BSD-3-Clause
30 COMPONENT_LICENSE_FILE
= COPYING
32 #TEST_TARGET=$(NO_TESTS) # if no testsuite enabled
33 include $(WS_MAKE_RULES
)/common.mk
35 # GNU diff is needed to run tests
38 # Replace cc with full path to out compiler (gcc)
39 COMPONENT_POST_UNPACK_ACTION
+= $(GSED
) -i
-e
's|cc|$(CC)|' $(COMPONENT_SRC
)/unifdefall.sh
;
41 # Install to /usr/gnu so we do not clash with illumos unifdef
42 COMPONENT_INSTALL_ARGS
+= prefix=$(GNUDIR
)
44 # Use non-default test target
45 COMPONENT_TEST_TARGETS
= test
47 # Auto-generated dependencies
48 REQUIRED_PACKAGES
+= shell/ksh93
49 REQUIRED_PACKAGES
+= system
/library