Changeset View
Standalone View
math/labplot/Makefile
# Created by: Kay Lehmann <kay_lehmann@web.de> | # Created by: Kay Lehmann <kay_lehmann@web.de> | ||||
# $FreeBSD$ | # $FreeBSD$ | ||||
PORTNAME= labplot | PORTNAME= labplot | ||||
PORTVERSION= 2.0.1 | PORTVERSION= 2.3.0 | ||||
PORTREVISION= 4 | DISTVERSIONSUFFIX=-kf5 | ||||
rakuco: Is this really necessary? To me this is just an update to the port that happens to make it… | |||||
tcbernerAuthorUnsubmitted Not Done Inline ActionsThis is DISTVERSIONPREFIX, it has no influenc on the pkgname (they provide two tarballs, one is called labplot-2.3.0-kf5.tar.xz, the other labplot-2.3.0.tar.xz). tcberner: This is DISTVERSIONPREFIX, it has no influenc on the pkgname (they provide two tarballs, one is… | |||||
CATEGORIES= math kde | CATEGORIES= math kde | ||||
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION:R}.0 | MASTER_SITES= KDE/stable/${PORTNAME}/${PORTVERSION} | ||||
MAINTAINER= ports@FreeBSD.org | MAINTAINER= kde@FreeBSD.org | ||||
COMMENT= Data plotting and function analysis tool for KDE | COMMENT= Data plotting and function analysis tool for KDE | ||||
LICENSE= GPLv2 | LICENSE= GPLv2 | ||||
rakucoUnsubmitted Done Inline ActionsThe license (at least in the handful of files I checked) seems to be GPLv2+. rakuco: The license (at least in the handful of files I checked) seems to be GPLv2+. | |||||
LICENSE_FILE= ${WRKSRC}/COPYING | LICENSE_FILE= ${WRKSRC}/COPYING | ||||
LIB_DEPENDS= libgsl.so:math/gsl | LIB_DEPENDS= libgsl.so:math/gsl | ||||
rakucoUnsubmitted Not Done Inline Actionsv2.3.0 seems to always look for some optional dependencies and enable them if they happen to be found (there's been a commit in git after that which adds CMake options for those dependencies). fftw3, hdf5, netcdf and cantor all seem to fall in this category. You need to either depend on them unconditionally (not sure if any of those is too big a dependency) or make sure they are not automagically enabled if found. rakuco: v2.3.0 seems to always look for some optional dependencies and enable them if they happen to be… | |||||
tcbernerAuthorUnsubmitted Not Done Inline ActionsI'll try to optionify it. Cantor won't be picked up anyway, as it is still the outdated version. tcberner: I'll try to optionify it. Cantor won't be picked up anyway, as it is still the outdated version. | |||||
USES= cmake kde:4 shared-mime-info tar:bzip2 | USES= cmake:outsource desktop-file-utils kde:5 shared-mime-info tar:xz | ||||
USE_KDE= archive auth bookmarks codecs completion config configwidgets \ | |||||
coreaddons crash ecm guiaddons i18n iconthemes itemviews \ | |||||
jobwidgets kdelibs4support kio notifications parts service \ | |||||
solid sonnet textwidgets unitconversion widgetsaddons \ | |||||
windowsystem xmlgui | |||||
USE_QT5= core dbus gui network printsupport svg widgets xml \ | |||||
buildtools_build qmake_build | |||||
USE_XORG= xft xpm | USE_XORG= xft xpm | ||||
rakucoUnsubmitted Done Inline ActionsI wonder if these two are still necessary. rakuco: I wonder if these two are still necessary. | |||||
tcbernerAuthorUnsubmitted Not Done Inline ActionsYou're right. According to stage-qa they are not needed. tcberner: You're right. According to stage-qa they are not needed. | |||||
USE_GCC= yes | |||||
USE_KDE= automoc4 kdelibs | |||||
USE_QT4= moc_build qmake_build rcc_build uic_build | |||||
post-patch: | DATADIR= ${PREFIX}/share/labplot2 | ||||
@${REINPLACE_CMD} -e \ | |||||
's|/usr/local/|${LOCALBASE}/|g' ${WRKSRC}/CMakeLists.txt | |||||
@${REINPLACE_CMD} -e \ | |||||
's|i->\(children<T>\)|\1|' \ | |||||
${WRKSRC}/src/backend/core/AbstractAspect.h | |||||
@${REINPLACE_CMD} -e \ | |||||
's|!isnan|!std::isnan|' \ | |||||
${WRKSRC}/src/backend/worksheet/plots/cartesian/CartesianCoordinateSystem.cpp | |||||
.include <bsd.port.mk> | .include <bsd.port.mk> |
Is this really necessary? To me this is just an update to the port that happens to make it depend on Qt5/KF5.