summaryrefslogtreecommitdiff
path: root/x11/qt1/buildlink2.mk
blob: d56778c39b0afc8ad7b3d19f4afd57335fdb0329 (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
# $NetBSD: buildlink2.mk,v 1.2 2003/03/14 19:38:06 jlam Exp $

.if !defined(QT1_BUILDLINK2_MK)
QT1_BUILDLINK2_MK=	# defined

BUILDLINK_PACKAGES+=		qt1
BUILDLINK_DEPENDS.qt1?=		qt1>=1.44
BUILDLINK_PKGSRCDIR.qt1?=	../../x11/qt1

EVAL_PREFIX+=		BUILDLINK_PREFIX.qt1=qt1
BUILDLINK_PREFIX.qt1_DEFAULT=	${X11PREFIX}
BUILDLINK_FILES.qt1+=		qt1/include/*.h
BUILDLINK_FILES.qt1+=		qt1/lib/libqt.*

QTDIR=		${BUILDLINK_PREFIX.qt1}/qt1

BUILDLINK_CPPFLAGS.qt1=		-I${QTDIR}/include
BUILDLINK_LDFLAGS.qt1=		-L${QTDIR}/lib -Wl,${RPATH_FLAG}${QTDIR}/lib
FIX_RPATH+=			BUILDLINK_LDFLAGS.qt1

CONFIGURE_ENV+=		QTDIR="${QTDIR}"
CONFIGURE_ENV+=		MOC="${QTDIR}/bin/moc"
MAKE_ENV+=		QTDIR="${QTDIR}"
MAKE_ENV+=		MOC="${QTDIR}/bin/moc"
LDFLAGS+=		-Wl,${RPATH_FLAG}${QTDIR}/lib

BUILDLINK_TARGETS+=	qt1-buildlink

qt1-buildlink: _BUILDLINK_USE

.endif	# QT1_BUILDLINK2_MK