aboutsummaryrefslogtreecommitdiff
path: root/misc/qt5-examples/Makefile
blob: d34a02d9289c491859d24bf8921e5bc09c4ba5c8 (plain) (blame)
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
# 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-opensource-src-${QT5_VERSION}
WRKSRC=		${WRKDIR}/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:S/-opensource//}/${example}/examples
.endfor

do-install:
.for example in ${EXAMPLES}
	cd ${WRKSRC}/${example}/examples && \
		${COPYTREE_SHARE} \* ${STAGEDIR}${EXAMPLESDIR}
.endfor

.include <bsd.port.mk>