blob: 25acf4f64a5b07b97daf4c8042db6e5b344a9a39 (
plain) (
blame)
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
52
53
54
55
56
57
58
59
60
61
62
63
|
# $FreeBSD$
PORTNAME= widgets
DISTVERSION= ${QT5_VERSION}
CATEGORIES= x11-toolkits
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt C++ widgets module
USE_QT5= core gui qmake_build buildtools_build
QT_DIST= base
USE_XORG= x11
HAS_CONFIGURE= yes
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
BUILD_WRKSRC= ${WRKSRC}/src/${PORTNAME}
INSTALL_WRKSRC= ${BUILD_WRKSRC}
MORE_WRKSRCS= src/tools/uic
QT_DEFINES= ACCESSIBILITY WIDGETS XSYNC
QT_CONFIG= accessibility accessibility-atspi-bridge xlib
OPTIONS_DEFINE= GTK3
OPTIONS_SUB= YES
GTK3_DESC= GTK+-based Qt theme
GTK3_USE= GNOME=gtk30 QT5=dbus
GTK3_CONFIGURE_ON= -gtk
GTK3_CONFIGURE_OFF= -no-gtk
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MGTK3}
QT_DEFINES+= STYLE_GTK
QT_CONFIG+= gtk
MORE_WRKSRCS+= src/plugins/platformthemes
.else
QT_DEFINES+= -STYLE_GTK
QT_CONFIG+= -gtk
.endif
# libQt5PlatformSupport.a is installed by qt5-core but needed for the gtk style plugin
post-configure:
${LN} -s ${QT_LIBDIR}/libQt5PlatformSupport.a \
${WRKSRC}/lib/libQt5PlatformSupport.a
pre-build:
@cd ${WRKSRC}/src/tools/uic && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${_MAKE_JOBS} ${MAKE_ARGS} ${ALL_TARGET}
post-install:
.for d in ${MORE_WRKSRCS}
@cd ${WRKSRC}/${d} && \
${SETENV} ${MAKE_ENV} ${MAKE} ${MAKE_FLAGS} ${MAKEFILE} \
${MAKE_ARGS} ${INSTALL_TARGET}
.endfor
${INSTALL_DATA} ${BUILD_WRKSRC}/dialogs/images/qtlogo-64.png \
${STAGEDIR}${PREFIX}/share/pixmaps/qt5logo.png
.include <bsd.port.mk>
|