aboutsummaryrefslogtreecommitdiffstats
path: root/science/kst/Makefile
diff options
context:
space:
mode:
authormarkus <markus@FreeBSD.org>2006-04-30 20:00:13 +0800
committermarkus <markus@FreeBSD.org>2006-04-30 20:00:13 +0800
commit109bf6128545e6f3f2925a2be94cc6d1d7ad0a00 (patch)
tree132560ea516b8bbbfd41619e0869d2303220673e /science/kst/Makefile
parent18adcbc0b1b09381125a84b210919b0afa3362be (diff)
downloadfreebsd-ports-gnome-109bf6128545e6f3f2925a2be94cc6d1d7ad0a00.tar.gz
freebsd-ports-gnome-109bf6128545e6f3f2925a2be94cc6d1d7ad0a00.tar.zst
freebsd-ports-gnome-109bf6128545e6f3f2925a2be94cc6d1d7ad0a00.zip
Fix build on 4.x
Reported by: kris
Diffstat (limited to 'science/kst/Makefile')
-rw-r--r--science/kst/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/science/kst/Makefile b/science/kst/Makefile
index 4966b7ef7436..99e00a98d487 100644
--- a/science/kst/Makefile
+++ b/science/kst/Makefile
@@ -30,6 +30,10 @@ MAN1= kst.1
.include <bsd.port.pre.mk>
+.if ${OSVERSION} < 500000
+LIB_DEPENDS+= readline.5:${PORTSDIR}/devel/readline
+.endif
+
.if defined(WITH_NETCDF)
LIB_DEPENDS+= netcdf.1:${PORTSDIR}/science/netcdf
PLIST_SUB+= NETCDF=""
@@ -47,6 +51,7 @@ PLIST_SUB+= CDF="@comment "
.endif
post-patch:
+ @${TOUCH} ${WRKSRC}/kst/kst/ksttimers.h.in
@${REINPLACE_CMD} -e 's|-O2||g' ${WRKSRC}/${CONFIGURE_SCRIPT}
.if !defined(WITH_NETCDF)
@${REINPLACE_CMD} -e 's| netcdf||g' ${WRKSRC}/kst/kst/datasources/Makefile.in