mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-26 00:55:14 +00:00
33 lines
1004 B
Makefile
33 lines
1004 B
Makefile
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= Geo-GDAL
|
|
PORTVERSION= 1.11.0
|
|
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
|
|
|
|
USE_PERL5= build fixpacklist run
|
|
USES= perl5
|
|
WRKSRC= ${WRKDIR}/${DISTNAME}/swig/perl
|
|
|
|
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
|
|
|
|
post-install:
|
|
${CHMOD} u+w ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/Geo/GDAL/Const/Const.so ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/Geo/*/*.so
|
|
${STRIP_CMD} ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/Geo/GDAL/Const/Const.so ${STAGEDIR}${SITE_PERL}/${PERL_ARCH}/auto/Geo/*/*.so
|
|
|
|
.include <bsd.port.mk>
|