blob: 2d06a80ae9d8d3a2b8b1f14e4ce72ed82767b9f7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
# $NetBSD: check-portability.mk,v 1.6 2006/10/21 19:07:18 rillig Exp $
#
# This file contains some checks that are applied to the configure
# scripts to check for certain constructs that are known to cause
# problems on some platforms.
#
# The following variables may be set by the pkgsrc user in mk.conf:
#
# CHECK_PORTABILITY: YesNo
# Whether to enable some portability checks for the configure
# scripts before they are run.
#
# Default value: yes for PKG_DEVELOPERs, no otherwise.
#
# The following variables may be set by the package:
#
# SKIP_PORTABILITY_CHECK: YesNo
# Whether the above checks should be skipped for the current
# package.
#
# Default value: no
#
.if defined(PKG_DEVELOPER) && !empty(PKG_DEVELOPER:M[Yy][Ee][Ss])
CHECK_PORTABILITY?= yes
.endif
CHECK_PORTABILITY?= no
SKIP_PORTABILITY_CHECK?= no
.if ${CHECK_PORTABILITY:M[Yy][Ee][Ss]} != "" && \
${SKIP_PORTABILITY_CHECK:M[Yy][Ee][Ss]} == ""
do-configure-pre-hook: _configure-check-for-test
.endif
.PHONY: _configure-check-for-test
_configure-check-for-test:
@${STEP_MSG} "Checking for portability problems in extracted files"
${_PKG_SILENT}${_PKG_DEBUG} \
[ -d ${WRKSRC}/. ] || exit 0; \
cd ${WRKSRC} \
&& sh ${PKGSRCDIR}/mk/configure/check-portability.sh
|