summaryrefslogtreecommitdiff
path: root/textproc/eb/buildlink3.mk
blob: 9bc576d92da4af0176ccb70b59caca5a9ce056ef (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
# $NetBSD: buildlink3.mk,v 1.8 2006/04/06 06:22:50 reed Exp $

BUILDLINK_DEPTH:=	${BUILDLINK_DEPTH}+
EB_BUILDLINK3_MK:=	${EB_BUILDLINK3_MK}+

.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+=	eb
.endif

BUILDLINK_PACKAGES:=	${BUILDLINK_PACKAGES:Neb}
BUILDLINK_PACKAGES+=	eb

_EB_REQD=		3.3.2nb1

# This variable should be directly passed to shell commands.  (E.g., a
# configure argument.)
#
# XXX We need something generic.
.include "../../mk/bsd.prefs.mk"
PKG_SYSCONFDIR.eb=$$(						\
	if ${PKG_ADMIN} pmatch 'eb>=${_EB_REQD}'		\
	    $$( ${PKG_INFO} -e eb ) 2>/dev/null; then		\
		${PKG_INFO} -B eb 2>/dev/null |			\
		    ${SED} -ne '/^PKG_SYSCONFDIR/		\
			{ s/^PKG_SYSCONFDIR=//; p; }';		\
	else ${ECHO}; fi )

.if !empty(EB_BUILDLINK3_MK:M+)
BUILDLINK_API_DEPENDS.eb+=		eb>=${_EB_REQD}
BUILDLINK_ABI_DEPENDS.eb+=	eb>=4.1.3nb1
BUILDLINK_PKGSRCDIR.eb?=	../../textproc/eb
.endif	# EB_BUILDLINK3_MK

.include "../../devel/gettext-lib/buildlink3.mk"
.include "../../devel/zlib/buildlink3.mk"

BUILDLINK_DEPTH:=     ${BUILDLINK_DEPTH:S/+$//}