aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsunpoet <sunpoet@FreeBSD.org>2012-06-27 02:38:24 +0800
committersunpoet <sunpoet@FreeBSD.org>2012-06-27 02:38:24 +0800
commit337dd6854a2c2313da3ff97740fdf9f90dbb8fee (patch)
tree54999fbe7dc50ee65a3407bd2cad5d5581c6a658
parent0b91ca8067c9a41768eebb821fb5c5b10d22e042 (diff)
downloadfreebsd-ports-gnome-337dd6854a2c2313da3ff97740fdf9f90dbb8fee.tar.gz
freebsd-ports-gnome-337dd6854a2c2313da3ff97740fdf9f90dbb8fee.tar.zst
freebsd-ports-gnome-337dd6854a2c2313da3ff97740fdf9f90dbb8fee.zip
- Convert to new options framework
-rw-r--r--graphics/py-gdal/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/graphics/py-gdal/Makefile b/graphics/py-gdal/Makefile
index 601d25f69c2f..23c95750f636 100644
--- a/graphics/py-gdal/Makefile
+++ b/graphics/py-gdal/Makefile
@@ -18,7 +18,8 @@ COMMENT= Python binding for GDAL
LIB_DEPENDS= gdal:${PORTSDIR}/graphics/gdal
-OPTIONS= NUMPY "Enable array support via NumPy" off
+OPTIONS_DEFINE= NUMPY
+NUMPY_DESC= Enable array support via NumPy
PYEASYINSTALL_ARCHDEP= yes
PYDISTUTILS_PKGNAME= ${PORTNAME:U}
@@ -28,7 +29,7 @@ WRKSRC= ${WRKDIR}/${DISTNAME}/swig/python
.include <bsd.port.options.mk>
-.if defined(WITH_NUMPY)
+.if ${PORT_OPTIONS:MNUMPY}
BUILD_DEPENDS+= ${PKGNAMEPREFIX}numpy>=1.0.0:${PORTSDIR}/math/py-numpy
RUN_DEPENDS+= ${PKGNAMEPREFIX}numpy>=1.0.0:${PORTSDIR}/math/py-numpy
.endif