freebsd-ports/science/kst2/Makefile

59 lines
1.4 KiB
Makefile
Raw Normal View History

# Created by: Markus Brueffer <markus@FreeBSD.org>
# $FreeBSD$
PORTNAME= kst
DISTVERSION= 2.0.6
PORTREVISION= 7
CATEGORIES= science kde
2011-03-30 23:20:14 +02:00
MASTER_SITES= SF/${PORTNAME}/Kst%20${DISTVERSION:C/-r.*//}/
MAINTAINER= makc@FreeBSD.org
COMMENT= Data viewing and plotting tool
LIB_DEPENDS= libgsl.so:${PORTSDIR}/math/gsl
USES= cmake pkgconfig
USE_QT4= gui xml designer svg opengl \
qmake_build moc_build rcc_build uic_build
USE_LDCONFIG= yes
2011-03-30 23:20:14 +02:00
CMAKE_SOURCE_PATH= ${WRKSRC}/cmake
CMAKE_ARGS+= -Dkst_install_prefix=${PREFIX} \
-Dkst_pch=off
2012-05-13 19:36:50 +02:00
PLIST_SUB= SHLIB_VER=${PORTVERSION}
OPTIONS_DEFINE= FITS MATLAB NETCDF
OPTIONS_SUB= yes
FITS_DESC= Support for data in FITS format
FITS_LIB_DEPENDS= libcfitsio.so:${PORTSDIR}/astro/cfitsio
MATLAB_DESC= Support for data in MATLAB format
MATLAB_LIB_DEPENDS= libmatio.so:${PORTSDIR}/math/matio
NETCDF_DESC= Support for data in NetCDF format
NETCDF_LIB_DEPENDS= libnetcdf.so:${PORTSDIR}/science/netcdf
2011-03-30 23:20:14 +02:00
.include <bsd.port.options.mk>
2011-03-30 23:20:14 +02:00
post-patch:
2011-10-20 16:32:54 +02:00
${REINPLACE_CMD} -e '/^Exec=kst2/s,\(kst2\).*,\1 %f,' \
${WRKSRC}/src/kst/kst2.desktop
2010-05-22 18:19:03 +02:00
2011-03-30 23:20:14 +02:00
pre-configure:
.if !${PORT_OPTIONS:MFITS}
2011-03-30 23:20:14 +02:00
${REINPLACE_CMD} -e '/find_package(CFITSIO)/d' \
${CMAKE_SOURCE_PATH}/CMakeLists.txt
.endif
.if !${PORT_OPTIONS:MMATLAB}
${REINPLACE_CMD} -e '/find_package(Matio)/d' \
${CMAKE_SOURCE_PATH}/CMakeLists.txt
.endif
.if !${PORT_OPTIONS:MNETCDF}
2011-03-30 23:20:14 +02:00
${REINPLACE_CMD} -e '/find_package(Netcdf)/d' \
${CMAKE_SOURCE_PATH}/CMakeLists.txt
.endif
2010-11-21 21:33:18 +01:00
2011-03-30 23:20:14 +02:00
.include <bsd.port.mk>