blob: a0701cc0c276e838e7ac1ab889891b061d100f37 (
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
|
# New ports collection makefile for: qwt-devel
# Date created: 2006-12-08
# Whom: Max Brazhnikov <makc@issp.ac.ru>
#
# $FreeBSD$
#
PORTNAME= qwt
PORTVERSION= 5.0.0
CATEGORIES= x11-toolkits
MASTER_SITES= SF
PKGNAMESUFFIX= -devel
MAINTAINER= makc@issp.ac.ru
COMMENT= Qt Widgets for Technical Applications
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
CONFLICTS= qwt-4.*
USE_QT_VER= 3
USE_BZIP2= yes
USE_GMAKE= yes
MAKE_ENV= QTDIR="${QT_PREFIX}"
USE_LDCONFIG= yes
OPTIONS= DESIGNER_PLUGIN "Install plugin for Qt Designer" on
QMAKE= qmake
QMAKESPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
PLUGINDIR= ${PREFIX}/lib/kde3/plugins/designer
.include <bsd.port.pre.mk>
.include <${FILESDIR}/Makefile.man>
.if !defined(WITHOUT_DESIGNER_PLUGIN)
PLIST_SUB+= DESIGNER_PLUGIN=""
.else
PLIST_SUB+= DESIGNER_PLUGIN="@comment "
.endif
QPRO_DIRS= src
.if !defined(WITHOUT_DESIGNER_PLUGIN)
QPRO_DIRS+= designer
.endif
do-build:
.for d in ${QPRO_DIRS}
(cd ${WRKSRC}/${d} && ${QMAKE} -spec ${QMAKESPEC} && \
${REINPLACE_CMD} -e \
's|^CC .*|CC=${CC}|; \
s|^CXX .*|CXX=${CXX}|; \
s|^LINK .*|LINK=${CXX}|; \
s|-pipe||; \
s|^\(CFLAGS .*= \)|\1${CFLAGS}|; \
s|^\(CXXFLAGS = \)|\1${CXXFLAGS}|' \
${WRKSRC}/${d}/Makefile && \
${SETENV} ${MAKE_ENV} ${GMAKE})
.endfor
do-install:
${INSTALL_DATA} ${WRKSRC}/lib/libqwt.so.5.0.0 ${PREFIX}/lib/libqwt.so.5
${LN} -fs ${PREFIX}/lib/libqwt.so.5 ${PREFIX}/lib/libqwt.so
${MKDIR} ${PREFIX}/include/qwt && \
${INSTALL_DATA} ${WRKSRC}/src/*.h ${PREFIX}/include/qwt
${INSTALL_MAN} ${WRKSRC}/doc/man/man3/Qwt* ${PREFIX}/man/man3
.if !defined(WITHOUT_DESIGNER_PLUGIN)
${MKDIR} ${PLUGINDIR} && \
${INSTALL_DATA} ${WRKSRC}/designer/plugins/designer/libqwtplugin.so ${PLUGINDIR}
.endif
.if !defined(NOPORTDOCS)
${MKDIR} ${PREFIX}/share/doc/qwt && \
${INSTALL_DATA} ${WRKSRC}/doc/html/* ${PREFIX}/share/doc/qwt
.endif
.include <bsd.port.post.mk>
|