blob: 2784bb62732f44489a6ca4f6ced65114980fb68c (
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
|
# New ports collection makefile for: kst
# Date created: Fri Apr 30 17:28:56 CEST 2004
# Whom: Markus Brueffer <markus@FreeBSD.org>
#
# $FreeBSD$
PORTNAME= kst
PORTVERSION= 2.0.2
PORTREVISION= 1
CATEGORIES= science kde
MASTER_SITES= SF/${PORTNAME}/Kst%20${PORTVERSION}/
MAINTAINER= makc@FreeBSD.org
COMMENT= Data viewing and plotting tool
LIB_DEPENDS= cfitsio.0:${PORTSDIR}/astro/cfitsio \
gsl.15:${PORTSDIR}/math/gsl
LATEST_LINK= kst2
USE_QT_VER= 4
QT_COMPONENTS= gui xml designer svg opengl \
qmake_build moc_build rcc_build uic_build
USE_LDCONFIG= yes
MAKE_JOBS_SAFE= yes
QMAKE_ARGS+= -unix -recursive
CONFIGURE_ENV+= INSTALL_PREFIX=${PREFIX}
STRIP_FILES= bin/kst2 lib/libkst2*.so.1.0.0 lib/kst/libkst2*.so
DESKTOP_ENTRIES= "Kst 2" \
"Data viewing and plotting tool" \
"${PREFIX}/share/pixmaps/kst.png" \
"kst2" \
"" \
false
.include <bsd.port.pre.mk>
.if ${OSVERSION} <= 700042
IGNORE= does not compile on 6.x
.endif
do-configure:
cd ${WRKSRC} && ${SETENV} ${CONFIGURE_ENV} ${QMAKE} ${QMAKE_ARGS} ${QMAKEFLAGS}
post-configure:
#fix build when Qt-3.x is installed
${FIND} -d ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} \
-e '/^CFLAGS.*=/s|-I/usr/local/include||' \
-e '/^CXXFLAGS.*=/s|-I/usr/local/include||'
post-install:
${STRIP_CMD} ${STRIP_FILES:S,^,${PREFIX}/,}
${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/src/images/kst.png ${PREFIX}/share/pixmaps
.include <bsd.port.post.mk>
|