freebsd-ports/graphics/py-gdal/Makefile
Sunpoet Po-Chuan Hsieh 5963fb2614 - Update to 2.0.1
- Add LICENSE_FILE

Changes:	http://trac.osgeo.org/gdal/wiki/Release/2.0.1-News
2015-09-24 19:02:51 +00:00

39 lines
1 KiB
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= gdal
PORTVERSION= 2.0.1
CATEGORIES= graphics python
MASTER_SITES= http://download.osgeo.org/gdal/${PORTVERSION}/ \
ftp://ftp.remotesensing.org/pub/gdal/${PORTVERSION}/ \
LOCAL/sunpoet
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Python binding for GDAL
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/../../LICENSE.TXT
LIB_DEPENDS= libgdal.so:${PORTSDIR}/graphics/gdal
OPTIONS_DEFINE= NUMPY
NUMPY_DESC= Enable array support via NumPy
USE_PYTHON= autoplist concurrent distutils
USES= python shebangfix tar:xz
WRKSRC= ${WRKDIR}/${DISTNAME}/swig/python
SHEBANG_FILES= scripts/*.py
python_OLD_CMD= /usr/bin/env python
NUMPY_BUILD_DEPENDS= ${PKGNAMEPREFIX}numpy>=1.0.0:${PORTSDIR}/math/py-numpy
NUMPY_RUN_DEPENDS= ${PKGNAMEPREFIX}numpy>=1.0.0:${PORTSDIR}/math/py-numpy
NUMPY_USES= fortran
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.py ${STAGEDIR}${PREFIX}/bin/
${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/osgeo/*.so
.include <bsd.port.mk>