summaryrefslogtreecommitdiff
path: root/x11/Xaw-Xpm/buildlink2.mk
blob: 152a17dfc26b539259cc399e7c31ad96417bc769 (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
# $NetBSD: buildlink2.mk,v 1.4 2003/03/03 14:22:41 seb Exp $

.if !defined(XAWXPM_BUILDLINK2_MK)
XAWXPM_BUILDLINK2_MK=	# defined

BUILDLINK_PACKAGES+=		Xaw-Xpm
BUILDLINK_DEPENDS.Xaw-Xpm?=	Xaw-Xpm-1.1
BUILDLINK_PKGSRCDIR.Xaw-Xpm?=	../../x11/Xaw-Xpm

.include "../../mk/bsd.prefs.mk"

EVAL_PREFIX+=	BUILDLINK_PREFIX.Xaw-Xpm=Xaw-Xpm
BUILDLINK_PREFIX.Xaw-Xpm_DEFAULT=	${X11PREFIX}
BUILDLINK_FILES.Xaw-Xpm=	include/X11/Xaw3d/*
BUILDLINK_FILES.Xaw-Xpm+=	lib/libXaw3d.*

.include "../../graphics/xpm/buildlink2.mk"

BUILDLINK_TARGETS+=	Xaw-Xpm-buildlink

LIBXAW?=	-L${BUILDLINK_PREFIX.Xaw-Xpm}/lib			\
		-Wl,${_OPSYS_RPATH_NAME}${BUILDLINK_PREFIX.Xaw-Xpm}/lib	\
		-L${BUILDLINK_PREFIX.xpm}/lib				\
		-Wl,${_OPSYS_RPATH_NAME}${BUILDLINK_PREFIX.xpm}/lib	\
		-lXaw3d -lXpm

Xaw-Xpm-buildlink: _BUILDLINK_USE

.endif	# XAWXPM_BUILDLINK2_MK