blob: ec0f97a8a9307de0f5311d9fcdc01bc9b1732c94 (
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
|
# $FreeBSD$
PORTNAME= quick
DISTVERSION= ${QT5_VERSION}
CATEGORIES= x11-toolkits
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt declarative framework for dynamic user interfaces
USE_GL= gl
USE_QT5= core gui network qml sql testlib \
widgets xmlpatterns buildtools_build
QT_DIST= declarative
USES= python:build qmake
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
QT_DEFINES= ACCESSIBILITY
QT_CONFIG= accessibility accessibility-atspi-bridge
# libQt5Qml.so and libQt5QmlDevTools.a come from lang/qt5-qml, so we do not
# want to build them again here. On the other hand, if we just remove qml/ and
# qmldevtools/ from src/src.pro the versions installed in ${LOCALBASE} will be
# picked up and their .pri files will make -Wl,-rpath-link,${LOCALBASE}/lib be
# used when building targets such as tools/qmltestrunner. This causes problems
# when building the port with an older version installed (bug 194870).
# Instead, we let the .pri modules be created in ${WRKSRC}/mkspecs but symlink
# the existing libraries and trick the existing Makefiles into doing nothing
# (it is more future-proof than whitelisting the other directories).
post-configure:
${LN} -s ${QT_LIBDIR}/libQt5Qml.so \
${CONFIGURE_WRKSRC}/lib/libQt5Qml.so
${LN} -s ${QT_LIBDIR}/libQt5QmlDevTools.a \
${CONFIGURE_WRKSRC}/lib/libQt5QmlDevTools.a
${PRINTF} ".DEFAULT:\n\t@${DO_NADA}" \
> ${CONFIGURE_WRKSRC}/src/qml/Makefile
${PRINTF} ".DEFAULT:\n\t@${DO_NADA}" \
> ${CONFIGURE_WRKSRC}/src/qmldevtools/Makefile
post-patch:
# qtdeclarative.pro wants to run python, replace that with PYTHON_CMD
${REINPLACE_CMD} '/py_out/s#python#${PYTHON_CMD}#g' \
${WRKSRC}/qtdeclarative.pro
.include <bsd.port.mk>
|