1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-18 08:02:48 +00:00
freebsd-ports/graphics/pfstools/Makefile
Tobias C. Berner 4e896a50f8 math/gsl: update to 2.6
- math/p5-Math-GSL does not seem to have any upstream activity to make it work with this version -> mark it broken
  - this also breaks the two consumers of this port

- biology/gemma: has a conflict with cblas, and is makred broken.

PR:		241363
Exp-run by:	antoine
2019-10-25 23:41:34 +00:00

115 lines
3.1 KiB
Makefile

# Created by: Daniel O'Connor <darius@dons.net.au>
# $FreeBSD$
PORTNAME= pfstools
DISTVERSION= 2.1.0
PORTREVISION= 6
CATEGORIES= graphics
MASTER_SITES= SF
MAINTAINER= fbsd@any.com.ru
COMMENT= Tools for manipulating HDR images and video frames
LICENSE= LGPL21
LICENSE_FILE= ${WRKSRC}/COPYING
RUN_DEPENDS= bash:shells/bash
CONFLICTS= pfstmo-1.* pfscalibration-1.*
LDFLAGS+= -lthr
USES= cmake tar:tgz dos2unix jpeg perl5
USE_PERL5= run
USE_LDCONFIG= yes
CMAKE_ARGS= -DBUILD_SHARED_LIBS=ON \
-DWITH_MATLAB=OFF \
-DBASH_EXECUTABLE:STRING=${LOCALBASE}/bin/bash \
-DPERL_EXECUTABLE:STRING=${PERL}
DOS2UNIX_GLOB= *.txt *.cmake \
*.h *.c *.cpp \
*.1
MANCOMPRESSED= yes
OPTIONS_DEFINE= TIFF OPENEXR IMAGEMAGICK NETPBM \
OCTAVE FFTW GSL \
ALIGN GLVIEW VIEW \
OPENMP
OPTIONS_DEFAULT= TIFF FFTW GSL
NO_OPTIONS_SORT= yes
OPTIONS_SUB= yes
OCTAVE_DESC= Compile octave interface functions
GSL_DESC= Use Gnu Scientific Libarary required for some TMOs
ALIGN_DESC= Compile pfsalign, requires OpenCV w/NONFREE and libexif
VIEW_DESC= Compile pfsview, requires QT5
GLVIEW_DESC= Compile pfsglview, requires GLUT
TIFF_CMAKE_BOOL= WITH_TIFF
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
OPENEXR_CMAKE_BOOL= WITH_OpenEXR
OPENEXR_LIB_DEPENDS= libIlmImf.so:graphics/openexr \
libIex.so:graphics/ilmbase
IMAGEMAGICK_CMAKE_BOOL= WITH_ImageMagick
IMAGEMAGICK_LIB_DEPENDS= libMagick++-6.so:graphics/ImageMagick6
NETPBM_CMAKE_BOOL= WITH_NetPBM
NETPBM_LIB_DEPENDS= libnetpbm.so:graphics/netpbm
NETPBM_IMPLIES= TIFF
OCTAVE_CMAKE_BOOL= WITH_Octave
OCTAVE_PATCH_DEPENDS= octave-config:math/octave
OCTAVE_BUILD_DEPENDS= mkoctfile:math/octave
OCTAVE_RUN_DEPENDS= octave:math/octave
OCTAVE_USES= shebangfix
OCTAVE_CXXFLAGS= -std=c++11
FFTW_CMAKE_BOOL= WITH_FFTW
FFTW_CMAKE_ON= -DFFTW_INCLUDE_DIRS=${LOCALBASE}/include
FFTW_LIB_DEPENDS= libfftw3.so:math/fftw3 \
libfftw3f.so:math/fftw3-float
GSL_CMAKE_BOOL= WITH_GSL
GSL_LIB_DEPENDS= libgsl.so:math/gsl
ALIGN_CMAKE_BOOL= WITH_OpenCV # requires NONFREE=on which isn't a default
ALIGN_LIB_DEPENDS= libopencv_nonfree.so:graphics/opencv \
libexif.so:graphics/libexif
GLVIEW_CMAKE_BOOL= WITH_pfsglview
GLVIEW_CMAKE_ON= -DGLUT_INCLUDE_DIRS=${LOCALBASE}/include
GLVIEW_USES= gl
GLVIEW_USE= GL=glut GL=gl,glu
VIEW_CMAKE_BOOL= WITH_QT
VIEW_USES= gl qt:5
VIEW_USE= GL=glut GL=gl,glu QT=core,gui,widgets,buildtools_build,qmake_build
OPENMP_USES= compiler:openmp
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MIMAGEMAGICK} && !${PORT_OPTIONS:MOPENMP}
USES+= compiler:c++11-lib
.endif
.if ${PORT_OPTIONS:MOCTAVE}
OCTAVE_BASE?= ${LOCALBASE}
OCTAVE_VERSION!=${OCTAVE_BASE}/bin/octave-config -v 2>&1 || ${ECHO} "0"
OCTAVE_SITE_OCT!=${OCTAVE_BASE}/bin/octave-config --oct-site-dir 2>&1 || ${ECHO} ""
OCTAVE_SITE_M!= ${OCTAVE_BASE}/bin/octave-config --m-site-dir 2>&1 || ${ECHO} ""
PLIST_SUB= OCTAVE_BASE=${OCTAVE_BASE} \
OCTAVE_SITE_M=${OCTAVE_SITE_M:S|^${OCTAVE_BASE}/||} \
OCTAVE_SITE_OCT=${OCTAVE_SITE_OCT:S|^${OCTAVE_BASE}/||}
SHEBANG_FILES= src/octave/pfs*
SHEBANG_LANG= octave
octave_OLD_CMD?=/usr/bin/octave
octave_CMD?= ${OCTAVE_BASE}/bin/octave-cli
.endif
.include <bsd.port.mk>