blob: 7c0317b5c0051b2d8e012c46cc92c3fe760bd59d (
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
|
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= Geo-GDAL
PORTVERSION= 1.11.1
PORTREVISION= 3
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 run
USES= perl5 tar:xz
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}${PREFIX}/${SITE_ARCH_REL}/auto/Geo/GDAL/Const/Const.so ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Geo/*/*.so
${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Geo/GDAL/Const/Const.so ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Geo/*/*.so
.include <bsd.port.mk>
|