summaryrefslogtreecommitdiff
path: root/graphics/aalib-x11/buildlink3.mk
blob: 067ceab5beb6f7eb5beddabf5d01b514117731b7 (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
# $NetBSD: buildlink3.mk,v 1.7 2005/12/05 20:50:19 rillig Exp $

BUILDLINK_DEPTH:=		${BUILDLINK_DEPTH}+
AALIB_X11_BUILDLINK3_MK:=	${AALIB_X11_BUILDLINK3_MK}+

.if !empty(BUILDLINK_DEPTH:M+)
BUILDLINK_DEPENDS+=		aalib-x11
.endif

BUILDLINK_PACKAGES:=	${BUILDLINK_PACKAGES:Naalib-x11}
BUILDLINK_PACKAGES+=	aalib-x11

.if !empty(AALIB_X11_BUILDLINK3_MK:M+)
BUILDLINK_DEPENDS.aalib-x11+=	aalib-x11>=1.4.0.4nb1
BUILDLINK_PKGSRCDIR.aalib-x11?=	../../graphics/aalib-x11

BUILDLINK_FILES.aalib-x11=	include/aalib-x11.h
BUILDLINK_TRANSFORM.aalib-x11+=	-e "s|/aalib-x11.h|/aalib.h|g"
BUILDLINK_TRANSFORM+=		l:aa:aa-x11

AALIB_CONFIG=		${BUILDLINK_PREFIX.aalib-x11}/bin/aalib-x11-config
CONFIGURE_ENV+=		AALIB_CONFIG=${AALIB_CONFIG:Q}
MAKE_ENV+=		AALIB_CONFIG=${AALIB_CONFIG:Q}
.endif	# AALIB_X11_BUILDLINK3_MK

.include "../../mk/x11.buildlink3.mk"

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