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]
23 # Copyright (c) 2015-2017 Aurelien Larcher. All rights reserved.
24 # Copyright (c) 2019 Michal Nowak
25 # Copyright (c) 2021 David Stes
26 # Copyright (c) 2022 Friedrich Kink
31 include ..
/..
/..
/make-rules
/shared-macros.mk
33 COMPONENT_NAME
= valgrind
34 COMPONENT_VERSION
= 3.19.0
35 COMPONENT_FMRI
= developer
/debug
/valgrind
36 COMPONENT_CLASSIFICATION
=Development
/System
37 COMPONENT_SRC
= $(COMPONENT_NAME
)-$(COMPONENT_VERSION
)
38 COMPONENT_ARCHIVE
= $(COMPONENT_SRC
).
tar.bz2
39 COMPONENT_ARCHIVE_HASH
= sha256
:dd5e34486f1a483ff7be7300cc16b4d6b24690987877c3278d797534d6738f02
40 COMPONENT_ARCHIVE_URL
= https
://sourceware.org
/pub
/valgrind
/$(COMPONENT_ARCHIVE
)
41 COMPONENT_PROJECT_URL
= https
://valgrind.org
42 COMPONENT_SUMMARY
= Valgrind
: instrumentation framework and tools to detect memory and threading problems
43 COMPONENT_LICENSE
= GPLv2
44 COMPONENT_LICENSE_FILE
= COPYING
46 include $(WS_MAKE_RULES
)/common.mk
51 COMPONENT_PRE_CONFIGURE_ACTION
= \
52 ( $(CLONEY
) $(SOURCE_DIR
) $(@D
) )
54 # Force use of GCC with given arch support
55 CC
=$(CC.gcc.
$(BITS
)) $(CC_BITS
) -std
=gnu99
56 CXX
=$(CC.g
++.
$(BITS
)) $(CC_BITS
)
58 # Flags are inferred from CC and tests rely on sigaction
59 CFLAGS
= -D__EXTENSIONS__
60 CXXFLAGS
= -D__EXTENSIONS__
63 CONFIGURE_DEFAULT_DIRS
=no
64 CONFIGURE_OPTIONS
+= --mandir=$(CONFIGURE_MANDIR
)
65 CONFIGURE_OPTIONS
+= --bindir=$(USRBINDIR
)
66 CONFIGURE_OPTIONS
+= --sbindir
=$(USRSBINDIR
)
67 CONFIGURE_OPTIONS
+= --libdir=$(CONFIGURE_LIBDIR.
$(BITS
))
68 CONFIGURE_OPTIONS
+= --libexecdir
=$(CONFIGURE_LIBDIR.
$(BITS
))
70 COMPONENT_PREP_ACTION
+= ( cd
$(@D
) && .
/autogen.sh
)
72 # config.h is generated in the build directory while it is assumed to live in the source dir
73 COMPONENT_POST_CONFIGURE_ACTION
+= ( cp
$(@D
)/config.h
$(SOURCE_DIR
) )
75 COMPONENT_POST_BUILD_ACTION
+= \
76 ( cd
$(@D
)/docs
&& $(ENV
) $(GMAKE
) man-pages
)
80 # == 787 tests, 95 stderr failures, 18 stdout failures, 3 stderrB failures, 6 stdoutB failures, 7 post failures ==
82 COMPONENT_TEST_TARGETS
= regtest
83 # check just overal test results
84 COMPONENT_TEST_TRANSFORMS
+= '-n -e "/^== /p"'
87 # Auto-generated dependencies
88 REQUIRED_PACKAGES
+= runtime
/perl-534
89 REQUIRED_PACKAGES
+= system
/library