blob: 1ba111c4405ec2e12630f6fd4e89c7e7b17ee023 (
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
50
|
# $FreeBSD$
PORTNAME= qwt
PORTVERSION= 6.1.3
PORTREVISION= 5
CATEGORIES= x11-toolkits
MASTER_SITES= SF
PKGNAMESUFFIX= 6-${FLAVOR}
MAINTAINER= lbartoletti@tuxfamily.org
COMMENT= Qt Widgets for Technical Applications
FLAVORS= qt5 qt4
FLAVOR?= ${FLAVORS:[1]}
USES= gl gmake qmake tar:bzip2
USE_GL= gl
USE_LDCONFIG= ${PREFIX}/${QT_LIBDIR_REL}
DOCSDIR= ${PREFIX}/share/doc/qwt6-${FLAVOR}
PORTDOCS= *
PLIST_SUB= SHLIB_VER=${PORTVERSION} \
SHLIB_SHVER=${PORTVERSION:R}
QMAKE_ARGS+= PLUGINDIR=${PREFIX}/${QT_PLUGINDIR_REL}
.if ${FLAVOR} == qt4
DEPRECATED= Qt4 has been EOL since december 2015
EXPIRATION_DATE=2019-03-15
USES+= qt:4
USE_QT= corelib designer gui opengl svg xml moc_build rcc_build script
.else
USES+= compiler:c++11-lang qt:5
USE_QT= buildtools_build widgets gui core designer gui opengl svg xml printsupport concurrent
.endif
OPTIONS_DEFINE= DOCS
post-patch:
@${REINPLACE_CMD} -e '/INSTALLS.*doc/d' ${WRKSRC}/doc/doc.pro
@${REINPLACE_CMD} -e 's/%%QT_VERSION%%/${FLAVOR:S/qt//}/g' \
-e 's|%%QT_INCDIR%%|${QT_INCDIR}|g' \
-e 's|%%QT_LIBDIR%%|${QT_LIBDIR}|g' \
-e 's|%%QT_MKSPECDIR%%|${QT_MKSPECDIR}|g' \
${WRKSRC}/qwtconfig.pri
post-install-DOCS-on:
@(cd ${WRKSRC}/doc/html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})
.include <bsd.port.mk>
|