ports/misc/qt5-examples/Makefile
Tobias C. Berner 6b3bece75a Qt: Switch Qt5 to use KDE's Qt patch collection
From [1]
    What's this?

	This is a set of git repositories based on the last public
	commits available for Qt 5.15 branches with a curated collection
	of patches on top to ensure open source products can be used
	comfortably until users transition to their Qt 6-based ports.

    Which patches does it include?

	This collection of patches includes patches that fix at least
	one of the following:

	    * Security issues
	    * Crashes
	    * Functional defects

	We only include patches that have been approved upstream in the
	Qt project. If a patch cannot be merged upstream for technical
	reasons (e.g. the class no longer exists), it can also be
	merged.

	The patches to merge will be decided based on their relevance
	towards Open Source products and their viability.

PR:		260548
Exp-run by:	antoine
Differential Revision:	https://reviews.freebsd.org/D33446

[1] https://community.kde.org/Qt5PatchCollection
2022-01-02 09:47:54 +01:00

48 lines
1.4 KiB
Makefile

# Created by: Marie Loise Nolden <loise@kde.org>
PORTNAME= examples
PORTVERSION= ${QT5_VERSION}${QT5_KDE_PATCH}
CATEGORIES= misc
MASTER_SITES= QT/official_releases/qt/${QT5_VERSION:R}/${QT5_VERSION}/single
PKGNAMEPREFIX= qt5-
DISTNAME= qt-everywhere-src-${QT5_VERSION}
DIST_SUBDIR= KDE/Qt/${QT5_VERSION}
MAINTAINER= kde@FreeBSD.org
COMMENT= Qt 5 examples sourcecode
NO_ARCH= yes
NO_BUILD= yes
USES= qt:5 tar:xz
USE_QT= #
DESCR= ${.CURDIR:H:H}/devel/qt5/pkg-descr
DISTINFO_FILE= ${.CURDIR}/distinfo
EXAMPLESDIR= ${PREFIX}/share/examples/qt5
# The destination location depends on the values given in
# share/doc/qt5/<module>/examples-manifest.xml. The exception is
# qtscript and qtserialbus where the examples are looked up in $EXAMPLESDIR/.
# This way, the examples show up in qtcreator on the examples front page.
_QT_DISTS= 3d activeqt androidextras base charts connectivity datavis3d \
declarative doc gamepad location \
macextras multimedia networkauth purchasing quickcontrols \
quickcontrols2 remoteobjects script scxml sensors serialbus \
serialport speech svg tools virtualkeyboard wayland \
webchannel webengine websockets webview winextras \
xmlpatterns
EXAMPLES= ${_QT_DISTS:C/^/qt/}
.for example in ${EXAMPLES}
EXTRACT_AFTER_ARGS+= ${DISTNAME}/${example}/examples
.endfor
do-install:
.for example in ${EXAMPLES}
cd ${WRKSRC}/${example}/examples && \
${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.endfor
.include <bsd.port.mk>