blob: e1d1db84e979941382f2d112bc1e7d266c5a2601 (
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
|
# $FreeBSD$
PORTNAME= qwt
PORTVERSION= 6.0.2
CATEGORIES= x11-toolkits
MASTER_SITES= SF
MAINTAINER= makc@FreeBSD.org
COMMENT= Qt Widgets for Technical Applications
USE_QT4= gui svg xml moc_build qmake_build
USE_BZIP2= yes
USE_GMAKE= yes
QMAKE_ARGS+= -recursive PREFIX=${PREFIX}
HAS_CONFIGURE= yes
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
DOCSDIR= ${PREFIX}/share/doc/${LATEST_LINK}
LATEST_LINK= qwt6
PORTDOCS= *
PLIST_SUB= INCLUDEDIR=include/${LATEST_LINK} \
SHLIB_VER=${PORTVERSION} \
SHLIB_SHVER=${PORTVERSION:R} \
QT_MKSPECDIR=share/qt4/mkspecs
STRIP_FILES= lib/libqwt6.so.${PORTVERSION} \
lib/libqwtmathml.so.${PORTVERSION}
.include <bsd.port.options.mk>
post-patch:
cd ${WRKSRC} && \
${REINPLACE_CMD} -e 's,qwtAddLibrary(qwt),qwtAddLibrary(qwt6),g' \
qwt.prf textengines/textengines.pri
do-configure:
(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKEFLAGS} ${QMAKE_ARGS})
post-install:
${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}
.if ${PORT_OPTIONS:MDOCS}
(cd ${WRKSRC}/doc/html/ && ${COPYTREE_SHARE} \* ${DOCSDIR})
.endif
.include <bsd.port.mk>
|