Manual tweak misc/edfbrowser
[dports.git] / misc / qt6-examples / Makefile
1 PORTNAME=       examples
2 PORTVERSION=    ${QT6_VERSION}
3 CATEGORIES=     misc
4 MASTER_SITES=   QT/official_releases/qt/${QT6_VERSION:R}/${QT6_VERSION}/single
5 PKGNAMEPREFIX=  qt6-
6 DISTNAME=       qt-everywhere-src-${QT6_VERSION}
7 #WRKSRC=                ${WRKDIR}/qt-everywhere-src-${QT5_VERSION}
8 DIST_SUBDIR=    KDE/Qt/${QT6_VERSION}
9
10 MAINTAINER=     kde@FreeBSD.org
11 COMMENT=        Qt 6 examples sourcecode
12
13 NO_ARCH=        yes
14 NO_BUILD=       yes
15
16 USES=           qt:6 tar:xz
17 USE_QT=         #
18
19 EXAMPLESDIR=    ${PREFIX}/share/examples/qt6
20 # The destination location depends on the values given in
21 # share/doc/qt5/<module>/examples-manifest.xml. The exception is
22 # qtscript and qtserialbus where the examples are looked up in $EXAMPLESDIR/.
23 # This way, the examples show up in qtcreator on the examples front page.
24
25 _QT_DISTS=      3d 5compat activeqt base charts coap connectivity datavis3d \
26                 declarative doc httpserver mqtt multimedia networkauth opcua \
27                 positioning quick3d quick3dphysics remoteobjects scxml \
28                 sensors serialbus serialport speech svg tools virtualkeyboard \
29                 wayland webchannel webengine websockets webview
30 EXAMPLES=               ${_QT_DISTS:C/^/qt/}
31
32 .for example in ${EXAMPLES}
33 EXTRACT_AFTER_ARGS+=    ${DISTNAME:S/-opensource//}/${example}/examples
34 .endfor
35
36 do-install:
37 .for example in ${EXAMPLES}
38         cd ${WRKSRC}/${example}/examples && \
39                 ${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
40 .endfor
41
42 .include <bsd.port.mk>