blob: 18e68ca3288f1feceb152538caf8087765cfbf1b (
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
|
# 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= 1.9.1
PORTREVISION= 4
CATEGORIES= science kde
MASTER_SITES= ${MASTER_SITE_KDE}
MASTER_SITE_SUBDIR= stable/apps/KDE3.x/scientific
MAINTAINER= ports@FreeBSD.org
COMMENT= Data viewing program for KDE
BUILD_DEPENDS= ${LOCALBASE}/lib/libmuparser.a:${PORTSDIR}/math/muparser
LIB_DEPENDS= cfitsio.0:${PORTSDIR}/astro/cfitsio \
gsl.16:${PORTSDIR}/math/gsl
USE_KDELIBS_VER=3
USE_GMAKE= yes
USE_AUTOTOOLS= automake:env autoconf:env libtool
USE_LDCONFIG= yes
USE_GETTEXT= yes
MAKE_JOBS_SAFE= yes
OPTIONS= NETCDF "Enable netcdf data support" off \
CDF "Enable cdf data support" off \
KDEBASE "Enable JavaScript console" off
MAN1= kst.1
.include <bsd.port.options.mk>
.if defined(WITH_NETCDF)
LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
PLIST_SUB+= NETCDF=""
.else
CONFIGURE_ARGS+= --without-netcdf
PLIST_SUB+= NETCDF="@comment "
.endif
.if defined(WITH_CDF)
CONFIGURE_ARGS+=LDFLAGS="-lm"
LIB_DEPENDS+= cdf.0:${PORTSDIR}/science/cdf
PLIST_SUB+= CDF=""
.else
CONFIGURE_ARGS+= --without-cdf
PLIST_SUB+= CDF="@comment "
.endif
.if defined(WITH_KDEBASE)
RUN_DEPENDS+= ${KDE_PREFIX}/lib/kde3/libkonsolepart.so:${PORTSDIR}/x11/kdebase3
.endif
pre-configure:
@(cd ${WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${SH} admin/cvs.sh dist)
@${REINPLACE_CMD} -e 's|@kde_widgetdir@|@prefix@/lib/kde3/plugins/designer|' \
${WRKSRC}/kst/src/widgets/Makefile.in
@${REINPLACE_CMD} -e '/^SUBDIRS/s|et||;/^SUBDIRS/s|pt||' ${WRKSRC}/doc/Makefile.in
.if !defined(WITH_NETCDF)
@${REINPLACE_CMD} -e 's| netcdf||g' ${WRKSRC}/kst/src/datasources/Makefile.in
.endif
.if !defined(WITH_CDF)
@${REINPLACE_CMD} -e 's| cdf||g' ${WRKSRC}/kst/src/datasources/Makefile.in
.endif
.include <bsd.port.mk>
|