blob: cc0e4795a55b22939dc1e52f6cbf8803001bf21b (
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
|
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$
PORTNAME= Geo-GDAL
PORTVERSION= 2.4.2
CATEGORIES= graphics perl5
MASTER_SITES= https://download.osgeo.org/gdal/${PORTVERSION}/ \
LOCAL/sunpoet
PKGNAMEPREFIX= p5-
DISTNAME= gdal-${PORTVERSION}
MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Perl binding for GDAL
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/../../LICENSE.TXT
BUILD_DEPENDS= p5-Capture-Tiny>=0:devel/p5-Capture-Tiny
LIB_DEPENDS= libgdal.so:graphics/gdal
USES= compiler:c++11-lang perl5 tar:xz
USE_CXXSTD= c++11
WRKSRC_SUBDIR= swig/perl
post-patch:
@${LN} -s ${LOCALBASE}/bin/gdal-config ${WRKSRC}/../../apps/gdal-config
@${REINPLACE_CMD} -e 's| INSTALL_BASE=.*||; s| install| pure_install|' ${WRKSRC}/Makefile
# GDALmake.opt is not available until configure phase
post-configure:
@${SED} -e '/^GDAL_ROOT/d' ${LOCALBASE}/share/gdal/GDALmake.opt > ${WRKSRC}/../../GDALmake.opt
post-install:
${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>
|