/[ports]/head/graphics/vigra/Makefile
ViewVC logotype

Diff of /head/graphics/vigra/Makefile

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 441330 by jbeich, Tue May 2 06:48:10 2017 UTC revision 441331 by tcberner, Sat May 20 19:45:46 2017 UTC
# Line 3  Line 3 
3    
4  PORTNAME=       vigra  PORTNAME=       vigra
5  DISTVERSION=    1.11.0  DISTVERSION=    1.11.0
6  PORTREVISION=   7  PORTREVISION=   8
7  CATEGORIES=     graphics  CATEGORIES=     graphics
8    
9  MAINTAINER=     ports@FreeBSD.org  MAINTAINER=     ports@FreeBSD.org
# Line 12  COMMENT=       VIGRA stands for "Vision with G Line 12  COMMENT=       VIGRA stands for "Vision with G
12  LICENSE=        MIT  LICENSE=        MIT
13  LICENSE_FILE=   ${WRKSRC}/LICENSE.txt  LICENSE_FILE=   ${WRKSRC}/LICENSE.txt
14    
15    LIB_DEPENDS=    libHalf.so:graphics/ilmbase \
16                    libsz.so:science/szip
17    
18    USES=           cmake:outsource python:2,run shebangfix
19    CMAKE_ARGS=     -DDEPENDENCY_SEARCH_PREFIX:PATH=${LOCALBASE} \
20                    -DDOCINSTALL:PATH=${DOCSDIR_REL}
21    
22  USE_GITHUB=     yes  USE_GITHUB=     yes
23  GH_ACCOUNT=     ukoethe  GH_ACCOUNT=     ukoethe
24  GH_TAGNAME=     e6c21f3  GH_TAGNAME=     e6c21f3
25    
26  USES=           cmake  SHEBANG_FILES=  config/vigra-config.in
 CMAKE_ARGS=     -DDEPENDENCY_SEARCH_PREFIX:PATH=${LOCALBASE} \  
                 -DDOCINSTALL:PATH=${DOCSDIR_REL}  
27    
28  USE_LDCONFIG=   yes  USE_LDCONFIG=   yes
29    
30  OPTIONS_DEFINE=         HDF5 OPENEXR NUMPY DOCS  OPTIONS_DEFINE=         HDF5 OPENEXR NUMPY DOCS FFTW
31  OPTIONS_DEFAULT=        HDF5 OPENEXR  OPTIONS_DEFAULT=        HDF5 OPENEXR
32  NUMPY_DESC=             NumPy mathematical computing (USE Fortran/GCC47+)  OPTIONS_GROUP=          IMAGEFORMATS
33    OPTIONS_GROUP_IMAGEFORMATS=     PNG JPEG TIFF
34    OPTIONS_SUB=            yes
35    
36  .include <bsd.port.options.mk>  HDF5_CMAKE_BOOL=        WITH_HDF5
37    HDF5_LIB_DEPENDS=       libhdf5.so:science/hdf5
38    
39  .if ${PORT_OPTIONS:MHDF5}  OPENEXR_CMAKE_BOOL=     WITH_OPENEXR
40  CMAKE_ARGS+=    -DWITH_HDF5=1  OPENEXR_LIB_DEPENDS=    libIlmImf.so:graphics/OpenEXR
 LIB_DEPENDS+=   libhdf5.so:science/hdf5  
 .else  
 CMAKE_ARGS+=    -DWITH_HDF5=0  
 .endif  
   
 .if ${PORT_OPTIONS:MOPENEXR}  
 CMAKE_ARGS+=    -DWITH_OPENEXR=1  
 LIB_DEPENDS+=   libIlmImf.so:graphics/OpenEXR  
 .else  
 CMAKE_ARGS+=    -DWITH_OPENEXR=0  
 .endif  
   
 .if ${PORT_OPTIONS:MNUMPY}  
 # Should ignore Python3 since commit f51b0b5  
 #CONFLICTS_BUILD=       python3*  
 CMAKE_ARGS+=    -DWITH_VIGRANUMPY=1  
 USES+=          compiler:gcc-c++11-lib python:2  
 BUILD_DEPENDS+= nosetests:devel/py-nose  
 BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/numpy/core/numeric.py:math/py-numpy  
 #BUILD_DEPENDS+=        sphinx-build:textproc/py-sphinx  
 LIB_DEPENDS+=   libboost_python.so:devel/boost-python-libs  
 RUN_DEPENDS:=   ${BUILD_DEPENDS}  
 PLIST_SUB+=     PYTHON=""  
 .else  
 CMAKE_ARGS+=    -DWITH_VIGRANUMPY=0  
 PLIST_SUB+=     PYTHON="@comment "  
 .endif  
   
 # Vigra's CMakeLists.txt does not support disabling those so we hook them  
 # as dependencies here unconditionally (without OPTIONS=) even though if  
 # they are not present then Vigra/CMake will do without them (they are not  
 # mandatory).  
 #  
 # Notice that if you define e.g. WITHOUT_VIGRA_TIFF and graphics/tiff is  
 # installed on your system, then the lib will be picked up by Vigra, the  
 # dependency will not be recorded by the ports system and later deletion  
 # of graphics/tiff will break Vigra. Only define WITHOUT_VIGRA_TIFF if you  
 # do not have graphics/tiff installed and do not want TIFF support in Vigra.  
   
 .if !defined(WITHOUT_VIGRA_TIFF)  
 LIB_DEPENDS+=   libtiff.so:graphics/tiff  
 .endif  
   
 .if !defined(WITHOUT_VIGRA_JPEG)  
 USES+=          jpeg  
 .endif  
   
 .if !defined(WITHOUT_VIGRA_PNG)  
 LIB_DEPENDS+=   libpng.so:graphics/png  
 .endif  
   
 .if !defined(WITHOUT_VIGRA_FFTW)  
 LIB_DEPENDS+=   libfftw3.so:math/fftw3  
 LIB_DEPENDS+=   libfftw3f.so:math/fftw3-float  
 .endif  
41    
42  pre-everything::  NUMPY_DESC=             NumPy mathematical computing (USE Fortran/GCC47+)
43  .if ${PORT_OPTIONS:MNUMPY}  NUMPY_CMAKE_BOOL=       WITH_VIGRANUMPY
44    NUMPY_USES=             compiler:gcc-c++11-lib python:2,build
45    NUMPY_BUILD_DEPENDS=    nosetests:devel/py-nose \
46                            f2py:math/py-numpy
47    NUMPY_RUN_DEPENDS=      nosetests:devel/py-nose \
48                            f2py:math/py-numpy
49    NUMPY_LIB_DEPENDS=      libboost_python.so:devel/boost-python-libs
50    
51    PNG_CMAKE_BOOL=         WITH_PNG
52    PNG_LIB_DPEENDS=        libpng.so:graphics/png
53    
54    JPEG_CMAKE_BOOL=        WITH_JPEG
55    JPEG_USES=              jpeg
56    
57    TIFF_CMAKE_BOOL=        WITH_TIFF
58    TIFF_LIB_DEPENDS=       libtiff.so:graphics/tiff
59    
60    FFTW_CMAKE_BOOL=        WITH_FFTW
61    FFTW_LIB_DEPENDS=       libfftw3.so:math/fftw3 \
62                            libfftw3f.so:math/fftw3-float
63    
64    post-package-NUMPY-on:
65          @${ECHO} ""          @${ECHO} ""
66          @${ECHO} "* BEWARE!"          @${ECHO} "* BEWARE!"
67          @${ECHO} "* Using py-NumPY implies Fortran and GCC 4.7+ as hard dependencies"          @${ECHO} "* Using py-NumPY implies Fortran and GCC 4.7+ as hard dependencies"
68          @${ECHO} "* and require all ports, depending on vigra, to set USE_GCC=yes"          @${ECHO} "* and require all ports, depending on vigra, to set USE_GCC=yes"
69          @${ECHO} ""          @${ECHO} ""
 .endif  
   
 post-patch:  
 # FIXME: This is ugly  
         @${RM} ${WRKSRC}/include/vigra/*.orig  
70    
71  .include <bsd.port.mk>  .include <bsd.port.mk>

Legend:
Removed from v.441330  
changed lines
  Added in v.441331

  ViewVC Help
Powered by ViewVC 1.1.27