David Stes
2024-03-31 8cdd197ba643eb2608c5aab87567625bb9336cee
commit | author | age
249bc0 1 #
MT 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
5 # 1.0 of the CDDL.
6 #
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.
10 #
11
12 #
13 # Copyright 2024 Marcel Telka
14 #
15
16 BUILD_STYLE=justmake
17 include ../../../make-rules/shared-macros.mk
18
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
31
32 #TEST_TARGET=$(NO_TESTS) # if no testsuite enabled
33 include $(WS_MAKE_RULES)/common.mk
34
35 # GNU diff is needed to run tests
36 PATH = $(PATH.gnu)
37
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 ;
40
41 # Install to /usr/gnu so we do not clash with illumos unifdef
42 COMPONENT_INSTALL_ARGS += prefix=$(GNUDIR)
43
44 # Use non-default test target
45 COMPONENT_TEST_TARGETS = test
46
47 # Auto-generated dependencies
48 REQUIRED_PACKAGES += shell/ksh93
49 REQUIRED_PACKAGES += system/library