summaryrefslogtreecommitdiff
path: root/geography/proj-swig/Makefile
blob: 931f4c2c24777d46d2cb39897c43033a3446496f (plain)
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
41
42
43
44
# $NetBSD: Makefile,v 1.30 2018/07/03 05:03:19 adam Exp $

DISTNAME=		proj-swig-0.02
PKGREVISION=		9
CATEGORIES=		geography
MASTER_SITES=		# http://acert.ir.bbn.com/downloads/acert-geospatial/

MAINTAINER=		gdt@NetBSD.org
#HOMEPAGE=		http://acert.ir.bbn.com/downloads/acert-geospatial/
COMMENT=		Guile and python wrappers for proj

MAKE_JOBS_SAFE=		no

USE_PKGLOCALEDIR=	yes
USE_LIBTOOL=		yes
GNU_CONFIGURE=		yes

# Defines PYSITELIB, apparently.
PY_PATCHPLIST=		yes
PYTHON_VERSIONS_INCOMPATIBLE=	34 35 36 37 # not yet ported as of 0.02

# Find guile20's includes
CFLAGS+=		-I${BUILDLINK_PREFIX.guile20}/include/guile/2.0

# Use swig2
SUBST_CLASSES+=		swig2
SUBST_STAGE.swig2=	pre-configure
SUBST_MESSSAGE.swig2=	Using swig2.
SUBST_FILES.swig2=	Makefile.in
SUBST_SED.swig2=	-e s/swig/swig2.0/

# The perl build is commented out upstream, so this doesn't have any
# effect.
SUBST_CLASSES+=		pkg
SUBST_STAGE.pkg=	pre-configure
SUBST_MESSAGE.pkg=	Replacing /usr/pkg with the correct PREFIX.
SUBST_FILES.pkg=	Makefile.in
SUBST_SED.pkg=		-e 's,/usr/pkg,${PREFIX},g'

.include "../../devel/swig2/buildlink3.mk"
.include "../../geography/proj/buildlink3.mk"
.include "../../lang/guile20/buildlink3.mk"
.include "../../lang/python/extension.mk"
.include "../../mk/bsd.pkg.mk"