blob: 9d2a82da3c5b83ca4951951a491af51f4e88d4b4 (
plain)
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
|
# New ports collection makefile for: Qwt
# Date created: 02 March 2002
# Whom: Bob Bomar <bob@fly.homeunix.org>
#
# $FreeBSD$
#
PORTNAME= qwt
PORTVERSION= 4.2.0
PORTREVISION= 4
CATEGORIES= x11-toolkits
MASTER_SITES= SF
MASTER_SITE_SUBDIR=qwt
MAINTAINER= makc@issp.ac.ru
COMMENT= Qwt widget library for technical purposes (old version)
BUILD_DEPENDS= qmake:${PORTSDIR}/devel/qmake
USE_QT_VER= 3
USE_BZIP2= yes
HAS_CONFIGURE= yes
CONFIGURE_ENV+= QMAKESPEC="${QMAKESPEC}"
MAKE_ENV+= MOC="${MOC}" QTDIR="${QT_PREFIX}"
USE_LDCONFIG= yes
QMAKESPEC= ${LOCALBASE}/share/qt/mkspecs/freebsd-g++
QMAKE= ${LOCALBASE}/bin/qmake
PORTSCOUT= limit:^4\.
LATEST_LINK= qwt4
.include <bsd.port.pre.mk>
.include <${FILESDIR}/Makefile.man>
do-configure:
@(cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} -unix)
post-configure:
@(cd ${WRKSRC} && \
${REINPLACE_CMD} -e \
's|^CC .*|CC=${CC}|; \
s|^CXX .*|CXX=${CXX}|; \
s|^LINK .*|LINK=${CXX}|' \
${WRKSRC}/Makefile)
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/lib/libqwt4.so.${PORTVERSION} ${PREFIX}/lib/libqwt4.so.${PORTVERSION:R:R}
${LN} -fs ${PREFIX}/lib/libqwt4.so.${PORTVERSION:R:R} ${PREFIX}/lib/libqwt4.so
${MKDIR} ${PREFIX}/include/qwt4
${INSTALL_DATA} ${WRKSRC}/include/*.h ${PREFIX}/include/qwt4
.for f in ${MAN3}
${INSTALL_MAN} ${WRKSRC}/doc/man/man3/${f:S/Qwt4/Qwt/} ${PREFIX}/man/man3/${f}
.endfor
.include <bsd.port.post.mk>
|