blob: 1e046b2b45482f841b2e6a3d17c8331499aef65b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
# Created by: cartola (Carlos E. G. Carvalho)
# $FreeBSD$
PORTNAME= vigra
DISTVERSIONPREFIX=v
DISTVERSION= 1.11.1
CATEGORIES= graphics
MAINTAINER= ports@FreeBSD.org
COMMENT= VIGRA stands for "Vision with Generic Algorithms"
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE.txt
LIB_DEPENDS= libHalf.so:graphics/ilmbase \
libsz.so:science/szip
USES= cmake:outsource compiler:c++14-lang python:2.7,run shebangfix
USE_GITHUB= yes
GH_ACCOUNT= ukoethe
GH_TAGNAME= 8acd73a
USE_LDCONFIG= yes
CMAKE_ARGS= -DDEPENDENCY_SEARCH_PREFIX:PATH=${LOCALBASE} \
-DDOCINSTALL:PATH=${DOCSDIR_REL}
SHEBANG_FILES= config/vigra-config.in
OPTIONS_DEFINE= HDF5 OPENEXR NUMPY DOCS FFTW
OPTIONS_DEFAULT= HDF5 OPENEXR FFTW ${OPTIONS_GROUP_IMAGEFORMATS}
OPTIONS_GROUP= IMAGEFORMATS
OPTIONS_GROUP_IMAGEFORMATS= PNG JPEG TIFF
OPTIONS_SUB= yes
HDF5_CMAKE_BOOL= WITH_HDF5
HDF5_LIB_DEPENDS= libhdf5.so:science/hdf5
OPENEXR_CMAKE_BOOL= WITH_OPENEXR
OPENEXR_LIB_DEPENDS= libIlmImf.so:graphics/openexr
NUMPY_DESC= NumPy mathematical computing (USE Fortran/GCC47+)
NUMPY_CMAKE_BOOL= WITH_VIGRANUMPY
NUMPY_USES= compiler:gcc-c++11-lib python:2.7,build
NUMPY_BUILD_DEPENDS= nosetests:devel/py-nose \
f2py:math/py-numpy
NUMPY_RUN_DEPENDS= nosetests:devel/py-nose \
f2py:math/py-numpy
NUMPY_LIB_DEPENDS= ${PY_BOOST}
# On FreeBSD < 11 libc++ lacks support for sized delete operators.
# GCC dropped the builtin version of these operators in 6+ by
# defaulting to gnu++14. Force c++11 instead.
# For a more detailed discussion see:
# https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=219484
NUMPY_CXXFLAGS= -std=gnu++11
PNG_CMAKE_BOOL= WITH_PNG
PNG_LIB_DPEENDS= libpng.so:graphics/png
JPEG_CMAKE_BOOL= WITH_JPEG
JPEG_USES= jpeg
TIFF_CMAKE_BOOL= WITH_TIFF
TIFF_LIB_DEPENDS= libtiff.so:graphics/tiff
FFTW_CMAKE_BOOL= WITH_FFTW
FFTW_LIB_DEPENDS= libfftw3.so:math/fftw3 \
libfftw3f.so:math/fftw3-float
post-package-NUMPY-on:
@${ECHO} ""
@${ECHO} "* BEWARE!"
@${ECHO} "* Using py-NumPY implies Fortran and GCC 4.7+ as hard dependencies"
@${ECHO} "* and require all ports, depending on vigra, to set USE_GCC=yes"
@${ECHO} ""
.include <bsd.port.mk>
|