blob: f7ead6ec2bf0fd0e507604cd6224f3198430a55e (
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
|
# 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
DISTVERSION= 2.0.3
PORTREVISION= 1
CATEGORIES= science kde
MASTER_SITES= SF/${PORTNAME}/Kst%20${DISTVERSION:C/-r.*//}/
MAINTAINER= makc@FreeBSD.org
COMMENT= Data viewing and plotting tool
LIB_DEPENDS= gsl.16:${PORTSDIR}/math/gsl
RUN_DEPENDS= update-mime-database:${PORTSDIR}/misc/shared-mime-info
LATEST_LINK= kst2
USE_CMAKE= yes
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
CMAKE_SOURCE_PATH= ${WRKSRC}/cmake
CMAKE_ARGS+= -Dkst_install_prefix=${PREFIX}
MAN1= kst2.1
OPTIONS= FITS "Support for data in FITS format" off \
NETCDF "Support for data in NetCDF format" off
.include <bsd.port.options.mk>
.if defined(WITH_FITS)
LIB_DEPENDS+= cfitsio.0:${PORTSDIR}/astro/cfitsio
PLIST_SUB+= FITS=""
.else
PLIST_SUB+= FITS="@comment "
.endif
.if defined(WITH_NETCDF)
LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
PLIST_SUB+= NETCDF=""
.else
PLIST_SUB+= NETCDF="@comment "
.endif
post-patch:
${REINPLACE_CMD} -e '/^Icon=/s,kst,${PREFIX}/share/pixmaps/kst2.png,' \
${WRKSRC}/src/kst/*kst.desktop
${REINPLACE_CMD} -e '/^Exec=kst2/s,-caption "%c" %i %m,%f,' \
${WRKSRC}/src/kst/kst.desktop
pre-configure:
.if !defined(WITH_FITS)
${REINPLACE_CMD} -e '/find_package(CFITSIO)/d' \
${CMAKE_SOURCE_PATH}/CMakeLists.txt
.endif
.if !defined(WITH_NETCDF)
${REINPLACE_CMD} -e '/find_package(Netcdf)/d' \
${CMAKE_SOURCE_PATH}/CMakeLists.txt
.endif
post-install:
${MKDIR} ${PREFIX}/share/pixmaps
${INSTALL_DATA} ${WRKSRC}/src/images/kst.png ${PREFIX}/share/pixmaps/kst2.png
@-update-mime-database ${PREFIX}/share/mime
.include <bsd.port.mk>
|