aboutsummaryrefslogtreecommitdiff
path: root/databases/spatialite/Makefile
blob: a7165d51fc51fc4636c3360f3649023b3f049d83 (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
PORTNAME=	spatialite
PORTVERSION=	5.1.0
PORTREVISION=	1
CATEGORIES=	databases geography
MASTER_SITES=	http://www.gaia-gis.it/gaia-sins/libspatialite-sources/
DISTNAME=	lib${PORTNAME}-${PORTVERSION}

MAINTAINER=	lbartoletti@FreeBSD.org
COMMENT=	Spatial Extensions for SQLite
WWW=		https://www.gaia-gis.it/gaia-sins/

LICENSE=	GPLv2 # Only GPLv2 since we enable rttopo and gcp
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libgeos_c.so:graphics/geos \
		libproj.so:graphics/proj \
		libfreexl.so:textproc/freexl \
		librttopo.so:devel/librttopo

GNU_CONFIGURE=	yes
USES=		gmake gnome iconv libtool pathfix minizip pkgconfig sqlite
USE_GNOME=	libxml2

CFLAGS+=	-I${WRKSRC}/src/headers -I${LOCALBASE}/include
LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}
CONFIGURE_ARGS+=	--enable-gcp=yes --enable-libxml2=yes --enable-rttopo=yes \
			CFLAGS="${CFLAGS}" \
			LDFLAGS="${LDFLAGS}"
USE_LDCONFIG=	yes
INSTALL_TARGET=install-strip

#post-patch:
#	@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/configure

.include <bsd.port.mk>