blob: 8454e5172ae0436fd8e1e047ac2e2e4e7fd997d0 (
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
|
PORTNAME= script
PORTVERSION= ${QT5_VERSION}${QT5_KDE_PATCH}
CATEGORIES= devel
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt 4-compatible scripting module
USES= compiler:c++11-lang perl5 qmake qt-dist:5,script
USE_PERL5= extract
USE_QT= core buildtools:build
# Keep make(1) from descending into src/script/obj/ (qmake:outsource
# doesn't work).
MAKE_ENV= MAKEOBJDIR=.
# Source version from qt-dist.mk
QT5_VERSION= ${_KDE_script_VERSION}
post-patch:
@${REINPLACE_CMD} -e '/scripttools/ d' \
${WRKSRC}/src/src.pro
# Fix version mismatches for CMake
post-configure:
@${REINPLACE_CMD} -e '/${QT5_VERSION} $${_Qt5Script_FIND_VERSION_EXACT}/s|${QT5_VERSION}|'"$$(${MAKE} -C ../qt5-core -VQT5_VERSION)"'|' \
${WRKSRC}/lib/cmake/Qt5Script/Qt5ScriptConfig.cmake
.include <bsd.port.mk>
|