aboutsummaryrefslogtreecommitdiffstats
path: root/x11-toolkits/qwt6/Makefile
blob: 43d2b7054012c7688fce00a9e4ad902ecd4dbd29 (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
# $FreeBSD$

PORTNAME=   qwt
PORTVERSION=    6.1.0
PORTREVISION=   2
CATEGORIES= x11-toolkits
MASTER_SITES=   SF
PKGNAMESUFFIX=  6

MAINTAINER= ports@FreeBSD.org
COMMENT=    Qt Widgets for Technical Applications

USES=       gmake qmake tar:bzip2
USE_QT4=    corelib gui opengl svg xml moc_build
USE_GL=     gl
USE_LDCONFIG=   yes
DOCSDIR=    ${PREFIX}/share/doc/qwt6

PORTDOCS=   *
PLIST_SUB=  INCLUDEDIR=include/qwt6 \
        SHLIB_VER=${PORTVERSION} \
        SHLIB_SHVER=${PORTVERSION:R} \
        QT_MKSPECDIR=share/qt4/mkspecs

OPTIONS_DEFINE= DOCS

post-patch:
    @${REINPLACE_CMD} -e 's,qwtAddLibrary(qwt),qwtAddLibrary(qwt6),g' \
        ${WRKSRC}/qwt.prf ${WRKSRC}/textengines/textengines.pri
    @${REINPLACE_CMD} -e '/INSTALLS.*doc/d' ${WRKSRC}/doc/doc.pro

post-install-DOCS-on:
    @(cd ${WRKSRC}/doc/html/ && ${COPYTREE_SHARE} . ${STAGEDIR}${DOCSDIR})

.include <bsd.port.mk>