Files
ports/textproc/kreport/Makefile
T
Adriaan de Groot 273e40a293 Pre Qt 5.15 housekeeping: textproc/kreport
This is probably a conflagration of CMake, Qt and other updates all
happening at once. In poudriere, build of databases/kexi fails with

ld: error: undefined symbol: KReportGroupTracker::qt_metacast(char const*)
>>> referenced by mocs_compilation.cpp
>>>               src/plugins/reports/CMakeFiles/kexi_reportplugin.dir/kexi_reportplugin_autogen/mocs_compilation.cpp.o:(KRScriptFunctions::qt_metacast(char const*))

The problem lies in textproc/kreport, which has a QObject-derived
class with no out-of-line virtual methods, and no clear path
to have moc called on it. This patch splits out the virtual
destructor, adds a .cpp file containing it, and causes automoc
to run normally on the class. This makes all the QObject machinery
appear in the shared library, and kexi can use it.
2020-06-04 21:02:12 +00:00

27 lines
727 B
Makefile

# $FreeBSD$
PORTNAME= kreport
DISTVERSION= 3.2.0
PORTREVISION= 3
CATEGORIES= textproc kde
MASTER_SITES= KDE/stable/${PORTNAME}/src
DIST_SUBDIR= KDE/${PORTNAME}
MAINTAINER= kde@FreeBSD.org
COMMENT= Framework for creation of reports in multiple formats
LIB_DEPENDS= libKPropertyCore3.so:x11-toolkits/kproperty
USES= cmake compiler:c++11-lang gettext kde:5 \
python:3.5+ qt:5 tar:xz
USE_KDE= config coreaddons ecm marble widgetsaddons
USE_QT= core declarative gui network webkit widgets xml \
buildtools_build printsupport qmake_build
CONFLICTS_INSTALL= calligra-2*
post-extract:
${CP} ${FILESDIR}/KReportGroupTracker.cpp ${WRKSRC}/src/renderer/scripting/KReportGroupTracker.cpp
.include <bsd.port.mk>