diff options
author | fluffy <fluffy@FreeBSD.org> | 2013-03-13 21:53:29 +0800 |
---|---|---|
committer | fluffy <fluffy@FreeBSD.org> | 2013-03-13 21:53:29 +0800 |
commit | abe5105a53f0bded8141adc3cd0e0fb9c2659c61 (patch) | |
tree | 2059106c0e154d482d45798927213805a514cfc7 /graphics/vigra | |
parent | a37378e155fd5269ad8ed439cef7e05c7a91fefd (diff) | |
download | freebsd-ports-gnome-abe5105a53f0bded8141adc3cd0e0fb9c2659c61.tar.gz freebsd-ports-gnome-abe5105a53f0bded8141adc3cd0e0fb9c2659c61.tar.zst freebsd-ports-gnome-abe5105a53f0bded8141adc3cd0e0fb9c2659c61.zip |
- Depend on GCC4.6+ only when Python/NumPy option selected (due to Fortran use in NumPy)
- By defaults NumPy option is off
- Bump PORTREVISION to force rebuild with main ports compiler
Requested by: amdmi3, jkim
Diffstat (limited to 'graphics/vigra')
-rw-r--r-- | graphics/vigra/Makefile | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/graphics/vigra/Makefile b/graphics/vigra/Makefile index 252dd6840e72..2aca42aa2753 100644 --- a/graphics/vigra/Makefile +++ b/graphics/vigra/Makefile @@ -3,7 +3,7 @@ PORTNAME= vigra PORTVERSION= 1.9.0 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= graphics MASTER_SITES= http://hci.iwr.uni-heidelberg.de/vigra/ DISTNAME= ${PORTNAME}-${PORTVERSION}-src @@ -21,8 +21,9 @@ CMAKE_ARGS= -DDEPENDENCY_SEARCH_PREFIX:PATH=${LOCALBASE} \ USE_LDCONFIG= yes -OPTIONS_DEFINE= HDF5 OPENEXR PYTHON +OPTIONS_DEFINE= HDF5 OPENEXR NUMPY OPTIONS_DEFAULT= HDF5 OPENEXR +NUMPY_DESC= NumPy mathematical computing (USE Fortran/GCC46+) .include <bsd.port.options.mk> @@ -40,9 +41,11 @@ LIB_DEPENDS+= IlmImf:${PORTSDIR}/graphics/OpenEXR CMAKE_ARGS+= -DWITH_OPENEXR=0 .endif -.if ${PORT_OPTIONS:MPYTHON} +.if ${PORT_OPTIONS:MNUMPY} CONFLICTS_BUILD= python3* CMAKE_ARGS+= -DWITH_VIGRANUMPY=1 +USE_GCC= 4.6+ +USE_FORTRAN= yes USE_PYTHON= 2.6-2.7 BUILD_DEPENDS+= nosetests:${PORTSDIR}/devel/py-nose BUILD_DEPENDS+= ${PYTHON_SITELIBDIR}/numpy/core/numeric.py:${PORTSDIR}/math/py-numpy @@ -57,12 +60,6 @@ PLIST_SUB+= PYTHON="@comment " .include <bsd.port.pre.mk> -# Check for clang, else use gcc46+ -CPP_check!= ${CPP} --version | tr -d '()' -.if !${CPP_check:Mclang} -USE_GCC= 4.6+ -.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 @@ -91,6 +88,15 @@ LIB_DEPENDS+= fftw3:${PORTSDIR}/math/fftw3 LIB_DEPENDS+= fftw3f:${PORTSDIR}/math/fftw3-float .endif +pre-everything:: +.if ${PORT_OPTIONS:MNUMPY} + @${ECHO} "" + @${ECHO} "* BEWARE!" + @${ECHO} "* Using py-NumPY implies Fortran and GCC4.6+ as hard dependencies" + @${ECHO} "* and require to all ports, depended on vigra, set USE_GCC=4.6+" + @${ECHO} "" +.endif + post-patch: # FIXME: This is ugly @${RM} ${WRKSRC}/include/vigra/*.orig |