blob: 81e84e67c4c237e61e127a6a0dd83967e6d45c44 (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
# $NetBSD: application.mk,v 1.3 2007/06/15 17:33:40 joerg Exp $
#
# This file provides useful definitions for packages that contain
# QT applications.
#
# It defines the following variables:
#
# QTDIR
# The directory where qt3 is installed. This is not ${PREFIX} to
# allow qt4 being installed at the same time.
#
.if !defined(QT3_APPLICATION_MK)
QT3_APPLICATION_MK= # defined
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "Linux"
# work-around bug noted in PR #25402
BUILDLINK_TRANSFORM+= rm:-Wl,--no-undefined
.endif
.if ${OPSYS} == "SunOS"
GCC_REQD+= 3.3
.endif
QTDIR?= ${PREFIX}/qt3
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
CONFIGURE_ARGS+= --with-qt-dir=${QTDIR:Q}
CONFIGURE_ARGS+= --disable-rpath
.if exists(${X11BASE}/lib/libXinerama.so) || ${X11_TYPE} != "native"
CONFIGURE_ARGS+= --with-xinerama
.include "../../x11/libXinerama/buildlink3.mk"
.endif
CONFIGURE_ENV+= USER_LDFLAGS=${LDFLAGS:M*:Q}
LDFLAGS+= -L${QTDIR}/lib
CONFIGURE_ENV+= QTDIR=${QTDIR:Q}
MAKE_ENV+= QTDIR=${QTDIR:Q}
.for t in moc qmake uic
TOOLS_CREATE+= ${t}
TOOLS_PATH.${t}= ${QTDIR}/bin/${t}
.endfor
.include "../../x11/qt3-libs/buildlink3.mk"
.include "../../x11/qt3-tools/buildlink3.mk"
.endif
|