xref: /mports/databases/spatialite/Makefile
  • Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1PORTNAME=	spatialite
2PORTVERSION=	5.1.0
3CATEGORIES=	databases geography
4MASTER_SITES=	http://www.gaia-gis.it/gaia-sins/libspatialite-sources/
5DISTNAME=	lib${PORTNAME}-${PORTVERSION}
6
7MAINTAINER=	ports@MidnightBSD.org
8COMMENT=	Spatial Extensions for SQLite
9WWW=		https://www.gaia-gis.it/gaia-sins/
10
11LICENSE=	gpl2
12LICENSE_FILE=	${WRKSRC}/COPYING
13
14LIB_DEPENDS=	libgeos_c.so:graphics/geos \
15		libproj.so:graphics/proj \
16		libfreexl.so:textproc/freexl \
17		librttopo.so:devel/librttopo
18
19GNU_CONFIGURE=	yes
20USES=		gmake gnome iconv libtool pathfix minizip pkgconfig sqlite
21USE_GNOME=	libxml2
22
23CFLAGS+=	-I${WRKSRC}/src/headers -I${LOCALBASE}/include
24LDFLAGS+=	-L${LOCALBASE}/lib ${ICONV_LIB}
25CONFIGURE_ARGS+=	--enable-gcp=yes --enable-libxml2=yes --enable-rttopo=yes \
26			CFLAGS="${CFLAGS}" \
27			LDFLAGS="${LDFLAGS}"
28USE_LDCONFIG=	yes
29INSTALL_TARGET=install-strip
30
31post-patch:
32	@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/src/Makefile.am
33	@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/src/Makefile.in
34	@${REINPLACE_CMD} -e 's|-ldl| |' ${WRKSRC}/configure
35
36.include <bsd.port.mk>
37

served by {OpenGrok

Last Index Update: Sun Mar 22 17:06:33 EDT 2026