blob: 1fbed83b04c974332ac5f56833a58d0086bcc8a6 (
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
|
# $NetBSD: builtin.mk,v 1.2 2004/03/29 05:43:28 jlam Exp $
.if !defined(IS_BUILTIN.bzip2)
IS_BUILTIN.bzip2= no
. if exists(/usr/include/bzlib.h)
IS_BUILTIN.bzip2!= \
if ${GREP} -q "BZ2_" /usr/include/bzlib.h; then \
${ECHO} "yes"; \
else \
${ECHO} "no"; \
fi
. endif
BUILDLINK_VARS+= IS_BUILTIN.bzip2
.endif # IS_BUILTIN.bzip2
.if !defined(USE_BUILTIN.bzip2)
USE_BUILTIN.bzip2?= ${IS_BUILTIN.bzip2}
PREFER.bzip2?= pkgsrc
. if defined(USE_BZIP2)
. if !empty(IS_BUILTIN.bzip2:M[nN][oO]) || \
(${PREFER.bzip2} == "pkgsrc")
USE_BUILTIN.bzip2= no
. endif
. endif
# Solaris 9 has bzip2 1.0.1, build it on older versions.
# Darwin only has a static libbz2.a.
#
_INCOMPAT_BZIP2?= SunOS-5.[678]-* Darwin-*
. for _pattern_ in ${_INCOMPAT_BZIP2} ${INCOMPAT_BZIP2}
. if !empty(MACHINE_PLATFORM:M${_pattern_})
USE_BUILTIN.bzip2= no
. endif
. endfor
.endif # USE_BUILTIN.bzip2
|