aboutsummaryrefslogtreecommitdiff
path: root/graphics/vigra/Makefile
blob: f73ea8316248869114bc8442ad3eb8b9a1c00aac (plain) (blame)
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
# Created by: cartola (Carlos E. G. Carvalho)
# $FreeBSD$

PORTNAME=	vigra
DISTVERSION=	1.11.0
PORTREVISION=	11
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 python:2,run shebangfix
CMAKE_ARGS=	-DDEPENDENCY_SEARCH_PREFIX:PATH=${LOCALBASE} \
		-DDOCINSTALL:PATH=${DOCSDIR_REL}

USE_GITHUB=	yes
GH_ACCOUNT=     ukoethe
GH_TAGNAME=     e6c21f3

SHEBANG_FILES=	config/vigra-config.in

USE_LDCONFIG=	yes

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,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=	libboost_python.so:devel/boost-python-libs

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>