summaryrefslogtreecommitdiff
path: root/textproc/intltool/buildlink3.mk
blob: 0c4e85fffe1f5f45547333a696d79823519a7fb6 (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: buildlink3.mk,v 1.3 2004/03/18 09:12:15 jlam Exp $

BUILDLINK_DEPTH:=		${BUILDLINK_DEPTH}+
INTLTOOL_BUILDLINK3_MK:=	${INTLTOOL_BUILDLINK3_MK}+

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

BUILDLINK_PACKAGES:=	${BUILDLINK_PACKAGES:Nintltool}
BUILDLINK_PACKAGES+=	intltool

.if !empty(INTLTOOL_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.intltool+=	intltool>=0.30
BUILDLINK_PKGSRCDIR.intltool?=	../../textproc/intltool
BUILDLINK_DEPMETHOD.intltool?=	build
.endif	# INTLTOOL_BUILDLINK3_MK

USE_PERL5?=	build

.include "../../lang/perl5/buildlink3.mk"

.if !empty(INTLTOOL_BUILDLINK3_MK:M+)
CONFIGURE_ENV+=		INTLTOOL_PERL="${PERL5}"
INTLTOOLIZE=		${BUILDLINK_PREFIX.intltool}/bin/intltoolize

_CONFIGURE_PREREQ+=	intltoolize

.PHONY: intltoolize
intltoolize:
	${_PKG_SILENT}${_PKG_DEBUG}					\
	${ECHO} "=> Overriding intltool."
	@cd ${WRKSRC} && ${INTLTOOLIZE} --force >/dev/null 2>&1
.endif	# INTLTOOL_BUILDLINK3_MK

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