aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/py-gdal/Makefile
blob: 23c95750f6362e123118a11be9e6be657d87cb1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# New ports collection makefile for:    py-gdal
# Date created:     2012-03-06
# Whom:         Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   gdal
PORTVERSION=    1.9.1
CATEGORIES= graphics python
MASTER_SITES=   http://download.osgeo.org/gdal/ \
        ftp://ftp.remotesensing.org/pub/gdal/ \
        LOCAL/sunpoet
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    Python binding for GDAL

LIB_DEPENDS=    gdal:${PORTSDIR}/graphics/gdal

OPTIONS_DEFINE= NUMPY
NUMPY_DESC= Enable array support via NumPy

PYEASYINSTALL_ARCHDEP=  yes
PYDISTUTILS_PKGNAME=    ${PORTNAME:U}
USE_PYTHON= -2.7
USE_PYDISTUTILS=    easy_install
WRKSRC=     ${WRKDIR}/${DISTNAME}/swig/python

.include <bsd.port.options.mk>

.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

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/scripts/*.py ${PREFIX}/bin/

.include <bsd.port.mk>