freebsd-ports/graphics/p5-Geo-GDAL/Makefile
Sunpoet Po-Chuan Hsieh 841d54c170 - Fix build on -head
Reported by:	pkg-fallout
2013-10-12 19:08:29 +00:00

31 lines
797 B
Makefile

# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= Geo-GDAL
PORTVERSION= 1.10.1
CATEGORIES= graphics perl5
MASTER_SITES= http://download.osgeo.org/gdal/ \
ftp://ftp.remotesensing.org/pub/gdal/ \
LOCAL/sunpoet
PKGNAMEPREFIX= p5-
DISTNAME= gdal-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Perl binding for GDAL
LICENSE= MIT
LIB_DEPENDS= libgdal.so:${PORTSDIR}/graphics/gdal
USES= perl5
WRKSRC= ${WRKDIR}/${DISTNAME}/swig/perl
NO_STAGE= yes
post-patch:
@${REINPLACE_CMD} -e 's| install| pure_install|' ${WRKSRC}/${MAKEFILE}
@${REINPLACE_CMD} -e 's|(const char \*)""|(char \*)""|' ${WRKSRC}/gdal_wrap.cpp ${WRKSRC}/ogr_wrap.cpp
regression-test test: build
cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE} test || ${TRUE}
.include <bsd.port.mk>