freebsd-ports/devel/qt5-qdoc/Makefile
Adriaan de Groot 2c9a938c5b devel/qt5-qdoc: fix CMake Config file for doctools
We patch Qt to install into $LOCALBASE/lib/qt5, but the CMake
bits of Qt go into $LOCALBASE; this mismatch of installation-
prefixes means that the CMake Config files are generated with
an incorrect number of "../" components, and end up looking in
the wrong prefix. Symptom is this:

  The package "Qt5DocTools" references the file
     "/usr/lib/qt5/bin/qdoc"

The logic to use the correct path is there, but not selected
when writing out the Config file. Delete all the ones we don't
want, rather than letting qmake / whatever text-substitution tool
is in the build do it.

Suggested by:	tcberner
2022-02-06 18:52:19 +01:00

23 lines
602 B
Makefile

PORTNAME= qdoc
PORTVERSION= ${QT5_VERSION}${QT5_KDE_PATCH}
PORTREVISION= 1
CATEGORIES= devel textproc
PKGNAMEPREFIX= qt5-
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt documentation generator
BUILD_DEPENDS= llvm${LLVM_DEFAULT}>=0:devel/llvm${LLVM_DEFAULT}
RUN_DEPENDS= llvm${LLVM_DEFAULT}>=0:devel/llvm${LLVM_DEFAULT}
USES= compiler:c++11-lang qmake qt-dist:5,tools
USE_QT= core declarative buildtools_build qdoc-data_run
BUILD_WRKSRC= ${WRKSRC}/src/${PORTNAME}
INSTALL_WRKSRC= ${BUILD_WRKSRC}
CONFIGURE_ENV= LLVM_INSTALL_DIR=${LOCALBASE}/llvm${LLVM_DEFAULT}
QT_BINARIES= yes
.include <bsd.port.mk>