python/hypothesis: update to 6.121.0
[oi-userland.git] / components / text / diffutils / Makefile
blob3025100a8202aea8023ca94d285ee8fc5109772e
2 # CDDL HEADER START
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
8 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
19 # CDDL HEADER END
23 # Copyright (c) 2011, 2017, Oracle and/or its affiliates. All rights reserved.
24 # Copyright (c) 2018, Michal Nowak
25 # Copyright (c) 2021, Nona Hansel
28 BUILD_BITS= 64
29 include ../../../make-rules/shared-macros.mk
31 COMPONENT_NAME= diffutils
32 COMPONENT_VERSION= 3.10
33 COMPONENT_REVISION= 1
34 COMPONENT_SUMMARY= GNU Diffutils is a package of several programs related to finding differences between files
35 COMPONENT_PROJECT_URL= https://www.gnu.org/software/diffutils/
36 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION)
37 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
38 COMPONENT_ARCHIVE_HASH= sha256:90e5e93cc724e4ebe12ede80df1634063c7a855692685919bfe60b556c9bd09e
39 COMPONENT_ARCHIVE_URL= https://ftp.gnu.org/gnu/diffutils/$(COMPONENT_ARCHIVE)
40 COMPONENT_FMRI= text/gnu-diffutils
41 COMPONENT_CLASSIFICATION= Applications/System Utilities
42 COMPONENT_LICENSE= GPLv3, FDLv1.3
44 include $(WS_MAKE_RULES)/common.mk
46 PATH = $(PATH.gnu)
48 CFLAGS += $(CPP_LARGEFILES)
49 CPPFLAGS += $(CPP_LARGEFILES)
51 CONFIGURE_OPTIONS += --bindir=$(CONFIGURE_PREFIX)/gnu/bin
52 CONFIGURE_OPTIONS += --infodir=$(CONFIGURE_INFODIR)
54 # Tests failure
55 unexport SHELLOPTS
57 COMPONENT_TEST_DIR = $(@D)/tests
59 COMPONENT_TEST_TRANSFORMS += \
60 '-e "s|^make.*: Leaving directory.*$$|XXX_CC_XXX|g" ' \
61 '-e "s|^make.*: Entering directory.*$$|XXX_CC_XXX|g" ' \
62 '-e "s|^make.*: Nothing to be.*$$|XXX_CC_XXX|g" ' \
63 '-e "s|^/usr/gnu/bin/make.*$$|XXX_CC_XXX|g" ' \
64 '-e "/^XXX_CC_XXX$$/d" '
66 COMPONENT_SYSTEM_TEST_DIR = $(@D)/tests
67 # Note on tests: Some tests require the new version already to be installed because we have paths (eg. for diff3) hardcoded.
68 # Even setting the PATH for the tests might not work as intended:
69 COMPONENT_SYSTEM_TEST_ENV += PATH="$(PROTO_DIR)/usr/gnu/bin:$(PATH)"
71 ASLR_MODE = $(ASLR_ENABLE)
73 # Build dependencies
74 REQUIRED_PACKAGES += text/gnu-gettext
76 # Test dependency
77 TEST_REQUIRED_PACKAGES += developer/debug/valgrind
79 # Auto-generated dependencies
80 REQUIRED_PACKAGES += system/library