mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-03 01:23:49 +00:00
77 lines
1.7 KiB
Makefile
77 lines
1.7 KiB
Makefile
# Created by: Markus Brueffer <markus@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= kst
|
|
DISTVERSION= 2.0.6
|
|
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:${PORTSDIR}/math/gsl
|
|
|
|
LATEST_LINK= kst2
|
|
|
|
USES= cmake
|
|
USE_QT4= gui xml designer svg opengl \
|
|
qmake_build moc_build rcc_build uic_build
|
|
USE_LDCONFIG= yes
|
|
|
|
CMAKE_SOURCE_PATH= ${WRKSRC}/cmake
|
|
CMAKE_ARGS+= -Dkst_install_prefix=${PREFIX}
|
|
|
|
MAN1= kst2.1
|
|
PLIST_SUB= SHLIB_VER=${PORTVERSION}
|
|
|
|
OPTIONS_DEFINE= FITS MATLAB NETCDF
|
|
|
|
FITS_DESC= Support for data in FITS format
|
|
MATLAB_DESC= Support for data in MATLAB format
|
|
NETCDF_DESC= Support for data in NetCDF format
|
|
|
|
NO_STAGE= yes
|
|
.include <bsd.port.options.mk>
|
|
|
|
.if ${PORT_OPTIONS:MFITS}
|
|
LIB_DEPENDS+= cfitsio.0:${PORTSDIR}/astro/cfitsio
|
|
PLIST_SUB+= FITS=""
|
|
.else
|
|
PLIST_SUB+= FITS="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MMATLAB}
|
|
BUILD_DEPENDS+= ${LOCALBASE}/lib/libmatio.a:${PORTSDIR}/math/matio
|
|
PLIST_SUB+= MATLAB=""
|
|
.else
|
|
PLIST_SUB+= MATLAB="@comment "
|
|
.endif
|
|
|
|
.if ${PORT_OPTIONS:MNETCDF}
|
|
LIB_DEPENDS+= netcdf.4:${PORTSDIR}/science/netcdf
|
|
PLIST_SUB+= NETCDF=""
|
|
.else
|
|
PLIST_SUB+= NETCDF="@comment "
|
|
.endif
|
|
|
|
post-patch:
|
|
${REINPLACE_CMD} -e '/^Exec=kst2/s,\(kst2\).*,\1 %f,' \
|
|
${WRKSRC}/src/kst/kst2.desktop
|
|
|
|
pre-configure:
|
|
.if !${PORT_OPTIONS:MFITS}
|
|
${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}
|
|
${REINPLACE_CMD} -e '/find_package(Netcdf)/d' \
|
|
${CMAKE_SOURCE_PATH}/CMakeLists.txt
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|