1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-16 03:24:07 +00:00
freebsd-ports/graphics/vigra/Makefile
2018-04-18 13:57:42 +00:00

81 lines
2.2 KiB
Makefile

# Created by: cartola (Carlos E. G. Carvalho)
# $FreeBSD$
PORTNAME= vigra
DISTVERSION= 1.11.0
PORTREVISION= 20
CATEGORIES= graphics
PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
PATCHFILES= 18675a51fca2.patch:-p1
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.7,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.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>